-1
Ich möchte die Textansicht ändern, E-Mail, die in Nav_header von OnCreate sind, aber ich bekomme den Fehler Auf eine Null-Objekt-Referenz.Wie verbinde ich nav_header_main?
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
at multimedia.slidemenu.MainActivity.onCreate(MainActivity.java:26)
http://stackoverflow.com/questions/ 34973456/how-to-change-text-of-a textview-in-navigation-drawer-header check this link bitte, und probiere es –
Mögliche duplikate von [Was ist eine NullPointerException, und wie kann ich es beheben?] (http://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) –