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 pm, Mark Murphy <[email protected]> wrote:
> On Tue, Oct 18, 2011 at 5:07 AM, pedramz <[email protected]> wrote:
> > Is it possible to detect a user's long screen press from a service?
>
> No, sorry.
>
> > I need a quick and easy way for the user to trigger an action in my
> > service but I have not managed to find a good solution for that yet.
>
> Use an activity. Or an app widget. Or an ongoing notification.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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