Thanks all for your reply.

I created the layout for custom menu. But that doesn't look like the
in-built menu in Android. Moreover, I am designing the layout in java,
not in xml. Now, I am using imageButton, I will try some other options
too.

Thanks


On Jan 6, 2:59 am, Wayne Wenthin <[email protected]> wrote:
> I'll second that.  Its actually easier than you think.
>
>
>
> On Tue, Jan 5, 2010 at 9:12 AM, Guna <[email protected]> wrote:
> > Nithin,
>
> > If you want to display Menu always means, just design your own layout same
> > like menu and use that..
>
> > Guna
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Nithin
> > Sent: 05 January 2010 20:57
> > To: Android Developers
> > Subject: [android-developers] Menu always Displayable
>
> > Hi,
>
> > I want options menu should always display, when  I open my
> > application, for that I put openOptionsMenu(), in onCreate() of the
> > launcher activity.  But its showing exception.
>
> > --android.view.WindowManager$BadTokenException: Unable to add window
> > -- token n
> > ull is not valid; is your activity running?
>
> > Then I put openOptionsMenu() in onResume(), still its throwing
> > exception.
>
> > Any idea how to make menu displayable always.
>
> > Nithin
>
> > --
> > 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%[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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Writing code is one of few things
> that teaches me I don't know everything.
>
> Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums
-- 
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