On Wed, Feb 23, 2011 at 1:47 AM, morrizon <[email protected]> wrote: > *E/AndroidRuntime( 253): Caused by: java.lang.NullPointerException > E/AndroidRuntime( 253): at > com.faiters.myapp.Home.onCreate(Home.java: 36) > * > When I import android.content.ContentResolver the app work. Now if I delete > that import still work (WTF). The error appears if I add a new resource > style without that import. Do you have any idea why? >
Based on what you've posted, because doing that results in a null pointer. The exception tells you exactly where this null pointer is happening. Now use your debugger and find out what is null. Then change your code so it's not null or you handle null. ------------------------------------------------------------------------------------------------- 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 [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

