I tried the docs and knew about that method, but unfortunately that doesn't
seem like it would help as well... Here is why:

The Activity.openContextMenu() method states this:
*"Programmatically opens the context menu for a particular view. The
view should
have been added via
registerForContextMenu(View)<http://developer.android.com/reference/android/app/Activity.html#registerForContextMenu(android.view.View)>
."*

The Activity.registerForContextMenu() method states this:
*"Registers a context menu to be shown for the given view (multiple views
can show the context menu). This method will set the
View.OnCreateContextMenuListener<http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html>
on
the view to this activity, so onCreateContextMenu(ContextMenu, View,
ContextMenuInfo)<http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu,
android.view.View, android.view.ContextMenu.ContextMenuInfo)>"*

And as I stated before, if you useView.setOnCreateContextMenuListener() then
it sets up your view to show the context menu on with a long-press...  And
I'm back to square one.

Unless maybe I'm missing something... I will admit that I didn't try it
because the docs made it seem like it wouldn't work so maybe there is a
difference.  I'll look into that when I get home tonight.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, May 3, 2011 at 1:40 PM, TreKing <[email protected]> wrote:

> On Tue, May 3, 2011 at 3:14 AM, MagouyaWare <[email protected]> wrote:
>
>> I have not been able to find anything on StackOverflow, Google or
>> this forum that would indicate how to accomplish this.
>>
>
> Try the docs =P
>
> http://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)
>
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to