[android-developers] Re: detect onTouch for widget

2009-10-02 Thread sleith

Ok Thanks for your help :D

On Oct 3, 8:27 am, "Mark Murphy"  wrote:
> > I mean i would like to make something like image album widget on htc
> > hero. when we swap finger, it change it's view :D
> > is it possible? thanks
>
> Probably not. I do not have an HTC Hero and so am not familiar with this
> feature. However, there is nothing in the RemoteViews API that supports
> gestures AFAICT.
>
> Also, just because it is on the home screen does not mean it is an app
> widget, just as the Google search "widget" on regular Android devices is
> not an app widget. It could be written as a part of their actual home
> screen implementation.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: detect onTouch for widget

2009-10-02 Thread Mark Murphy

> I mean i would like to make something like image album widget on htc
> hero. when we swap finger, it change it's view :D
> is it possible? thanks

Probably not. I do not have an HTC Hero and so am not familiar with this
feature. However, there is nothing in the RemoteViews API that supports
gestures AFAICT.

Also, just because it is on the home screen does not mean it is an app
widget, just as the Google search "widget" on regular Android devices is
not an app widget. It could be written as a part of their actual home
screen implementation.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: detect onTouch for widget

2009-10-02 Thread sleith

Hi Mark, thanks for quick reply.
I mean i would like to make something like image album widget on htc
hero. when we swap finger, it change it's view :D
is it possible? thanks

On Oct 3, 8:18 am, "Mark Murphy"  wrote:
> > I'm trying to make widget gallery at homescreen. I'm currently stuck
> > because didn't find any example how to detect on touch in widget.
> > Could someone help me? Thank you
>
> You don't detect "on touch" for app widgets. You can, however, detect
> clicks, via setOnClickPendingIntent() on RemoteViews. AFAIK, this works
> for all View classes supported by RemoteViews.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: detect onTouch for widget

2009-10-02 Thread Mark Murphy

> I'm trying to make widget gallery at homescreen. I'm currently stuck
> because didn't find any example how to detect on touch in widget.
> Could someone help me? Thank you

You don't detect "on touch" for app widgets. You can, however, detect
clicks, via setOnClickPendingIntent() on RemoteViews. AFAIK, this works
for all View classes supported by RemoteViews.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---