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. AutoCompleteTextView update from thread problem

Same problem here.
Any solution ?

I've tried to add
textView.performValidation();
textView.showDropDown();

but it does not display drop down.




-- 

2. best way to go from GeoPoint to Location

I have a GeoPoint (point from MapView) object and Location (from
LocationManager) object.  I want to compute the distance between the
two.   Location has a "distanceTo" function.

I cannot create a new Location object from lat, lon values.

What is the recommended way for doing this?

Matt

-- 

3. Custom Tabwidget Styles

4. How to stop soft keyboard events for a disabled TextView ?

5. google wave invites

6. Raw barcode reading

7. A good idea for collaborative code development...