If the files are part of your application data packaged in your APK then you want to use android.content.ContextWrapper.getResources() ( http://code.google.com/android/reference/android/content/ContextWrapper.html#getResources() ).
android.app.Activity inherits from android.content.ContextWrapper. Cheers, Justin Android Team @ Google On Oct 18, 10:21 am, Le Duc Bao <[EMAIL PROTECTED]> wrote: > Dear, > > I build a Android program with some static data files. > > I looked at Android Document: > "Android provides access to read or write streams to files local to an > application. Call Context.openFileOutput() and Context.openFileInput() > with a local name and path to read and write files. Calling these > methods with the same name and path strings from another application > will not work; you can only access local files." > > If I have some existent data files, where they could be placed and how > to read them by using Context.openFile*() methods? > > Thanks, > Bao Le Duc --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

