[android-developers] Re: [AppWidget ] How to get widget object from appwidget

2009-06-16 Thread clybe cai
Tanks for your kindly support,JS. Now I put the onclickactions to a BoardcastReceiver,then bind the BoardcastReceiver to a intent.If I want to do some operations when click the button, I need to create a PendingIntent object to wrap the intent,and use RemoteViews.setOnClickPendingIntent(int butto

[android-developers] [AppWidget ] How to get widget object from appwidget

2009-06-15 Thread clybe cai
Hi all, I met a problem when adding an onClickListener for a button which include in appwidget. I don't know how to get the button object from appwidget(get the ture layout copy of home screen). I have tried two method 1)use layoutinflate to create a view object but this wouldn't have an effec