You canot write/change the txt file if you put it in the assets. So, on first run of app, make a copy to SD card or the data directory, and then, you can proceed.
Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 3:59 PM, Marcin Orlowski <[email protected]>wrote: > On 28 January 2011 10:48, Reddy <[email protected]> wrote: > > Hi, > > > > 1. I have one txt file which contains some data. > > 2. Creating an app(apk) which uses (open, read, write, close) the txt > > file. > > > > What i want is, when i install the apk, txt file also need to be > > installed in the target. > > Use "assets" folder to include your file in APK > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

