Re: [android-developers] Menu icon position

2014-07-31 Thread Sérgio Faria
2014-07-31 5:08 GMT+01:00 TreKing treking...@gmail.com: For example, this won't be there on device with Menu Buttons, despite it being phased out. You have ViewConfigurator#hasPermanentMenuKey()

[android-developers] Menu icon position

2014-07-30 Thread dashman
Can one assume that the menu icon (3 veritical dots) will always be on the top-right corner. Reason - I'm creating some app hint screens and would like to point int the direction of the menu icon. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Menu icon position

2014-07-30 Thread TreKing
On Wed, Jul 30, 2014 at 12:28 PM, dashman erjdri...@gmail.com wrote: Can one assume that the menu icon (3 veritical dots) will always be on the top-right corner. Sure you can assume that, but you know what happens when you assume :) For example, this won't be there on device with Menu

[android-developers] Menu Key Availability....?

2013-10-29 Thread Abhilash Baddam
Hi, I have referred the below blog, http://android-developers.blogspot.in/2012/01/say-goodbye-to-menu-button.html In my app I want to check the Menu key is present or not. For that I have used hasPermanentKey() function which is introduced in API level 14 but I cant use it GB. Can we assume if

[android-developers] Menu Not Showing

2013-07-23 Thread Felix Garcia Lainez
Hi, The case is that I have several activities in which I use actionbar successfully, showing different actions on top (with icons), but when I click on menu key (galaxy s4) then the menu options is not shown... I don't know really if this is the desired behavior but I would like to have both

[android-developers] Menu icon contrast

2012-09-28 Thread Andrew Gregory
Hi, It seems that new devices have a light-on-dark style when it comes to the UI, specifically menus. Older devices have a dark-on-light style. These are completely at odds with each other and makes it difficult to select an appropriately shaded icon for menus. I've settled on a light gray, which

Re: [android-developers] Menu Widget

2012-06-11 Thread Justin Anderson
The name of that UI element is probably something like CustomFacebookMenuThatYouWouldHaveToCreateFromScratchIfYouWantTheSameBehavior :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jun 10, 2012 at 2:01 PM, zachariahyoung zpyo...@gmail.com

[android-developers] Menu Widget

2012-06-10 Thread zachariahyoung
Can some one help me with the name or example of the menu widget that the Facebook app is using. It is the widget what appears when you click the three bars on the upper right hand corner. Thanks Zach -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Menu To Action Bar transition

2012-05-31 Thread giles ian
Hi Developers, I have an app developed for 2.2+. This app has menu options. Now on 4.X i get a compatibly menu button. Now after including action bar i am not sure how the app should behave. I change my app and set targetSdkVersion to 14 with proper min version and include the support jar. Add

Re: [android-developers] Menu To Action Bar transition

2012-05-31 Thread Mark Murphy
On Thu, May 31, 2012 at 7:38 AM, giles ian gilesian@gmail.com wrote: Hi Developers, I have an app developed for 2.2+. This app has menu options. Now on 4.X i get a compatibly menu button. Now after including  action bar i am not sure how the app should behave. I change my app and set 

Re: [android-developers] Menu To Action Bar transition

2012-05-31 Thread giles ian
Thanks Mark, So what you are trying to say is if i don't use ActionBarSherlock then i wont get ActionBar on 2.2 and 2.3, which will mean there will absolutely be no change (ui wise) in my my but when it runs on 3.0+ an action bar will pop up. Now if this is the case what code changes do i need

Re: [android-developers] Menu To Action Bar transition

2012-05-31 Thread Mark Murphy
On Thu, May 31, 2012 at 7:56 AM, giles ian gilesian@gmail.com wrote: Thanks Mark, So what you are trying to say is if i don't use ActionBarSherlock then i wont get ActionBar on 2.2 and 2.3, which will mean there will absolutely be no change (ui wise) in my my but when it runs on 3.0+ an  

Re: [android-developers] Menu from GLSurfaceView

