Hello

i'm doing an app and i have included this code 
http://developer.android.com/training/contacts-provider/retrieve-names.html

but i have a problem...on kitkat it works well, in lollipop i can't see the 
menu toolbar and when i click on a contact the app crashes with a 
nullpointerexception
*void.android.app.actionbar.setdisplayhomeasupenabled(boolean) etc*
in this portion of code:

if (Utils.hasHoneycomb()) {
    // Enables action bar "up" navigation
    getActionBar().setDisplayHomeAsUpEnabled(true);
    

}


how can i resolve this?? 

thanks for all



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/dcf71b59-db4e-4519-8723-70239c1de64e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to