This tag is for questions related to images on Android
Questions tagged [android-image]
1540 questions
13
votes
4 answers
Insert Contact (ContactsContract) via Intent with Image (Photo)
There is many Q&A threads, but none of them is providing real answer, or I couldn't find it.
To ensure you, I've searched before asking:
Android: set contact photo with ContactsContract insert intent (invalid answer)
Insert contact in Android with…

Marek Sebera
- 39,650
- 37
- 158
- 244
12
votes
2 answers
How to compress image before uploading to server
public int uploadFile(String sourceFileUri) {
int screenHeight = 800;
int screenWidth = 600;
HttpURLConnection conn = null;
DataOutputStream dos = null;
String lineEnd = "\r\n";
String twoHyphens =…

Naveen
- 757
- 3
- 17
- 41
12
votes
1 answer
Formats supported by BitmapFactory.decodeByteArray(...)
Is it documented (or reasonable to assume) that BitmapFactory.decodeByteArray(...) can be expected to recognize any of the image formats listed here?

Brodo Fraggins
- 628
- 5
- 14
12
votes
2 answers
DiskLruCache from android tutorial is missing lots of methods.
Here is the disk cache tutorial I'm following. I've downloaded the source code to DiskLruCache but none of the methods used in this example exist in the source…

Navetz
- 393
- 1
- 2
- 12
12
votes
4 answers
how to merge Images and impose on each other
Suppose I'm uploading two or more than two pics in some Framelayout. Hereby I'm uploading three pics with a same person in three different position in all those three pictures. Then what image processing libraries in Android or java or Native's are…

Vikalp Patel
- 10,669
- 6
- 61
- 96
12
votes
5 answers
How to use Universal Image Loader
I have a requirement where I need to load thumbnails and a Text in ListView which gets set by the custom Adapter. The Thumbnails should be stored in a cache memory, for that I am using the Universal Image Loader however I am pretty much confused in…

Nitin Bathija
- 800
- 3
- 12
- 24
12
votes
3 answers
Correspondence between ImageView coordinates and Bitmap Pixels - Android
In my application I want the user to be able to select some content of an Image contained inside an ImageView.
To select the content I subclassed the ImageView class making it implement the OnTouchListener so to draw over it a rectangle with borders…

Matteo
- 7,924
- 24
- 84
- 129
11
votes
1 answer
How to save/read inline images in html content to internal/extrenal memory
According to this question I used a custom ImageGatter class to display images that I'm getting from a server in TextView using Picasso
public class PicassoImageGetter implements Html.ImageGetter {
private TextView textView = null;
…

Mark DeSpain
- 63
- 1
- 13
11
votes
3 answers
Convert bitmap to sepia in android
Is there any way to convert a Bitmap to sepia?
I know to convert to grayScale is to set the setSaturation in ColorMatrix.
But what about Sepia?

user430926
- 4,017
- 13
- 53
- 77
11
votes
4 answers
How to apply different image effects (filters) on bitmap like sepia, black and white, blur, etc.?
I am not having any idea of how to apply different effect on Image,
I have seen the EffectFactory class and Effect class in effect class there is one method apply
but I am not sure what to pass in inputTexId and optputTexId, and from where I get…

Nixit Patel
- 4,435
- 5
- 30
- 57
11
votes
3 answers
How is it possible to use Android Camera APIs in non-Camera applications?
I would like to use some Android 4 APIs in a non-Camera application.
The API includes some very nice Face Detection classes, including the Camera.Face class available since API 14. I would like to apply the same Face Detection classes in order to…

Lisa Anne
- 4,482
- 17
- 83
- 157
10
votes
8 answers
how to select from resources randomly (R.drawable.xxxx)
I want to display a random image from the bunch of images i have stored in res/drawable.
The only technique that I know is to access a particular image if you know its resource id. Is there a way to access the images by using the filenames or…

chinmay dhodapkar
- 183
- 1
- 1
- 7
10
votes
3 answers
Android scaling imageview from setImageBitmap
I have this code:
and
imageview_logo.setImageBitmap(bit); // comes from…

Tom
- 3,587
- 9
- 69
- 124
10
votes
6 answers
Crop Image as circle in Android
Does anyone know how to crop an image\bitmap to a circle?
I can not find any solution, sorry ..

AlexMrKlim
- 270
- 1
- 3
- 15
10
votes
5 answers
Bitmap recycle with largeHeap enabled
Before enabling largeHeap option, I was handling large bitmaps and it's consume almost the entire memory available for the application, and recycling it over navigation and loading new ones works round on almost the full heap available. However when…

Marcos Vasconcelos
- 18,136
- 30
- 106
- 167