The null pointer means that the Resources object on which you are trying to call getAssets() is null.
On Mon, Jan 31, 2011 at 5:33 PM, ZEIL Jean-Julien <[email protected]> wrote: > Hello! > > I've been trying to learn a bit how to program on android. > > I want to draw different things depending on the settings the user > choose. > While I was able to create a setting file and save it, I have trouble > reading other files in my assets folder. > > Those file simple contains information about what should be displayed. > > The problem is, as read over and over again on the internet, I'm > using "getAssets().open(m_Path);" > Which crash. > I tried separating and found out that simply calling getAssets() > crashes everything. > > I'm not familliar with eclipse yet and I can't seems to find anything > of help in either "output", "LogCat" or anything. Still I see it > crashes for a null pointer. > > The class in which I call this extends my mainActivity (I got only onw > for now anyway) > > Is there something missing in my manifest, project properties or > anything similar preventing me from calling getAssets()? > > > Thank you. > > -- > 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 and 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

