Problem configuring the app widget with bitmap image using remote views

by teddy » Tue, 10 Nov 2009 02:05:51 GMT


Sponsored Links
 Hi,

I started with developing the resizable photo widget.
Every time the widget is resized, i am configuring the widget remote
view with the new bitmap image.
I am using the same layout file for all resize dimensions with
fillparent option for both width and height.

But i am facing issues with this, for 4x4 widget size, even if i
configure the remote view with valid bitmap, the image is seen cropped
on the homeScreen. And sometimes the new bitmap which is set to the
remote views will not be seen and instead the old bitmap remains on
the screen.
Is the appwidgetManager discarding the updates????

Also, as the APP_WIDGET_UPDATE broadcast wecan get the new dimensions
of widget in terms of cells.
 can anyone tell,  how to map the cell values into pixel values(WVGA
screen) ????????

Any kind of help is appreciable.

Thanks..

--



Problem configuring the app widget with bitmap image using remote views

by teddy » Tue, 10 Nov 2009 02:06:04 GMT


 Hi,

I started with developing the resizable photo widget.
Every time the widget is resized, i am configuring the widget remote
view with the new bitmap image.
I am using the same layout file for all resize dimensions with
fillparent option for both width and height.

But i am facing issues with this, for 4x4 widget size, even if i
configure the remote view with valid bitmap, the image is seen cropped
on the homeScreen. And sometimes the new bitmap which is set to the
remote views will not be seen and instead the old bitmap remains on
the screen.
Is the appwidgetManager discarding the updates????

Also, as the APP_WIDGET_UPDATE broadcast wecan get the new dimensions
of widget in terms of cells.
 can anyone tell,  how to map the cell values into pixel values(WVGA
screen) ????????

Any kind of help is appreciable.

Thanks..

--


Sponsored Links