[android-developers] Android emulator and real smartphone behaviour are different in lifecycle of activity

2011-06-28 Thread Zanarotti Michele
I written a game one months ago with andengine, wich extends the Activity class. I had no particular problem with emulation and running the activity. Now i'm developing a new game, based on the copy/pasted code from the first, but actually is more complex. However The activity lifecycle shouldn

[android-developers] R: Re: R: Re: menu item disabled, but clickable

2011-05-13 Thread Zanarotti Michele
I wish to thank you all for the suggestions. Anyway i think it's a bug or some design glitch, because the menu items in the first menu (the menu appearing when pressing the menu button) are correctly grayed out and not clickable. The problems seems to affect only items in sub menus. Graying ou

[android-developers] R: Re: menu item disabled, but clickable

2011-05-12 Thread Zanarotti Michele
I haven't found anything like 'setClickable'. Where did you get it ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to andr

[android-developers] Re: menu item disabled, but clickable

2011-05-11 Thread Zanarotti Michele
Ibendlin, sometimes menu items are based on a situation, as money to buy something (think of a game). I want to show to the user what he/she can buy, but make the button inactive because the overall money is not enough. I saw pratically every game/site doing this. Android is graying out the item,

[android-developers] menu item disabled, but clickable

2011-05-10 Thread Zanarotti Michele
I ever thought that a disabled menu item (setEnabled(false)) should appear grayed out (and that works) and furthermore it should not be active as i click on it (it should not close the menu). How can avoid the closing of the menu ? shouldn't this be the default behavior of a disabled menu item