Android :: Show Menu In Droid?
Oct 28, 2010I create one TextField.When i click the TextField i wish to open the menu .how to do this ?
View 2 RepliesI create one TextField.When i click the TextField i wish to open the menu .how to do this ?
View 2 RepliesI have written my input method on lines of LatinIME. My IME "MyIME" has a service and an activity similar to LatinIME.
Installing it to emulator via eclipse does not seem to work and hence I have tried the following approaches.
MY GOAL: ~~~~~~~~ All I need as the first step to know that I am heading in the correct direction is that I should be able to see "My IME" as one of the available input methods. For example, on any EditText, when I "long click & release", the Input Method menu that pops up must also show "My IME" as one of the available input methods.
However so far the pop-up only shows "Android keyboard" (LatinIME). Hence I tried the following approaches.
Approach-1: =========== I checked out the andorid source code and built & ran it successfully to make sure I got the build process right. I created my project in ~/mydroid/packages/inputmethods/MyIME. It has the package structure 'com.android.inputmethod.myime' (to be in line with Android's package structure, I am not sure if this is required).
I ran a build using "make". Make succeed in compiling MyIME, just like LatinIME and all the android tools were also created. However looking at the build output, LatinIME was installed into /system/app/ LatinIME.apk while MyIME was not installed at all.
Question with respect to approach-1: ------------------------------------ 1. How to get the build process to install MyIME into /system/app as MyIME.apk?
Since install did not happen via the build process, I started the newly built emulator (and newly built ddms to watch logs) and used follownig install approaches:
Approach-2: =========== I ran 'ant debug' to get MyIMESettings-debug.apk. Then I ran 'adb install MyIMESettings-debug.apk'. The attempt failed with the message "Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]". Hence I tried the approach-3.
Question with respect to approach-2: ------------------------------------ 2. Why did the install fail when the project was built using 'ant debug'? Is it some thing to do with debug signature?
Approach-3: =========== The build process had created an APK file but hadn't installed it (/ mydroid/out/target/product/generic/obj/APPS/MyIME_intermediates/ package.apk) I renamed that package.apk to MyIME.apk and installed it using "adb install MyIME.apk". The install succeed. However, the adb install put my APK under /data/app with the name "com.android.inputmethod.myime.apk" instead with name MyIME.apk
Question with respect to approach-3: ------------------------------------ 3. Is there any way to get "adb install MyIME.apk" to install into / system/app folder?
Again, what I am trying to achieve is mentioned under "MY GOAL".
I googled everywhere and couldn't find the correct answer for my problem. I pulled a pinheaded move by after rooting my phone, I wanted to put teenface's black notification bar. I put the 2 files from the zip (into my SDcard. I turned off my phone and now I am stuck in a boot loop.
View 1 Replies View RelatedIn 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?
View 3 Replies View RelatedAfter using home++, when i hit the arrow to bring up all my apps, the only app that show is "settings" . i can get to my other apps that are shown on a home screen, but the ONLY app showing on the pull down screen is settings! i shut down, removed battery, and restarted twice, but still no luck.
I know a lot of others use home++, so is there something in the settings that went wrong, or what??! help! i love the home++.. when it works!
I've noticed that some users have not found my app's preferences sub menu, so I want to show that sub menu when the user first-time-ever starts the app.
Since onCreateOptionsMenu() would not have been called yet, how can I programmatically show such a sub menu?
BTW: openOptionsMenu() is not what I want because I want to open a sub menu. I suppose its part of the solution though. However, I get an exception when I call it:
Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRoot.setView(ViewRoot.java:468) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java: 177) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java: 91) at android.view.Window$LocalWindowManager.addView(Window.java:424)
even though, at the same point in the code, I can successfully open new AlertDialogs.
How to show menu items automatically (without clicking menu button) when the layout is viewed?
View 5 Replies View RelatedThis might be a simple question, but I've been looking around and can't find the answer,
well, as my title said, is there any code to show the context menu on the android from a code, instead press the menu button? eg. when i touch the screen then it'll call the context menu?
I don't even know what to call it. I know its the one with brightness, 4g, wifi, bluetooth, gps, and something else, ALL in one widget and I think it comes native on the EVO. Is there a button press to get it to show up?
View 2 Replies View RelatedI want to show a menu similar in look and feel to the sub-menus. I want the menu to come up when we tap on the screen. Is it possible to have sub-menus displayed without creating the main options menu? I do not want to use context menus for this.
View 3 Replies View RelatedIn my application I have a number of Activity classes. When I run on emulator (or install to a device) a corresponding number of program shortcuts show up in the programs menu. Why does this happen and how can I avoid it?
View 2 Replies View RelatedI have a TextView with its MovementMethod set to LinkMovementMethod. Text added to the TextView is a combination of normal text and URLs. For URLs, I would like to offer a context menu when the URL is long pressed for doing things such as copying the address. I've had a look at the source for LinkMovementMethod but it doesn't seem to have any long pressed related code I could override. Any ideas on how to go around achieving this?
View 1 Replies View Relatedi need to know what is this menu "show all" in permissions screen of any application before install to phone?
View 2 Replies View RelatedHow do you get running apps to show up in the notification drop down menu?
View 1 Replies View RelatedDoes anyone know how to get your Eris to show the saved contacts picture to show up in MMS and Phone calls? If I dial their number sometimes it shows up and sometimes doesn't. In never shows up in text messaging.
View 4 Replies View Relatedstandard four option menus displays 2 by 2. but i want to know that How to arrange 4 by 1. I just want to custom option menu like that. 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+unsubscribe@googlegroups.com For more options
View 2 Replies View RelatedI want a user to be able to long press a contact and be offered a menu item of my own that can run an activity of my own. 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+unsubscribe@googlegroups.com For more options
View 3 Replies View RelatedI want custom option menu to arrange three menu items where 2 menu items are displayed at the top and the third below it. Just as the following layout...........
View 12 Replies View RelatedI'm trying to add custom menu items in a WebView Context Menu. Unfortunately, my items are shown in the menu of the first web page I load , but then if I load a second page, a long press only shows the standard context menu items. Mine are gone. I've put a Toast inside the code and it is displayed as well on the first loaded page, but not on the second. I'm using the code below:..............
View 6 Replies View RelatedIs it possible to add a custom menu item to the long-press menu that opens in any text box?
View 3 Replies View RelatedI have an Options menu up and running in my Android application and I've overridden the onCreateOptionsMenu, onOptionsItemSelected and onPrepareOptionsMenu methods to customize the menu a little. My question is related to keeping the Options menu open after the user clicks on a menu item. Basically, I'd like to be able to hide the menu until the user clicks on the device menu key. Once the user clicks on this key, I'd like to be able to hold the menu in place regardless of how many times the user clicks on menu items. If the user wants to hide the Options menu, they'd just need to click on the device menu key again. Is this type of interaction supported (or even advisable).
View 1 Replies View RelatedAndroid question. If i create an Options menu with menu.xml, can I change the menu buttons' standard text size, color etc using xml? I would like to change text size, bold, and color. I would like to avoid using themes and styles for this application.
View 1 Replies View RelatedHow do I set the intent of menu items defined in an Android menu xml file? For example I currently have...
<menu xmlns:android="http://schemas.android.com/apk/res/android" android:name="Main Menu">
<item android:title="@string/resume_game" android:icon="@drawable/resume"></item>
<item android:title="@string/play_golf" android:icon="@drawable/play_golf"></item>
<item android:title="@string/my_rounds" android:icon="@drawable/my_rounds"></item>
</menu>...........
Can anyone kindly guide as to how can I invoke a context menu on the press of a menu item. I googled a lot for the same, but nothing turned up. Look forward for your valuable help.
View 1 Replies View RelatedOn pressing menu button , I have 2 options : Add & more.On click of more i have 3 options : Organize ,Export & Exit On click of Organize i want other 5 options.On click of more i get my submenu. But i want other 5 options on click of organize.How do i proceed? My code in parts is as follows :XML file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/more"
android:title="@string/moreMenu"
android:icon="@drawable/icon">
<menu>
<item android:id="@+id/Organize"
android:title="@string/Organize" />
<item android:id="@+id/Export"
android:title="@string/Export" />
</menu>
</item>
<item
android:id="@+id/add"
android:title="@string/addMenu"
android:icon="@drawable/add"/>
</menu>
Java-------------------------
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
public class ToDoList extends Activity {
Menu menu;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.todolist);
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
getMenuInflater().inflate(R.layout.categorymenu, menu);
return true;
} public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.more:
Toast.makeText(this, "You pressed more!", Toast.LENGTH_LONG).show();
//(What needs to be done from here)
return true;
case R.id.add:
Toast.makeText(this, "You pressed add!", Toast.LENGTH_LONG).show();
return true;
} return false;
} public boolean onPrepareOptionsMenu(Menu menu) {
return true;
the difference between context menu and option menu in android? When I click the menu button on the emulator, is that option menu? or context menu? And how to invoke the other menu (not trigger by the menu button)?
View 2 Replies View RelatedI know I'm not the only person that gets emails with embedded html or inlined images via google mail. When I get emails like this, I have to click on "Show HTML" or "Show Picture" every single time an email comes in if I actually want to see the email the way it was intended to be shown. I know for a fact that iphones and other email readers dont have any issues with this. Is there a setting to automatically display the email the way it was meant to be shown instead of having to click these buttons each time I want to view the email correctly? Or, perhaps there's already a market app that forces the android email client to display emails correctly?
View 4 Replies View RelatedSo on Android, when we tap on something in the menus it shows up as orange or, on Sense devices, green. Now, I've got nothing major against green. But I would definitely love to have blue or red there instead. Though, I've tried searching the market and internet for a solution to no avail.Does anyone have a solution to my oh-so-simple-but-serious-yet-still-small problem?
View 7 Replies View RelatedI have 10-15 activities in my project. I want to have the option menu mostly in all Activities. Then is their any way we can do it at one place and it appears in all activities.
Also, I will like to hide the option menu in some. So, is it possible or I have to write option menu code in all activities.
I'm trying to implement a menu in the footer of an app, similar to i.e. the Engadget app. As I understand, getting a standard TabLayout to work in this way is not trivial (if at all possible?).
As I see quite a few apps using this interface paradigm, I would assume there is a clever way of doing it. Currently, I'm defining the layout by adding an include line at the end of every layout. This works fine as far as rendering is concerned, but I have to add the onClickListeners to each activity. can we define clickListener through XML?
To sum up my question: What is the best way to implement a shared footer navigation accross several Activities?