Skip to main content
1393 votes
44 answers
654k views

I have a ListView with a couple of image buttons on each row. When the user clicks the list row, it launches a new activity. I have had to build my own tabs because of an issue with the camera layout. ...
447 votes
32 answers
590k views

I want to show the Bitmap image in ImageView from sd card which is stored already. After run my application is crash and getting OutOfMemoryError error of: (java.lang.OutOfMemoryError: Failed to ...
androidTag's user avatar
  • 5,233
323 votes
7 answers
233k views

Given ImageView image = R.findViewById(R.id.imageView); image.setImageBitmap(someBitmap); Is it possible to retrieve the bitmap?
lemon's user avatar
  • 9,215
272 votes
24 answers
482k views

How to get a Bitmap object from an Uri (if I succeed to store it in /data/data/MYFOLDER/myimage.png or file///data/data/MYFOLDER/myimage.png) to use it in my application? Does anyone have an idea on ...
ilredelweb's user avatar
  • 3,131
198 votes
8 answers
319k views

What I want to do, is to save an image to the internal memory of the phone (Not The SD Card). How can I do it? I have got the image directly from the camera to the image view in my app its all ...
usamazf's user avatar
  • 3,225
175 votes
7 answers
166k views

How do I convert a large Bitmap (photo taken with the phone's camera) to a Base64 String?
Pankaj Singh's user avatar
  • 2,331
160 votes
18 answers
116k views

I'm loading a bitmap into an ImageView, and seeing this error. I gather this limit relates to a size limit for OpenGL hardware textures (2048x2048). The image I need to load is a pinch-zoom image of ...
Ollie C's user avatar
  • 28.5k
89 votes
4 answers
65k views

I googled but i couldn't find any article to describe about the difference between Bitmap and Drawable in Android.
Nikhil C George's user avatar
74 votes
9 answers
100k views

How do I make a background image fit the view but keep its aspect ratio when using <bitmap /> as a background drawable XML? None of <bitmap>'s android:gravity values gives the desired ...
tilex's user avatar
  • 1,774
65 votes
8 answers
42k views

Has anyone managed to use RoundedBitmapDrawable? Correct me if I'm wrong, but to my understanding, it makes a circular image from a regular rectangular image. What I've tried so far is this ...
gian1200's user avatar
  • 3,893
65 votes
6 answers
55k views

I have an image from the web in an ImageView. It is very small (a favicon) and I'd like to store it in my SQLite database. I can get a Drawable from mImageView.getDrawable() but then I don't know what ...
David Shellabarger's user avatar
65 votes
5 answers
66k views

I am trying to get a FileInputStream object on an image that the user selects from the picture gallery. This is the android URI returned by android.provider.MediaStore.Images.Media....
lostInTransit's user avatar
45 votes
6 answers
62k views

I need to get Bitmap and sound from assets. I try to do like this: BitmapFactory.decodeFile("file:///android_asset/Files/Numbers/l1.png"); And like this: getBitmapFromAsset("Files/Numbers/l1.png"); ...
Val's user avatar
  • 4,376
42 votes
5 answers
76k views

What is the difference between setImageBitmap and setImageDrawable? I have an image which I would like to set dynamically from file. The tutorial that I followed says to convert my Bitmap to a ...
meeeee's user avatar
  • 2,939
42 votes
6 answers
30k views

By using this code we can rotate an image: public static Bitmap RotateBitmap(Bitmap source, float angle) { Matrix matrix = new Matrix(); matrix.postRotate(angle); return Bitmap....
activity's user avatar
  • 2,733

15 30 50 per page
1
2 3 4 5
119