I've been trying to find a method of playing one raw mp3 file from a different app, but I can't access it, even if I have the URI of the mp3.
EDIT: So I was able to access the raw, but when I set mediaplayer to play the sound, there is nothing played.
Context mApk1Context = createPackageContext("com.example.museum",Context.CONTEXT_IGNORE_SECURITY);
Resources mApk1Resources = mApk1Context.getResources();
int ResID = mApk1Resources.getIdentifier("china", "raw","com.example.museum");
mp.create(mApk1Context,ResID);
mp.start();