Hi, I want the following feature.
When I click on the widget, an activity having a edittextview is displayed, now user type in that and clicks on save, the content which he typed needs to be displayed on the widget. I am able to see the contents, but it is not displayed instantly. It is updated after some time. On May 26, 12:29 pm, TreKing <treking...@gmail.com> wrote: > On Sat, May 26, 2012 at 2:05 AM, Sunil Mishra <suniljmis...@gmail.com>wrote: > > > I want to pass data from activity to widget. > > You don't "pass data" to a widget. It's a shell. It just shows something. > You do your logic in your Activity or Service, then update the look of the > widget to reflect the state of the data. > > The concept shown here > applies:http://developer.android.com/guide/topics/appwidgets/index.html#Updat... > > ------------------------------------------------------------------------------------------------- > 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 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