Add menu item to Gallery's share BY CODE

by Anthony Xu » Sat, 01 Aug 2009 12:19:05 GMT

Sponsored Links
 Hi All,

I must to new a thread.

I know how to implement this issue by Menuifest.xml, see also:

Add menu item to Gallery's share BY CODE

by Anthony Xu » Tue, 04 Aug 2009 11:40:42 GMT

 Cannot implement it?

> also:

Sponsored Links

Add menu item to Gallery's share BY CODE

by Dianne Hackborn » Tue, 04 Aug 2009 11:48:33 GMT

 Sorry, this can only be done by a manifest declaration.  You can, however,
enable or disable the component declared in your manifest at runtime using
the PackageManager class.


Add menu item to Gallery's share BY CODE

by Anthony Xu » Thu, 06 Aug 2009 14:40:07 GMT

 Thank you, Dianne.
Your reply is very helpful.

> >

Other Threads

1. how to display virtual keyboard

I am a new guy on android study, and I also research the soft
   I had made a "qwerty.xml", but I do not know how to show this
   I had only used setcontentview(minputview); i t can be , but the
screen only show the keyboard...
  my code:
      public void onCreate(Bundle savedInstanceState) {

        mQwertyKeyboard = new LatinKeyboard(this, R.xml.qwerty);
    public View onCreateInputView() {
        mInputView = (KeyboardView) getLayoutInflater().inflate(
                R.layout.input, null);

        return mInputView;


2. MediaPlayer - prepare failed


I'm trying to play an audio stream and I've hit this "Prepare failed"
error numerous times, but depending on what I try I get a different
status. E.g. Prepare failed.: status=0xFFFFFFEE

Does someone have an overview of the status codes for the 1.1 SDK, say
from 0xFFFFFFFF to 0xFFFFFFE0?



3. Broadcast receiver thread

4. How can LongPress action be detected?

5. Android v. 1.5 = FAIL #2: Directly Manipulating Settings

6. How to connect to a Wifi network behind a proxy?

7. Please help me in porting Android to a new hardware