Don't use the "File" class. Use
http://code.google.com/android/reference/android/content/Context.html#openFileInput(java.lang.String)

If the file you are using is in your res/raw directory its  even
easier to access it - you can use
parentActivity.getResources().openRawResource(
                                        R.raw.MyFileId)
I use this approach in the constructor of GeocastContainer in my ADC
entry -
http://code.google.com/p/android-geocast/source/browse/trunk/src/org/technocore/geocast/GeocastContainer.java

On Apr 7, 1:58 pm, siddhusingh <[EMAIL PROTECTED]> wrote:
> Hi,
> If the emulator generates a file at
> /data/data/net.mobilefight.trackbuilder/files/test1_track
> The file name is : test1_track
> How to open this file.
> simple Java IO is throwing FileNotFoundException.
> Any idea on this.
> Cheers,
> Sid
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Challenge" 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-challenge?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to