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


Other Threads

1. Drawing a circle outline? (not a filled circle)

Hi,

How can we draw a circle outline in an Overlay? I keep getting a
filled circle with the following code:


    Path outline = new Path();
    outline.addCircle(150, 150, 100, Path.Direction.CW);

    Paint paint = new Paint();
    paint.setColor(0xFF0000);
    paint.setAlpha(255);
    paint.setStrokeWidth(1.0f);

    canvas.drawPath(outline, paint);

I  was kind of expecting it to just be the outline of the circle, not
filled,

Thanks
--~--~---------~--~----~------------~-------~--~----~

2. XMas presents

The camera arrived! :-D wahoo.
I was thinking it might be easier if myself and mick go in on this camera
for the aul one, then ye can split a present for the aul lad.


Does that work for ye?


P.S.
What is you IM, its easier quicker than emial sometimes.

Here are mine, pick whatever one u want to use:

ICQ: 8489291
AOL: dshanaghysf
MSN: [EMAIL PROTECTED]
Yahoo: [EMAIL PROTECTED]
Google: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~

3. Any way to have two MediaRecorders recording at once?

4. Relative view size or fixed aspect ratio

5. Where to find Jarsigner

6. Does SoundPool work or has anyone successfully used it?

7. Shares Preferences are not getting deleted