java - How do I take this button out? -


i'm making app display lame jokes , layout has buutton, (which red arrow points to). whenever press it, app crashes. learned hardware button (on right side) works fine. since i'm on tight deadline, i'm fine using hardware button. find code take out button, or how take out? guys!

how take out?

for disabling button on action bar, in oncreate() function of activity try:

actionbar actionbar = getactionbar(); actionbar.sethomebuttonenabled(false); actionbar.setdisplayshowhomeenabled(false); 

hope helps.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -