Re: [android-developers] Re: Detecting screen long press from background

2011-10-18 Thread Mark Murphy
On Tue, Oct 18, 2011 at 9:12 AM, pedramz wrote: > Now I have another question. Is it possible to detect long click on a > Button in the app widget? No, sorry. App widgets only respond to clicks. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsw

[android-developers] Re: Detecting screen long press from background

2011-10-18 Thread pedramz
Thanks Mark, I used your app widget suggestion with a Button to inform the service and it's working. Now I have another question. Is it possible to detect long click on a Button in the app widget? I am using setOnClickPendingIntent but there is no setOnLongClickPendingIntent. On Oct 18, 1:04

[android-developers] Re: Detecting screen long press from background

2011-10-18 Thread pedramz
Thanks Vikas! Unfortunately your suggestion only works with Activities in foreground . I only have a service. On Oct 18, 12:30 pm, Vikas KM wrote: > Hi, > > Assuming that you want to trigger and action on Longpress.. > Hope this helps > > http://developer.android.com/reference/android/view/Gestur