2012-05-27 Thread Harri Smått
On May 25, 2012, at 3:05 PM, Marcin Orlowski wrote: if you need own menu (drawn on surface) then your event listener have to tell the rendered to draw one when all criterias are met (and you have to make own menu of course) Or alternatively you could use, say RelativeLayout, and have your

Re: [android-developers] Menu button deprecated in 3.0

2012-05-26 Thread Jim Graham
On Fri, May 25, 2012 at 06:01:49PM -0500, TreKing wrote: On Fri, May 25, 2012 at 5:45 PM, RLScott fixthatpi...@yahoo.com wrote: Is it really possible that someone with a 3.0 or later device might not be able to access my menus? It's unlikely the Android framework developers would break

[android-developers] Menu from GLSurfaceView

2012-05-25 Thread michael
Hi, I'm working on a project where I'm displaying a room using GLSurfaceView and Renderer, and I want to display a menu when user click on that room (anywhere) by using onTouchEvent. So please help me with the code needed to put in the case of ACTION_DOWN. -- You received this message because

Re: [android-developers] Menu from GLSurfaceView

2012-05-25 Thread Marcin Orlowski
if you need own menu (drawn on surface) then your event listener have to tell the rendered to draw one when all criterias are met (and you have to make own menu of course) Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray*

[android-developers] Menu button deprecated in 3.0

2012-05-25 Thread RLScott
I just found out that the menu button is deprecated starting with Android 3.0, and that some Android devices do not even have a menu button. My app targets Android 2.2 and uses the menu function quite a bit. Is it really possible that someone with a 3.0 or later device might not be able to

Re: [android-developers] Menu button deprecated in 3.0

2012-05-25 Thread Justin Anderson
Users will still be able to access the menus on devices running Honeycome and ICS... There is a compatibility icon that shows up on the ActionBar to access the menus. However, it is recommended that you update your app to actually use the ActionBar.

Re: [android-developers] Menu button deprecated in 3.0

2012-05-25 Thread TreKing
On Fri, May 25, 2012 at 5:45 PM, RLScott fixthatpi...@yahoo.com wrote: Is it really possible that someone with a 3.0 or later device might not be able to access my menus? It's unlikely the Android framework developers would break all apps in such a fashion. I believe there is a compatibility

回复: [android-developers] Menu : Handling click events : DialogBox

2012-05-15 Thread ??
: android-developersandroid-developers@googlegroups.com; 主题: Re: [android-developers] Menu : Handling click events : DialogBox 在 2012-5-12 下午6:23,huberte svend.wal...@gmail.com写道: Hi, I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics

Re: [android-developers] Menu : Handling click events : DialogBox

