I have some issue. When I invoke this method I get
NullPointerException !!
If I press Menu button (the real one). It appears without any
problems. After showing this menu once and when invoking
showOptionsMenu programmatically I don't get any exception!! I that an
android bug?? It's seems like the menu is not created when I invoke
that programmatically for the first time!

On 24 fév, 14:46, Houcem Berrayana <[email protected]> wrote:
> @skink : That helped me. Oh my god! I haven't seen that method before
> in Activity class. Thank you all very much.
>
> On 24 fév, 14:20, Houcem Berrayana <[email protected]> wrote:
>
>
>
> > Thank you Rogério for your answer.
> > But the problem is that I have to run my activity in Full screen. So
> > there's no status bar. And I don't want to make the final user feel
> > that it's an android application !
> > is there a native function to call for example ?
>
> > On 24 fév, 14:04, Rogério de Souza Moraes <[email protected]>
> > wrote:
>
> > > Hi Houcen,
>
> > > take a look at the code of android-x86 that implaments a way to use MENU,
> > > BACK and HOME buttons in a device with just touchscreen. The name of the
> > > file that implements this is Touchable.java.
>
> > >http://www.android-x86.org/documents/touch-only-device-howto
>
> > > The inconvenient is that you need to do this modification in the Android
> > > plataform, but as you will use Android to a specific device, if think it 
> > > is
> > > not a big deal.
>
> > > Regards,
>
> > > Rogerio
>
> > > 2010/2/24 Houcem Berrayana <[email protected]>
>
> > > > I am running android on a non phone device.. and I want to show the
> > > > menu! is there another solution ?
>
> > > > On 24 fév, 13:02, skink <[email protected]> wrote:
> > > > > On Feb 24, 11:23 am, Houcem Berrayana <[email protected]>
> > > > > wrote:
>
> > > > > > Hi,
> > > > > > Now, I have a device with no buttons. So, I want to simulate Menu
> > > > > > button click.
> > > > > > I think that this is very important because many developers are
> > > > > > looking for a such solution. And I really need to find a solution :(
>
> > > > > why does anybody want to simulate menu button click?
>
> > > > > i dont really see any reason.
>
> > > > > pskink
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<android-developers%2Bunsubs
> > > >  [email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to