[android-developers] placing data files in apk and opening them
I've spent the last hour or two looking at file storage methods and so on. Cant quite see what i want. I want some data files to come installed in the apk and i want to be able to open them. I sort of know how you can put images in the res directory but this is going to be data not images and i'm hopeing to read them similar to reading any other kind of text file. I tried openFileInput() but i cant even figure out where to put the files for that. I got the path something like Data/Data/etc but clueless where that is. The reason to include them in apk is i want them to download the data the program needs when they install the program. thanks Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] placing data files in apk and opening them
On Fri, Aug 26, 2011 at 5:49 PM, Mike Adams adams...@gmail.com wrote: I want some data files to come installed in the apk and i want to be able to open them. I sort of know how you can put images in the res directory but this is going to be data not images and i'm hopeing to read them similar to reading any other kind of text file. http://developer.android.com/guide/topics/resources/providing-resources.html See raw directory. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] placing data files in apk and opening them
that got it working for me. actually using assets folder i think now but googling opening raw folder led to pages that covered both sort of interchangeably. Mike On Fri, Aug 26, 2011 at 4:00 PM, TreKing treking...@gmail.com wrote: On Fri, Aug 26, 2011 at 5:49 PM, Mike Adams adams...@gmail.com wrote: I want some data files to come installed in the apk and i want to be able to open them. I sort of know how you can put images in the res directory but this is going to be data not images and i'm hopeing to read them similar to reading any other kind of text file. http://developer.android.com/guide/topics/resources/providing-resources.html See raw directory. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en