I'm getting some weird behavior when I try to open a file within a service:
<code> public class MyService extends Service{ public void onCreate(){ super.onCreate(); File myFile = getFileStreamPath("myfile.dat"); if (myFile.exists()){ Log.i("MyService", "myfile.dat exists"); } } </code> Whenever getFileStreamPath is called, the service just freezes and does nothing. It's like the call to getFileStremPath is being blocked by something. Can someone give an example of how to properly obtain a File object reference in a service using getFileStreamPath()? Thanks. Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---