Hi,

As I understand, you are trying to lauch app widget without entering
AppWidget picker from the Home Screen. If this is possible, then you
have to register your provider in the AppWidget host. This is the
condition for you AppWidget instance to get it's uniqe ID. And I think
that is your problem in your code.

> Myappwidgetclass is as follows:
...
> public class receiver extends AppWidgetProvider {
>         public void onReceive ( Context context,Intent intent ){
...
>                         updateSampleWidget( context, 
> appWidgetManager,1,message );
>                 }
>         }
...
>         private void updateSampleWidget(Context context,AppWidgetManager
> appWidgetManager, int widget, String text) {
...
>              //appWidgetManager.updateAppWidget(widget, views);
...
> Am i doing anything wrong here???

You have asumed tha "appWidgetId" equals 1.



> My questions are:
> 1. Is it possible to start an appwidet from the onReceive function?
> 2. Is it possible to start anappwidgetfrom another applicaion by
> sending and receiving a broadcast message?

I don't know that, but if you can register your appwidget provider in
home screen host bypassing the appwidget picker, then I think it could
be done.

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