Assets are automatically compressed as part of putting them in the APK file.
On Wed, Jun 22, 2011 at 8:23 AM, Sivaprakash <[email protected]> wrote: > Some more input to help me better when I tried > > getAssets().open("demo.xml"); > > I am getting response. But when I say this > > getContext().getAssets().openFd("demo.xml"); > > I am getting exception (from Trace) "java.io.FileNotFoundException: This > file can not be opened as a file descriptor; it is probably compressed" > > But I haven't compress anything. > > Thanks > Siva > > On Wed, Jun 22, 2011 at 4:43 PM, Sivaprakash > <[email protected]> wrote: >> >> Hi >> >> I am writing custom content provider for my application. When I try to >> access a file which is present under "assets" using the following statement >> >> getContext().getAssets().openFd("demo.xml") >> >> It always throws file not found, I really dont understand what I am doing >> wrong. Any advice? - Do I need to add any property or permission ? >> >> >> -- >> - Prakash. > > > > -- > - Prakash. > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- 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

