If you are talking about home screen AppWidgets, then yes it is possible. The place to get started is:
http://developer.android.com/guide/topics/appwidgets/index.html Then have a look at some examples: http://www.helloandroid.com/tutorials/days-xmas-widget-tutorial http://nm-blog.sanid.com/2009/07/android-hellowidget-tutorial/ Basically as long as your AppWidgetProvider is part of the same package and also declared in same Manifest of your main appilication, then it has access to the same classes and can share its data. I dont know if you can check whether an AppWidget is currently visible, i.e. on the current pane of your Home Screen (e.g. because you have 3 on vanilla android, 7 on HTC Sense, but it can certainly know whether you have your AppWidget(s) active on at least one of your panes. Your widget can be updated directly by your application or via a custom timer, or via the frameworks automatically scheduled updates. And your widget can send info to your main application, e.g. process a click to start the application, or access its data. It's an interesting topic, good luck! James On May 11, 1:54 am, repole <[email protected]> wrote: > Hi everyone, > New developer about to get rolling on a project, and am curious as to > whether its possible for an application and a widget to communicate > data to each other directly? Basically I'd need the app to be able to > check that the widget is running/visible, and would need the app to > send information to the widget. I'm far from actually implementing > anything yet, so I'm not really looking for any overly detailed > explanations, just if whether or not what I'm looking to achieve is > possible. > > Apologies if this is common knowledge, or if this topic has been > talked about before (I tried a few searches and didn't really get a > clear answer). > > Thanks for the help, > Repole > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

