[android-developers] Re: pop up menu

2008-08-28 Thread jalandar
plz give me code , to create popup menu eg. when I create on Options there should be list of menu Items Options-->1.New note-->a.send ,b.delete,c.exit 2.help 3.exit Again when I Click on New Note ,there should be list of sub_items send , delete and exit is this possib

[android-developers] Re: pop up menu

2008-08-27 Thread Andrew
Yes, I got the reason that I override below function. onMenuItemSelected(int featureId, MenuItem item) Default implementation of onMenuItemSelected(int, MenuItem) for activities. On Aug 28, 12:56 pm, Andrew <[EMAIL PROTECTED]> wrote: >     public void onCreateContextMenu(Contex

[android-developers] Re: pop up menu

2008-08-27 Thread Andrew
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { Log.d("", "create pop up menu"); Above log can be printed. And below log can not. - public boolean onCo

[android-developers] Re: pop up menu

2008-08-27 Thread Andrew
Thanks for your help. I tried according to your comments. Yes the context menu is what I want. But there is another question. I can't get the item selected event using the overrided function "onContextItemSelected(MenuItem item)". This function will never be called. On Aug 26, 8:11 pm, Mark Murp

[android-developers] Re: pop up menu

2008-08-26 Thread Mark Murphy
Andrew wrote: > How to implement a pop up menu? Example for pressing and holding the > listview. You are looking for context menus. To implement context menus in the 0.9 SDK, you need to: 1. Call Activity#registerForContextMenu(View) somewhere (e.g., in onCreate()) to indicate which widget(s)