Pixelated Image

by nimph » Sat, 05 Sep 2009 00:50:02 GMT


Sponsored Links
 I'm having some problems displaying a PNG in an ImageView.

I am loading the image from the file system via:

     ...
     mImageView.setImageBitmap(BitmapFactory.decodeStream(
             getClass().getResourceAsStream("image_name")));
     ...

The image shows up in the ImageView, but it's pixelated.

If I haven't given enough details, just let me know...

Any ideas?

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



Pixelated Image

by Balwinder Kaur (T-Mobile USA) » Sat, 05 Sep 2009 01:55:17 GMT


 And you are sure you have an image of appropriate size ...

Balwinder Kaur
Open Source Development Center
T  Mobile stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.





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


Sponsored Links


Pixelated Image

by nimph » Sun, 06 Sep 2009 12:53:29 GMT


 Yep...  If I put the image in the 'res/drawables' directory, all looks
as expected.  I only see this if loading the image from the file-
system.

//

On Sep 4, 1:54pm, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t-



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



Other Threads

1. ByPass UI for Activiating DevicePolicyManager

I need to bypass the Activity upon enabling the DevicePolicy in my
device, so far it will still ask the user to activate or cancel it, Is
there a workaround on how to remove this UI and implicitly enabled the
admin policy ?

-- 

2. What is INSTRUMENTATION_CODE refers to

Hello Guys,

I have been working with Instrumentation test for couple of days, i
will get the output as follows
INSTRUMENTATION_STATUS_CODE: 1
 * INSTRUMENTATION_STATUS: class=com.foo.FooTest
 * INSTRUMENTATION_STATUS: test=testFoo
 * INSTRUMENTATION_STATUS: numtests=2
 * INSTRUMENTATION_STATUS_CODE: -2

I understood what does STATUS CODe stands for start(1)/pass(0)/
fail(-2)/error(-1)

At the end of my all the tests, after it displays time, it returns

INSTRUMENTATION_CODE: -1,  what does exactly it means?  Where i can
get more information?

Regards
Manohar

-- 

3. usb 3g cdma datacard on android

4. how to dynamically remove widgets from a layout inside a layout ( nested ).

5. problem with GL_CLAMP_TO_EDGE

6. Where to find the Sample code ???

7. Slide Show sample code.