Within a browser, when long clicking a piece of text the "share via" context menu appears. I'd like to add an item to this but I can't find anything (blogs, tutorials etc) that helps. Can anyone point me in the right location(s)?
standard 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 firstname.lastname@example.org To unsubscribe from this group, send email to email@example.com For more options
The app has an intent filter to allow it to appear in the share menu in other applications via ACTION_SEND intents. The app itself also has a share menu using ACTION_SEND and create Chooser(), and my app appears in the list. Since they are already in my app it seems strange to have them be able to share back to itself. Is there a way for my app not to appear in the list if it's being called from my app?
It's about the Gallery application. I've registered my application as a target for the "Share" option where the selected picture is being sent to another Activity in order to share it. The default application in the emulator was Messaging, and the image is attached using this option. Well, now I've got my application and Android asks me which application should it use to complete the action. I select my application and it opens the correct Activity, but... how can I get the image?
My code (that doesn't work) is as follows:
While debugging, the intent and the bundle .toString() methods give the following results:
But with this, uri is null. I've tried myriads of combinations, but none works.
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)?
So i have followed the MANY tutorials on how to add your app to the SHARE menus using android.intent.action.SEND in the manifest...I can't figure out for the life of me how to get the image or display the image or even upload...so here is what i am trying to do...upon click my app in the share menu, it will open up the intent that handles this request...i already have the layout but i need to load the image into the ImageView on the layout itself...once loaded, i will type a caption in an EditText and then click the save Button...then i will upload it to my webserver...i have found all the parts i need to get this done other than how to get the image itself..
I'm looking for a way to add a new custom menu item to the SMS interface. The idea is add an option like "Insert predefined message", and control the predefined message from other application. Is this possible?
Is there any way to launch a context menu on the links in a WebView that knows about the links it is launched upon? I would like to launch a context menu on links that I can then open in the actual Android browser or send the link by email etc.
How can I launch a contextmenu from a contextmenu? I'm trying to replicate the MediaPlayer action that happens when you long click a song, then click "Add to playlist" in the resulting contextmenu. When you click that menu item, another contextmenu pops up with "Add to playlist" as the title, and "Current playlist", "New", and however-many-playlists-you-have defined after that.
I want to customize option menu items. I can change icon when selecting using a selector but how can i change the text color during selection. If it was TextView i could use again selector for textColor property but for menu items there is only resource for textValue not for textColor. So my question is how can i change the textColor of MenuItems on selection.
I have created an option menu which also has a sub menu. In the sub menu I have a setting for enabling/disabling images in my application based on the application level flag that i change based on the option being clicked.What I am observing is that when i click on the "Menu" and change the settings from enable Images to disable Images. its not reflecting.I have put the debug log and what have been seen is the onOptionCreateMenu method is getting called only one time- first time when i click the "Menu" button. That is the reason the changed sub menu is not getting reflected.My question is that is there a way i can re-create the option menu every time user presses the "Menu Button".
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 seconds, but the menu option sticks around on the screen until the game has started. I think the main thread is waiting on the doStart to do its thing, but since it's creating a new thread, how do I get it to just start the thread and continue its business of hiding the menu option right away, instead of after 3 seconds?
I am completely exhausted to think logically right now..... I am sure it is pretty easy to implement
I have a menu item which when selected would call another activity class. I am using switch case to select between menu items. I tried creating an Intent to start activity using the Class name but doesn't work.