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

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

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -