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


RemoteViews widgetViews = new RemoteViews(context.getPackageName(),
               R.layout.widget_layout);

//this call is correct
widgetViews.setInt(R.id.ClientLayout05, "setVisibility",
View.INVISIBLE);


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

--



Other Threads

1. porting mplayer for android

Hi,

I have went through links and demo's in youtube videos of running mplayer in
android.

Is any porting guide available for mplayer to android.

Thanks and Regards,
HarishKumar.V

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Device Update!!!

Hello,

I developed an application that works perfectly with the emulator
however my device still has API 1.0 isntalled on it and when I try to
run the application on it (from Eclipse) I am getting: ERROR:
Application requires API version 3. Device API version is 1 (Android
1.0).

any ideas how can I update the phone?


thanks!
--~--~---------~--~----~------------~-------~--~----~

3. Capture hardware button while screen is locked

4. Touch screen not up yet

5. copybit

6. priv gone from struct net_device after 2.6.27; plans for wlan module?

7. I can't figure out how to link one projects files to another with eclipse. Please Help!