And example for what? You haven't clarified how you're using your layouts or what you're actually trying to do. Have you read the section on menus<http://developer.android.com/guide/topics/ui/menus.html#options-menu>in the developer's guide? It explains creating the menu and modifying it with onPrepareOptionsMenu().
Also, please reply to the group so anyone else that can help can chime in and anyone with a similar question can benefit from any answers posted. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Thu, Nov 12, 2009 at 11:18 PM, Sasikumar.S <sasikumar.it1...@gmail.com>wrote: > Thanks for ur reply. > > can u pls give one ex for this?.... > > On Nov 12, 6:59 pm, TreKing <treking...@gmail.com> wrote: > > The menu is generally associated with an activity, not any specific > layout. > > Do you have a different activity for each layout? If so then just add the > > menu to the one activity that's using the layout you care about. > Otherwise, > > if you have just one activity that's swapping layouts, override > > onPrepareOptionsMenu(I forget if that's the exact name) to modify the > menu > > based on which layout you're currently using. > > > > On Wed, Nov 11, 2009 at 10:43 PM, Sasikumar.S < > sasikumar.it1...@gmail.com>wrote: > > > > > > > > > Hi, > > > > > In my application I'm using 3 layouts and one java file. > > > I'm creating a menu. > > > I want to show menu for only one particular layout. > > > The other layout should not get the menu. > > > what should i do for that? > > > can any one know about this?.... > > > > > Thanks in advance :) > > > > > -- > > > Thanks & Regards > > > Sasikumar.S > > > > > -- > > > 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 > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com> > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > TreKing - Chicago transit tracking app for Android-powered deviceshttp:// > sites.google.com/site/rezmobileapps/treking -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en