Wednesday, June 29, 2011

Re: [android-developers] How to add item on Android music options context menu ?

On Wed, Jun 29, 2011 at 11:27 AM, Petko Petkov <krstekrste@gmail.com> wrote:
> When long pressed some mp3 on my android phone I am prompted with
> Music Options context menu and I have options to chose to play the
> song or to set as a ringtone. But how can I add some items in this
> context menu, what kind of intent filter should I register for this
> thing

You cannot "add some items in this context menu".

First, there is no context menu associated with your described
actions, at least on Android 2.3. There is a popup window that appears
when long-pressing on an MP3 file on my Nexus S.

Second, you cannot add items to a context menu in general. You might
be able to hook into select context menu items (e.g., implement
ACTION_SEND to show up in "Share" menu items).

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

--
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate