Using Files

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 you have static files to package with your application at compile time, you can save your file in your project in res/raw/<mydatafile>, and then get it with Resources.openRawResource (R.raw.mydatafile).