Problems with calling method within RemoteViews object

by Romain Guy » Sun, 29 Nov 2009 12:20:50 GMT

Sponsored Links
 Not all View methods can be used on RemoteViews.

During creation of Widget views(RemoteViews) I'm trying to set
"actions" for inner View objects such as ImageView, LinearLayout and
others. But some calls are being processed correct but others are
throw exceptions. Simple code from update widget method example is

RemoteViews widgetViews = new RemoteViews(context.getPackageName(),

//this call is correct
widgetViews.setInt(, "setVisibility",

//the following code writing to LogCat
//updateAppWidget couldn't find any view, using error view
//android.widget.LinearLayout can't use method with //RemoteViews:
widgetViews.setInt(, "setBackgroundResource",


Other Threads

1. mod JIT spica yang stabi

mohon bantuan para suhu neh,
saya pakai firmware samdroidmod 1.2.x + JIT-ARM11
kadang waktu buat nelpon tiba2 restart sendiri. juga waktu play mp3
kasih saran donk yang stabil enaknya pake JIT yang mana ya ? biar
spica terasa kencang


"Indonesian Android Community [id-android]" 

2. undangan miring

Ini pasti reply dari digest ya ......
Diganti dulu subjectnya ya...

"Indonesian Android Community [id-android]" 

3. programmatically setup an ad-hoc network

4. Gallery elasticity at the ends

5. problems putting a button under a ListView

6. Push Mail di Spic

7. About the Account and the ContactsContract API