View Single Post
  #13 (permalink)  
Old 03-28-2008, 05:01 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
amansundar is on a distinguished road
Default Re: Android Tips and tricks

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).
__________________
cheers
Aman
Reply With Quote