Android : Navigation Drawer with ListView (Unable to start activity ComponentInfo)

on Sunday, July 6, 2014


I'm trying to create a Navigation Drawer and it's default view is a listview


but when I set the listadapter it just have some bug like below...


07-07 10:22:34.318: E/AndroidRuntime(26075): FATAL EXCEPTION: main 07-07 10:22:34.318: E/AndroidRuntime(26075): Process: com.example.android.navigationdrawerexample, PID: 26075 07-07 10:22:34.318: E/AndroidRuntime(26075): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.navigationdrawerexample/com.example.android.navigationdrawerexample.MainActivity}: java.lang.NullPointerException


Is that something wrong with my code?


MainActivity.java : http://pastebin.com/pVXKLe7t


0 comments:

Post a Comment