I'm attempting to load an mp3 from another apk file (which i created
and so have all the information for).
but i keep hitting errors, here is my code:
Using java Syntax Highlighting
- PackageManager pm = mContext.getPackageManager();
- Resources res2 = pm.getResourcesForApplication(pm.getApplicationInfo(mSongID, 0));
- mSongId = res2.getIdentifier("song", "raw", mSongID);
- Log.e("Got Resource", "" + mSongId);
- mp = MediaPlayer.create(mContext, mSongId);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
if anyone could point out what i've done wrong or if it is even possible with the current
framework?
Thanks,
Sam Aldis

