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, and so can't read application-owned files unless
they're o+r (which is what WORLD_READABLE maps to). My files were being
created with the default umask.
--
David Given
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---