2012-05-13 Thread 冉峻萍
在 2012-5-12 下午6:23,huberte svend.wal...@gmail.com写道: Hi, I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics/resources/menu-resource.html I wrote this in main activity @Override public boolean onCreateOptionsMenu(Menu menu) {

[android-developers] Menu : Handling click events : DialogBox

2012-05-12 Thread huberte
I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics/resources/menu-resource.html I wrote this in main activity @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater();

[android-developers] Menu : Handling click events : DialogBox

2012-05-12 Thread huberte
Hi, I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics/resources/menu-resource.html I wrote this in main activity @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater();

[android-developers] Menu cannot be resolved to a type

2012-05-10 Thread huberte
And MenuInflater cannot be resolved to a type I have made a clean example from http://developer.android.com/guide/topics/ui/menus.html have import android.app.Activity; import android.os.Bundle; dont see anything about on google Thks -- You received this message because you are subscribed

Re: [android-developers] Menu Items

2012-05-05 Thread krishna kumar
u can do anything .Horizontal or Vertical.. -- 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

Re: [android-developers] Menu Items

2012-05-05 Thread Ibrahim Sada
change in xml file soo that you can check it out ... On 5 May 2012 18:30, krishna kumar send2mess...@gmail.com wrote: u can do anything .Horizontal or Vertical.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Menu Items

2012-05-05 Thread Ibrahim Sada
ou can change in xml file ... change vertical to horizontal it may work On 5 May 2012 18:30, krishna kumar send2mess...@gmail.com wrote: u can do anything .Horizontal or Vertical.. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Menu Items

2012-05-05 Thread krishna kumar
yes xml or code both . -- 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

Re: [android-developers] Menu Items

2012-05-05 Thread Justin Anderson
What kind of menu are you trying to create? Options menu? Context Menu? I do not believe you have access to changing how they are displayed... http://developer.android.com/guide/topics/ui/menus.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat,

[android-developers] Menu Items

2012-05-04 Thread Mahesh
Hi, I am developing an Android application and I want to add Menu for that, I tried some thing to add the Menu, but whenever I press the Menu on the Emulator I used to see options menu in Vertical, but I want to see the Menu Items in Horizontal way. How can I do that? Please help me. Thank You.

Re: [android-developers] Menu Items

2012-05-04 Thread Justin Anderson
AFAIK you can't control the layout of the menu... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, May 3, 2012 at 1:00 PM, Mahesh ymchan...@gmail.com wrote: Hi, I am developing an Android application and I want to add Menu for that, I tried some

Re: [android-developers] Menu

2011-11-17 Thread Thusitha Fernando
Yep it is good article but I want something deffer menu I have created the menu.xml under manu in my project what I want to know how can I call the menu.xml page in my main.xml page On Thu, Nov 17, 2011 at 1:59 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: see this link.

Re: [android-developers] Menu

2011-11-17 Thread TreKing
On Thu, Nov 17, 2011 at 2:59 AM, Thusitha Fernando thusitha...@gmail.comwrote: Yep it is good article but I want something deffer menu I have created the menu.xml under manu in my project what I want to know how can I call the menu.xml page in my main.xml page Please RTFM:

[android-developers] menu-v11

2011-11-17 Thread Nathan
As far as anything I can read. If I have mainmenu.xml in a folder called res/menu And I have mainmenu.xml in a folder called res/menu-v11 Then when I run it on my Tab 10.1 with 3.1, it should show the menu that is defined in menu-v11. Sounds right. Only one problem: It doesn't work. It shows

[android-developers] Menu button unactive on search mode

2011-11-16 Thread gordon
Hi, When I trigger search interface in my app calling onSearchRequested() the search panel appear but I can't show option panel. onOptionsItemSelected() is not called and no option menu is shown. When I'm not in search mode, the menu appear without any problems. Surprisingly, on the default

[android-developers] Menu

2011-11-16 Thread fthusa
Can any one tell me How to show menu list when i click the button please send me sample codes -- 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

Re: [android-developers] Menu

2011-11-16 Thread Ratheesh Valamchuzhy
see this link. http://www.codeproject.com/KB/android/AndroidMenusMyWay.aspx http://staticallytyped.wordpress.com/2011/05/05/android-how-can-you-implement-a-custom-menu-class/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Menu formatting

2011-11-05 Thread dashman
Is there any way to tell the os how you'd like your menu to be displayed. I've got a menu with 5 entries. Android is displaying it in 3 rows of 2+2+1. I would like to display it 1+2+2. any way? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Menu formatting

2011-11-05 Thread Mark Murphy
No, sorry. For example, it might be 6x1 on a tablet in landscape. You don't control this. On Sat, Nov 5, 2011 at 6:27 AM, dashman erjdri...@gmail.com wrote: Is there any way to tell the os how you'd like your menu to be displayed. I've got a menu with 5 entries. Android is displaying it in

[android-developers] Menu

2011-08-20 Thread Sivaprakash
Hi I want to create a menu as if shown in the below image. Is it a context menu or something special to attach along with the button which is clicked. -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Menu guidelines

2011-07-22 Thread mlybrand
Can you guys point me to some best practices on maintain options menus in Android applications. I understand the concept that the options menu is meant to be for a particular activity, but it has to be fairly common that multiple activities share very similar menus. So, is there some one to have

[android-developers] MENU click NOT working

2011-06-15 Thread hisheeraz
hi guys i am in the process of implementing this menu but it is not updating the speed of my sensor my code snipet is here are my global variables [code] private static final int MENU_SLOW = 0; private static final int MENU_NORMAL = 1; private static final int MENU_FAST = 2; private static final

[android-developers] Menu options with Intent.createChooser

2011-06-06 Thread dillipk
Hello, I am trying to list out the following email clients/social networking client in a menu by using following code: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(text/plain); Intent i = Intent.createChooser(emailIntent, Share Offer);

Re: [android-developers] Menu options with Intent.createChooser

2011-06-06 Thread Mark Murphy
On Mon, Jun 6, 2011 at 2:55 PM, dillipk codersnet2...@gmail.com wrote:  I am trying to list out the following email clients/social networking client in a menu by using following code: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(text/plain);

[android-developers] Menu in a dialog-themed activity on Honeycomb

2011-05-18 Thread String
I have an Activity which appears like a dialog (via applying theme=@android:style/Theme.Dialog), and that Activity has a normal Menu, inflated from XML. Everything works fine pre-Honeycomb, but when my app has the holographic theme applied on 3.0, there doesn't seem to be a way display this

Re: [android-developers] Menu in a dialog-themed activity on Honeycomb

2011-05-18 Thread Mark Murphy
On Wed, May 18, 2011 at 8:08 AM, String sterling.ud...@googlemail.com wrote: And admittedly, having a menu in a Dialog is a bit weird and nonstandard, but it did work pre-Honeycomb. I'd rather not lose it in the migration. I am not hopeful. Two possible workarounds: 1. On API Level 11+, use a

[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

[android-developers] Menu items in ActionBar obscuring Tabs even with showAsAction=ifRoom

2011-04-28 Thread Shri
My Honeycomb activity uses the Tabs navigation mode by doing getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS). The activity also has menu items marked with android:showAsAction=ifRoom. I would have expected that the tabs are first displayed, and then any remaining space in the

[android-developers] Menu Visible always

2011-04-20 Thread Mohit sharma
Hi , I want to make menu always visible and should be even if menu key is not pressed . -- 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

Re: [android-developers] Menu Visible always

2011-04-20 Thread Marcin Orlowski
On 19 April 2011 07:42, Mohit sharma mohit7...@gmail.com wrote: Hi , I want to make menu always visible and should be even if menu key is not pressed . Then use buttons. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray*

[android-developers] Menu typeface

2011-03-20 Thread Kamil
Hi, Is there any way to change menu typeface to bold? -- 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

Re: [android-developers] menu doesnt get pop up unless tab activity is focussed

2011-03-19 Thread Justin Anderson
Thanks for sharing... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 18, 2011 at 12:05 AM, Majid majidalib...@gmail.com wrote: menu is not shown in groupactivity of tabbar activity .but when i change tab and come back to same tab it shows

[android-developers] menu doesnt get pop up unless tab activity is focussed

2011-03-18 Thread Majid
menu is not shown in groupactivity of tabbar activity .but when i change tab and come back to same tab it shows menu. -- 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

[android-developers] Menu Help

2011-03-09 Thread Raghav Sood
Hi everyone, I have a menu in my game which currently has only a New Game option. I want it to have another option Reset Score. I wrote some code for it but it fails to work. My current code is: @Override public boolean onCreateOptionsMenu(Menu menu) {

Re: [android-developers] Menu Help

2011-03-09 Thread Mark Murphy
There is no onOptionsngSelected() method in Android. There is no onOptionsrsSelected() method in Android. If you want to find out when an options menu item is clicked, you must override onOptionsItemSelected(). On Wed, Mar 9, 2011 at 7:46 AM, Raghav Sood raghavs...@gmail.com wrote: Hi everyone,

Re: [android-developers] Menu Help

2011-03-09 Thread Kostya Vasilyev
I don't see any code connecting those menu items with onOptionsngSelected and onOptionsrsSelected (which are not Android framework methods). Read this for more info: http://developer.android.com/guide/topics/ui/menus.html -- Kostya 09.03.2011 15:46, Raghav Sood пишет: Hi everyone, I have

Re: [android-developers] Menu Help

2011-03-09 Thread Raghav Sood
I tried that too but it only works if I am checking only 1 of the options. I can't ghet it to work with both of the options. Any ideas? On 3/9/11, Mark Murphy mmur...@commonsware.com wrote: There is no onOptionsngSelected() method in Android. There is no onOptionsrsSelected() method in Android.

Re: [android-developers] Menu Help

2011-03-09 Thread Raghav Sood
Okay. now I have changed the code to this: @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); @SuppressWarnings(unused) MenuItem ng = menu.add(New Game); @SuppressWarnings(unused) MenuItem rs = menu.add(reset

Re: [android-developers] Menu Help

2011-03-09 Thread Mark Murphy
On Wed, Mar 9, 2011 at 8:03 AM, Raghav Sood raghavs...@gmail.com wrote: I tried that too but it only works if I am checking only 1 of the options. I can't ghet it to work with both of the options. Any ideas? Use a more worthwhile add() method, one that takes an id.

Re: [android-developers] Menu Help

2011-03-09 Thread Raghav Sood
I went through the XML example that mark provided as that is the way I would prefer it. Now my code is @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); return true; }

