All Questions

Tagged with
1148
votes
41answers
578k views

Strange out of memory issue while loading an image to a Bitmap object

I have a list view with a couple of image buttons on each row. When you click the list row, it launches a new activity. I have had to build my own tabs because of an issue with the camera layout. The ...
1784
votes
38answers
522k views

Lazy load of images in ListView

I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load the images so while the text displays, ...
236
votes
12answers
405k views

Capture Image from Camera and Display in Activity

I want to write a module where on a click of a button the camera opens and I can click and capture an image. If I don't like the image I can delete it and click one more image and then select the ...
269
votes
17answers
158k views

Why does an image captured using camera intent gets rotated on some devices on Android?

I'm capturing an image and setting it to image view.public void captureImage() {Intent intentCamera=new Intent("android.media.action.IMAGE_CAPTURE");File filePhoto=new File(...
256
votes
18answers
294k views

Get/pick an image from Android's built-in Gallery app programmatically

I am trying to open an image / picture in the Gallery built-in app from inside my application.I have a URI of the picture (the picture is located on the SD card).Do you have any suggestions?
69
votes
6answers
171k views

how to store Image as blob in Sqlite & how to retrieve it?

I want to store an image(from url) into a sqlite database.For that I use: db=new DataBase(getApplicationContext());URL url=new URL("http://sree.cc/wp-content/uploads/schogini_team.png");...
121
votes
4answers
203k views

Saving and Reading Bitmaps/Images from Internal memory in Android

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 ...
199
votes
20answers
209k views

Resize a large bitmap file to scaled output file on Android

I have a large bitmap (say 3888x2592) in a file. Now, I want to resize that bitmap to 800x533 and save it to another file.I normally would scale the bitmap by calling Bitmap.createBitmap method but ...
45
votes
9answers
100k views

how do you pass images (bitmaps) between android activities using bundles?

Suppose I have an activity to select an image from the gallery, and retrieve it as a BitMap, just like the example: hereNow, I want to pass this BitMap to be used in an ImageView for another ...
265
votes
10answers
130k views

How to get the width and height of an android.widget.ImageView?

╔══════════════════════════════════════════════╗ ^║ ImageView ╔══════════════╗ ║ |║ ║ ║ ║ |║ ║ Actual image ║ ...
102
votes
7answers
84k views

How do I use disk caching in Picasso?

I am using Picasso to display image in my android app:/*** load image.This is within a activity so this context is activity*/public void loadImage (){Picasso picasso=Picasso.with(this); ...
30
votes
4answers
82k views

Crop image in android

I want to do cropping of image i found some pretty useful ones but somehow is like lacking of the darken the unselected areas so I wondering do anyone know how? or lead me to the right direction? The ...
392
votes
17answers
347k views

How to make layout with rounded corners..?

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.
63
votes
12answers
50k views

Deleting a gallery image after camera intent photo taken

I know this has been asked in many different ways but I still can not seem to delete the gallery image from the default folder. I'm saving the file to the SD card correctly and I can delete that file ...
48
votes
9answers
169k views

How to display image from URL on Android

I want to display image on screen. Image should come from URL, and not drawable.Code is here:<ImageView android:id="@+id/ImageView01" android:src="http://l.yimg.com/a/i/us/we/52/21.gif"...
64
votes
14answers
142k views

How to use “Share image using” sharing Intent to share images in android?

I have image galley app in that app I placed all the images into the drawable-hdpi folder.and i called images in my activity like this :private Integer[] imageIDs={R.drawable.wall1, R....
59
votes
2answers
125k views

How to store(bitmap image) and retrieve image from sqlite database in android? [closed]

In my project I need to store an image into a sqlite database and also need to retrieve it to show in my android emulator. When I show it directly after decoding the encoded string, which I got from ...
82
votes
3answers
41k views

Masking(crop) image in frame

Having a rich UI application in which I want to show image with complex shape like thisNow what I want is to crop my image as per Mask image, Actually image is coming dynamic and can be imported ...
502
votes
14answers
507k views

Android: combining text & image on a Button or ImageButton

I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image.If I use ImageButton I don't even have ...
95
votes
4answers
129k views

overlay two images in android to set an imageview

I am trying to overlay two images in my app, but they seem to crash at my canvas.setBitmap() line. What am I doing wrong?private void test() {Bitmap mBitmap=BitmapFactory.decodeResource(...
77
votes
15answers
113k views

Image, saved to sdcard, doesn't appear in Android's Gallery app

I save an image to the sdcard and it doesn't appear in the Gallery application until I pull off the sdcard and return it back.Do you have any idea why is it so?Seems like the Gallery application ...
20
votes
1answer
48k views

Image in Canvas with touch events

Seems simple, and yet I'm having problems with implementation.I want a canvas with image on screen including onTouch events.I have tried ImageView but I was not able to use canvas.I have tried ...
137
votes
17answers
98k views

Android image caching

How can I cache images after they are downloaded from web?
216
votes
8answers
301k views

Get content uri from file path in android

I know the absolute path of an image (say for eg, /sdcard/cats.jpg). Is there any way to the content uri for this file ? Actually in my code I download an image and save it at a particular location....
63
votes
5answers
62k views

How to reduce an Image file size before uploading to a server

Lot of application allow sharing an image, which is picked from the gallery.Do they upload the original image file? Which is like 1-3 mb? Or do they process?In any case, how can I take the image ...
14
votes
5answers
43k views

Android background image size in pixel

I would like to create a background image for different resolutions in Android. So I need the values (in pixel) for ldpi, mdpi, hdpi,xhdpi and xxhdpi. It is important that the image will not be ...
51
votes
10answers
82k views

Android - local image in webview

I'm trying to diplay a local image in my webview :String data="<body>" + "<img src=\"file:///android_asset/large_image.png\"/></body>";webview.loadData(data, "text/html", "UTF-...
299
votes
5answers
195k views

How to make an app's background image repeat

I have set a background image in my app, but the background image is small and I want it to be repeated and fill in the whole screen. What should I do?<LinearLayoutxmlns:android="http://...
25
votes
4answers
27k views

Android - how to set the wallpaper image

Is it possible to set the android wallpaper image programatically? I'd like to create a service that downloads an image from the web and updates the home screen wallpaper periodically.
27
votes
7answers
32k views

Quality problems when resizing an image at runtime

I have a image file on the disk and I am resizing the file and saving it back to disk as a new image file. For the sake of this question, I am not bringing them into memory in order to display them ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,