With SDK 0.9 beta, MediaPlayer plays from the application's data area,
provided that proper paths are used (the Android conventions appear
here a bit inconsistent concerning when to include the full path, and
when one must use only the filename). I use this all the time and it
works just fine,
blindfold wrote:
[...]
openFileOutput(myfile.wav, Context.MODE_WORLD_READABLE |
Context.MODE_WORLD_WRITEABLE);
Play using MediaPlayer with
setDataSource(/data/data/mypackage/files/myfile.wav);
I bet the problem (or possibly feature) is that MediaPlayer doesn't run
with app privileges,
Steve Oldmeadow wrote:
Where are you storing the file? There is a change with the
MediaPlayer where it can't open files in the application's data area
for security reasons.
Yes --- that was the problem. I now have it all working. Wonderful! Thanks!
(Oddly enough, though, I'm still seeing an
I'm afraid I cannot give you direct answer, but one pointer I can give
you that you might want to check out is control of handset functions
through manifest permissions.
http://code.google.com/android/reference/android/Manifest.permission.html
I am mostly involved in LBS apps using MapView. Had
Here's one more link which describes permissions
On Aug 31, 5:21 am, David Given [EMAIL PROTECTED] wrote:
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
Joa wrote:
Here's one more link which describes permissions
No, there isn't! Did you mean to include something?
I've had a look at the permissions, but don't see anything obvious ---
the only two audio-related permissions appear to be
MODIFY_AUDIO_SETTINGS and RECORD_AUDIO, neither of which
Where are you storing the file? There is a change with the
MediaPlayer where it can't open files in the application's data area
for security reasons. The application must open the file and use a
FileDescriptor version of setSource. Not sure if this is your problem
but thought I'd mention it
7 matches
Mail list logo