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
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
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
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
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
40 votes
3 answers
39k views

I have a function that returns a bitmap (which "contains" a QR code) and I wanted to display that bitmap inside an Image (composable function) but I didn't find any way to either convert the ...
JustSightseeing's user avatar
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
1 vote
1 answer
59 views

I need to add a BitmapDescriptor to my Polyline in Jetpack Compose google maps: val arrowBitmapDescriptor: BitmapDescriptor by remember { mutableStateOf(BitmapDescriptorFactory.fromResource(R.drawable....
NullPointerException's user avatar
0 votes
0 answers
219 views

I'm trying write compose to bitmap. https://developer.android.com/develop/ui/compose/graphics/draw/modifiers#composable-to-bitmap Text("Hello $name!", modifier = Modifier ....
Vsevolod's user avatar
  • 407
0 votes
1 answer
56 views

In my app, I'm just trying to select multiple images from gallary and show in recyclerview before uploading into server. In recyclerview, the images appear with original orientation. However before ...
Naresh Pradhan's user avatar
0 votes
1 answer
64 views

I have an image resource. I convert it to Bitmap. All I want is to rotate it around the center of the screen. If the rotated Bitmap extends the screen, it should be cut. The entire app looks like this ...
Maksim Golendukhin's user avatar
0 votes
1 answer
148 views

I'm developing an Android app (in Delphi) that loads an image with a pure red color (#FF0000) in the sRGB color space. The image is then decoded into a bitmap with inPreferredColorSpace set to Display ...
zeus's user avatar
  • 13.3k
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
0 votes
0 answers
34 views

I have this code: private fun initQRCode() { binding?.let { val bindingRequired = it val helloWorld = QRCode.ofRoundedSquares() .withColor(R.color.colorPrimaryMid) ...
Guy Sadoun's user avatar

15 30 50 per page
1
2 3 4 5
119