This tag is for questions related to images on Android
Questions tagged [android-image]
1540 questions
10
votes
4 answers
change image shape in android
I got success in implementing a pinch zoom in/out and drag/drop functionality in images on the canvas.
Now what I want is re-sizing, that images like below link that based on iPhone App
How to change shape of an image using iPhone SDK?
So how can I…

Dhruvil Patel
- 2,910
- 2
- 22
- 39
10
votes
4 answers
How do I make an image shake/wiggle when clicked?
I have an imagebutton that I would like to make shake/wiggle when it is touched. I would like it to wiggle in a manner similar to iPhone app icons do when they are pressed for a very long time.
Thanks!

student2015
- 101
- 1
- 1
- 3
9
votes
3 answers
Crop particular part of image in android
I want to crop Red part from following image, Is there any simple method available in android that can crop following image.
I have found many SO questions but all are suggesting to used following code:
Bitmap croppedBitmap =…
user1273676
9
votes
2 answers
1 files were skipped because there was no net space savings
I am trying to convert a PNG image file into a webP image file. but it gives me an error even my application minSdkVersion>19 but i don't know why its give me an error like this
0 files were converted
1 files were skipped because there was no net…

Mayur Patel
- 2,300
- 11
- 30
9
votes
6 answers
Error: The file name must end with .xml or .png
Even though I didn't choose photothumb.db as a drawable, I get an error saying photothumb.db should end with .xml or .png
my profilesmaller image is of type png
Below are my codes

Char
- 2,073
- 8
- 28
- 45
9
votes
5 answers
BitmapFactory.decodeResource and inexplicable Out of Memory
I get a strange Out of Memory error decoding a drawable image resource 960x926px jpg, allocating 3555856 byte.
The image is placed only in drawable-xxhdpi (3x) and I am using a hdpi (1.5x) device.
Two question:
why I get the error though having…

GPack
- 2,494
- 4
- 19
- 50
9
votes
1 answer
allow the user to insert an image in android app
my question is: how to create imageButton which allow the user to upload image from their phone and insert it in the application as a picture profile? like whatsapp for example it allow the user to choose image from the phone and set that as a…

Mack
- 343
- 2
- 5
- 12
9
votes
6 answers
how to hide photos from gallery and store it in my app
I am developing an android application where it will select some photos from the gallery and hide them,
i am able to select particular picture from gallery and store it in my app and delete it from gallery,but a person can see those pictures if he…

Mahantesh M Ambi
- 786
- 1
- 13
- 25
8
votes
1 answer
Android uploading pictures to server in most efficient way
I need to get images along with other data (very similar to email with attachements) to the server. I also need to do it in reliable manner so I can retry, etc on failure.
Server is WCF REST server and I do lot of other communications with it(JSON)…

katit
- 17,375
- 35
- 128
- 256
8
votes
2 answers
Picasso binding adapter 'a connection was leaked' message
I am using a binding adapter to load images in a recycler view. Images appear fine. While fast scrolling I noticed sometimes I was getting a 'connection leaked' message from Picasso.
The problem comes from dead image links, hardcoding all of my…

Daniel Wilson
- 18,838
- 12
- 85
- 135
8
votes
2 answers
Show image in textview using Html.fromhtml();
I have a list adapter to show content frm my social network, i need to put inside the text the img tags, i've tried using Html.fromhtml and it's formatting the text but instead of shows the img it shows a gray square.
How can i achieve that? I'v…

Douglas Roos
- 613
- 10
- 28
8
votes
3 answers
Image Sizes for the Android Application
Sorry I know earlier some people have same kind of questions but I am suffering from the same issue and don't get a clear view from the earlier questions.
I found Android very complex for the developer to deal with Multiple
dimensions. Like…

Simple
- 165
- 1
- 2
- 9
8
votes
4 answers
Loading tall images from url in slivers preventing whole image from loading into ram
I am looking for a library or some idea on how I can load an image by parts from the disk or a url straight to the disk then in parts again to the ram. So the two ways I see that this can be done is loading the whole image onto the disk by reading…

Osman
- 1,771
- 4
- 24
- 47
8
votes
1 answer
Video encode from sequence of images from java android
I would like to encode video from sequence of images with java only in my current android project. I mean without any use of external tools such as NDK.
Also is there any availability of java libraries for encoding video from sequence of images ?

captaindroid
- 2,868
- 6
- 31
- 45
8
votes
6 answers
Implementing a multicolumn ListView with independent Row-heights
I would like to create a list of about 200 ImageViews (random heights) with the following layout in a 'collage' fashion:
Normally I would do this in a ListView for the peformance gained by using Adapters but since i want the images to be displayed…

DagW
- 955
- 1
- 15
- 28