Re: [android-developers] Menu Help

2011-03-09 Thread Mark Murphy
Use breakpoints or log statements to debug your code. I see nothing obviously wrong with what you have here. Perhaps your difficulty lies in setBoard(). On Wed, Mar 9, 2011 at 8:27 AM, Raghav Sood raghavs...@gmail.com wrote: I went through the XML example that mark provided as that is the way I

Re: [android-developers] Menu Help

2011-03-09 Thread Raghav Sood
Thanks Mark, I am reasonably sure there is nothing wrong with setBoard(); but I may be wrong so here is setVoard(): private void setBoard() { ai = new AI(); b = new Button[4][4]; c = new int[4][4]; won = (TextView) findViewById(R.id.won); drawn =

Re: [android-developers] Menu Help

2011-03-09 Thread Mark Murphy
android.util.Log, and you access it no differently than you do anywhere else (adb logcat, DDMS, or the DDMS perspective in Eclipse). On Wed, Mar 9, 2011 at 9:27 AM, Raghav Sood raghavs...@gmail.com wrote: Thanks Mark, I am reasonably sure there is nothing wrong with setBoard(); but I may be

[android-developers] Menu button/icon not showing up in Honeycomb

2011-03-08 Thread Stephen Lebed
In my app I'm calling onCreateOptionsMenu() which works as expected on pre 3.0 devices. When I run the app on the Xoom there isn't a menu button displayed at the bottom of the screen to allow access to the menu options. Does anyone know how to force it to be displayed, or is there something

Re: [android-developers] Menu button/icon not showing up in Honeycomb

2011-03-08 Thread Mark Murphy
On Tue, Mar 8, 2011 at 6:00 PM, Stephen Lebed srle...@gmail.com wrote: In my app I'm calling onCreateOptionsMenu() which works as expected on pre 3.0 devices.  When I run the app on the Xoom there isn't a menu button displayed at the bottom of the screen to allow access to the menu options.

Re: [android-developers] Menu button/icon not showing up in Honeycomb

2011-03-08 Thread Dianne Hackborn
As long as you don't target HC (API 11), you will get the menu button. If you do target HC, there will not be a menu button. And what do you mean by saying you are calling onCreateOptionsMenu()? You don't call that; it is called for you. On Tue, Mar 8, 2011 at 3:04 PM, Mark Murphy

[android-developers] Menu/Action Bar bug(?) in Honeycomb

2011-03-08 Thread Zsolt Vasvari
I have a TabActivity with two child Activities (don't ask me why...). I would have expected that the child activities' option menu items to be exposed on the Action Bar. But that doesn't happen and the Action Bar remains empty as the TabActivity itself has no option menu. -- You received this

Re: [android-developers] Menu/Action Bar bug(?) in Honeycomb

2011-03-08 Thread Dianne Hackborn
You probably don't want to mix the action bar with activity groups. Fragments are the New Way, and they were designed to work together. Activity groups are deprecated (especially now that the fragment static library is available). On Tue, Mar 8, 2011 at 7:01 PM, Zsolt Vasvari zvasv...@gmail.com

[android-developers] Menu in contacts

2010-11-01 Thread Евгений Григорьев
Hi all! When you click on picture on the left of any contact - there is a dialog, that shows some possible actions(like phone or write e-mail). Set of actions is different from context menu or option menu. Is it some standard widget, or is there any simple way to get such dialog for custom list

Re: [android-developers] Menu in contacts

2010-11-01 Thread Dmitri Plotnikov
See android.widget.QuickContactBadge On Mon, Nov 1, 2010 at 5:51 AM, Евгений Григорьев grigoriev.evgen...@gmail.com wrote: Hi all! When you click on picture on the left of any contact - there is a dialog, that shows some possible actions(like phone or write e-mail). Set of actions is

[android-developers] Menu Problems

2010-10-21 Thread Dliswa
Hi Everyone When i Pressed Send My Location from Menu in my application .Runtime terminates my application by giving me an error. error :The application Final Year Project (Process com.android.myproject) has Stopped Unexpectedly.please try again. After that my appication is forcefully Terminated.

[android-developers] Menu and AlertDialog are not getting displayed on regaining the focus

2010-10-11 Thread Roj
Hi, I have one application in which I have only one Activity and 6 different frames (derived from FrameLayout). Using menu one can choose a particular frame. On each frame I have different views, user can go from one view to another and come back to the previous view (I am managing it with one

[android-developers] Menu text not showing in emulator

2010-07-28 Thread Chris Stewart
I've been using my phone to debug as I've been developing my application. Now that I'm finished I've been attempting to test it across the various emulators available to me, as I have no other devices. I've noticed that the menu for my application displays only the icon while running in the

[android-developers] Menu button unlocks the phone

2010-04-15 Thread Daniel Fogel
Hi, I have HTC Hero and I've found out that dragging down on the touch is not the only way to unlock the phone. If you press the menu button, it unlocks the phone, too. I don't know whether it's problem of the HTC device, Android or bad feature definition. Do you have a clue? Regads, Daniel

[android-developers] Menu throughout Application

2010-02-16 Thread MobDev
Hi, I have implemented a Menu within an Activity, but I'd like this Menu to exist throughout my whole application... How can thsi be achieved ? Should I be placing the public boolean onCreateOptionsMenu(Menu menu) method within every single Activity or is there some way to share the menu ?

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Mark Murphy
MobDev wrote: Hi, I have implemented a Menu within an Activity, but I'd like this Menu to exist throughout my whole application... How can thsi be achieved ? Should I be placing the public boolean onCreateOptionsMenu(Menu menu) method within every single Activity or is there some way to

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Frank Weiss
Although Mark's idea is workable, it may be bad OOD. It would work if all your apps are direct subclasses of Activity, but what if some are MapActivity, etc? I think the answer may depend on that and how you want to use the global menu. Using delegation, you could have each menu be created by the

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Mark Murphy
Frank Weiss wrote: Although Mark's idea is workable, it may be bad OOD. It would work if all your apps are direct subclasses of Activity, but what if some are MapActivity, etc? Yup. :: wishes Java had Ruby's mixin capability for things like this :: -- Mark Murphy (a Commons Guy)

[android-developers] Menu always Displayable

2010-01-05 Thread Nithin
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

RE: [android-developers] Menu always Displayable

2010-01-05 Thread Guna
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

Re: [android-developers] Menu always Displayable

2010-01-05 Thread Wayne Wenthin
@googlegroups.com [mailto:android-develop...@googlegroups.com] 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

[android-developers] Menu Item Name

2010-01-04 Thread Sasikumar.S
Hi, I added 2 menus. menu.add(0, 1, 0, Start); menu.add(0, 2, 0, Stop); public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case 1: if(item.getTitle().equals(Start)) { item.setTitle(Pause);

Re: [android-developers] Menu Item Name

2010-01-04 Thread Mark Murphy
I added 2 menus. menu.add(0, 1, 0, Start); menu.add(0, 2, 0, Stop); public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case 1: if(item.getTitle().equals(Start)) {

[android-developers] Menu items on child PreferenceScreen

2009-12-14 Thread freezy
Hello, I'm trying to add a menu to a PreferenceScreen. I have extended PreferenceActivity which loads my settings tree from preferences.xml. My activity overloads onCreateOptionsMenu and onMenuItemSelected. However, the resulting menus are only visible at the root node, but not on any other child

Re: [android-developers] Menu Items.

2009-11-12 Thread TreKing
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

[android-developers] Menu Items.

2009-11-11 Thread Sasikumar.S
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

[android-developers] Menu button goes to Preferences - Cool?

2009-10-19 Thread joelt
I'm thinking it would be handier if my in my app, a press on the menu button went straight to my preferences page. I currently have in my menu two choices: settings and about. About will almost never be used. I was thinking of putting it in preferences and simply have a menu button press go

[android-developers] Menu buttons in bottom part of layout

2009-09-16 Thread Mihai Dumitrache
Hello, My application has some buttons in the bottom part of activity layout, almost the same like iphone has on ipod app for example. I would like to create my layout so that it will self adjust on different screen sizes. For example if the content in my layout has height = 400dip and the menu

[android-developers] Menu should be on the Image

2009-06-04 Thread android.vinny
Hi every one Can Any body help me how to create this screen which i have attached as a enclosed as a attachment how to cod ethis can any body give the clues for that any source example regarding this thanks in advance --~--~-~--~~~---~--~~ You received this

[android-developers] Menu option starts Thread - menu hangs.

2009-03-12 Thread Ikon
Hi, I am developing a game based on the SurfaceView/LunarLander example in the sample code. I have one activity, with one menu option that is new game. My activity listens for the menu selection, and once new game is selected, doStart of the Game thread is called. The game starts up after 3-4

[android-developers] Menu on the center of the screen if style inherit from Theme.Dialog

2009-02-17 Thread Adrien Guichard
if my custom Activity style inherite from android:style/Theme.Dialog: style name=MyTransparent parent=android:style/Theme.Dialog /style The menu associated with my activity pop up on the center of the screen. Is this the expected behaviour ? Is there any workaround ? Thanks

[android-developers] Menu appears in middle of screen when using Dialog theme.

2008-12-26 Thread bendavis78
Here's a screenshot: Before menu btn is clicked: http://i39.tinypic.com/allwn5.jpg After menu btn is clicked: http://i39.tinypic.com/1zf7jg4.png This is pretty easy to reproduce. Just create a new android app, change the theme in the android manifest to @android:style/ Theme.Dialog, and

[android-developers] Menu Icons

2008-12-15 Thread Jamie L
If there are more than 6 menu items, the more menu item will appear, and the rest of the items go to a popup menu. Can we set icons to those menu items? I am not able get the icons to show for those menu items. Please advice. Thanks in advance, J

[android-developers] Menu Font

2008-09-15 Thread rajesh
I have created an options menu with only one value @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 0, 0, Exit); return true; } The layout with which the emulator displays the menu

[android-developers] Menu bug?

2008-08-26 Thread android_dev
Menu does not show up. If the focus is on an EditText field with android:password=true, then hitting the Menu key does not show the menu options for that screen. If the focus is on some other field, then the menu shows up. Bug? --~--~-~--~~~---~--~~ You received