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 use onListItemClick() while overriding dispatchTouchEvent() in ListActivity?

Hi, I have a class extending ListActivity, and I want to catch
touchevent on it so I override dispatchTouchEvent.

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
  ...
}

And since it's a ListActivity, of cource I want to override the
onListItemClick(), too:
@Override
protected void onListItemClick(ListView l, View v, int position, long
id) {
  ...
}

But now I find that the dispatchTouchEvent() will intercept ALL touch
event on the activity, so onListItemClick() will never be called.
I tried
 super.dispatchTouchEvent(ev);
but it does not work.

Anyone has any idea for this? Thanks!

--~--~---------~--~----~------------~-------~--~----~

2. How to launch the street view from map view

New to android, please forgive if this question sounds naive.

The latest MapView can check whether the map is in street view mode
and allow users to toggle it.

However, the set street view api only display the blue layout on top
of the map. Is there any way that I can launch the street view like in
Google Map.

Also, does this version support route and direction?

Please kindly advice. Thanks

--~--~---------~--~----~------------~-------~--~----~

3. listActivity and checkBox

4. About the use of the Wi-Fi function

5. Images and Layout Questions

6. how to get access to private API s

7. EventHandler ?