[android-developers] Re: home screen widget drag or scroll

2010-12-22 Thread Veeresh Kalmath
ScrollView can be added to Widgets, for that need to do changes in the
android framework. Change the annotation of the view in framework
@RemoteView and build the framework and use them in widgets as in
activities. By this method we can use any views supported in normal
activities by changing the annotation to @RemoteView and use in
widgtes.

Thanks,
Veeresh
On Dec 14, 8:04 am, raghud raghavendr...@gmail.com wrote:
 You can't do scrolling with android's default launcher.
 But if you are using other launchers such as Home++/ADW/LauncherPro,
 you can do it using a standardized API across these launchers.

 Here are some articles on 
 those.http://gadgetsaddicts.blogspot.com/2010/08/android-scrollable-widgets...http://hpp.intuitit.mobi/for-developers#TOC-Building-Scrollable-Widget

 You can find some sample projects here.
  http://code.google.com/p/scrollablecontacts/
  http://code.google.com/p/simplescrollablewidgethttp://code.google.com/p/stockswidget/

 raghav

 On Dec 12, 4:55 pm, KlausSK8 klausmagalh...@gmail.com wrote:



  Thanks for your answer String,

  I uploaded a video showing the home screenwidgetscrolling...
  So, how thiswidgetallow scroll?
  The link for the videohttp://www.youtube.com/watch?v=x5AkebfVqsE
  It has much home screenwidgetscroll like that, contacts,
  appointment, messages, maybe it's just for HTC widgets... but I think
  if HTC widgets allows to scroll, I could too

  Thanks,
  Klaus

  On 11 dez, 04:06, String sterling.ud...@googlemail.com wrote:

   I'm pretty sure that it can't be done, sorry. All interaction with 
   awidgetgets pushed through a RemoteViews object, and the only event it 
   supports is click.

   String- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

-- 
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] Widget not getting updated.

2010-12-15 Thread Veeresh Kalmath
Hi,

 I've created a widget and a service which supports the widget as part
of same application. Inside the service I'm starting multiple threads
and from the threads I'm getting the remoteviews of widget and
updating widget using api

updateViews.setImageViewResource(R.id.ImageViewArtistImage,
R.drawable.album_no_artist);
AppWidgetManager.getInstance(context).updateAppWidget(widgetId,
updateViews);

This call works some times and at times it does not work means, widget
is not getting updated.

Is there anything wrong in this?

As a part of same application I've some activities also, which are
launched from the widget. when activity is closed(inside onPause() )
I'm sending custom brodcast messages to the widget. This time widget
is getting updated.
Do I need to follow the same method in service also, by sending the
custom messages as broadcast?

Thanks in advance,
Veeresh

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