Questions tagged [android-image]

This tag is for questions related to images on Android

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

How to check at runtime if an imageview came from a local or remote resource?

If I'm running as a third party library within an android application, and I want to check whether the imageviews on screen were loaded from locally bundled resources or were loaded from a remote uri -...
Jon's user avatar
  • 7,961
0 votes
1 answer
36 views

How does Android's ImageWriter work under the hood?

I have a custom Camera2 OpenGL pipeline to process frames from a Camera device. I have two target EGLSurfaces that I just send the EXTERNAL_OES OpenGL texture to using a pass-through Shader. This is ...
mrousavy's user avatar
  • 933
0 votes
1 answer
35 views

Android: Custom NDK/C++ android.media.Image implementation backed by OpenGL texture/HardwareBuffer

I'm working on a Camera2 app where I have a custom OpenGL pipeline set up for processing video frames. In my pipeline, I use a couple of different third party frame-processing APIs that expect an ...
mrousavy's user avatar
  • 933
2 votes
2 answers
186 views

Taking photos on Android with Blazor Webassembly "Out Of Memory" Exception

I am new to Blazor Webassembly. I am trying to take a simple photo on my Android device (Samsung Galaxy Tab S7 FE). Here is the code <div> <InputFile OnChange="@OnFileSelection" ...
Aiko West's user avatar
  • 781
0 votes
1 answer
64 views

Handling java.lang.OutOfMemoryError with Image Loading in Android Compose using painterResource

I am encountering a recurring issue while working with the "Image" component in Android Compose. I am using the painterResource function to load images into the "Image" component. ...
eldartsa's user avatar
  • 207
1 vote
1 answer
39 views

Is it possible to synchronize the content draw by OpenGL and the position of a View in Android?

There are 2 views in a FrameLayout: SurfaceView View The content of SurfaceView is drawn using OpenGL in another thread: Send the Surface of SurfaceView from java to c++ Create ANativeWindow: ...
dante's user avatar
  • 1,064
0 votes
2 answers
333 views

Displaying .avif images on versions lower than android 12

Im wondering whether there is a library or a way to display .avif images on android versions lower than 12, since avif is supported from android 12+. I tried using Glide and Picasso, but it just ...
Dazai's user avatar
  • 17
0 votes
0 answers
22 views

Does FrescoImageViewer - stfalcon still work for android (java)?

Could not find com.github.stfalcon:frescoimageviewer:0.5.0. Required by: project :app I'm getting this error while building my project, when I implement "com.github.stfalcon:frescoimageviewer:0....
Animish Prateek's user avatar
1 vote
0 answers
198 views

How to convert an Jetpack Compose ImageVector to a Drawable

How to convert an ImageVector to a Drawable? Let's say I have the Icons.Default.Public from the implementation "androidx.compose.material:material-icons-extended package. I want to convert this ...
J. Hegg's user avatar
  • 1,485
0 votes
0 answers
86 views

How to set image (any file size) of ImageView when creating (home screen) widget in Android (API +24) in Kotlin

I have a problem, I need to create a widget in Kotlin which has to get images from system gallery and display them in ImageView (random pick). I successfully made it work in MainActivity (which mustn'...
Andrew15_5's user avatar
0 votes
0 answers
291 views

Android. How to correctly open page with PdfRenderer?

I'm trying to implement PdfViewer with Pdf Renderer Api and Jetpack Compose. Here is my code: @Composable fun PdfViewer(uri: Uri) { val context = LocalContext.current val rendererScope = ...
testivanivan's user avatar
  • 1,114
1 vote
1 answer
860 views

Display image from content:// URI without opening file picker

As part of my app, users can select images from their device and I store the URLs to these in my database. Then, elsewhere in the app, I need to display those images. I am getting the image URI ...
max pleaner's user avatar
  • 26.3k
3 votes
1 answer
555 views

How to load an image using a URI stored in Room as a String

I am making a practice application to load the inventory of a store, inside the screen I press a floating button that generates a dialog that asks for an image among several data, which the user ...
Carlos Rosiles's user avatar
1 vote
0 answers
46 views

Android. Is it possible get cached bitmap with glide?

Is it possible to get cached bitmap by key with glide like in coil ? For example my code with coil: val bitmap = imageLoader.memoryCache?.get(cacheKey) as? Bitmap? And my request to show page: val ...
testivanivan's user avatar
  • 1,114
0 votes
1 answer
184 views

Is there any possible way to handle image opening in web view

I faced a problem, and hope somebody would be kind and give me a hand with it. The problem is: I've got a webView in my application to open links on some news within my app (and I don't want to open ...
SmirnovDV's user avatar
-1 votes
2 answers
1k views

How to add asset image in flutter?

To add images from asset folder, follow this simple steps: create a folder with name of assets(you can give any name, but assets preferable). Register your asset folder and its images in pubspec.yaml....
azeem 's user avatar
0 votes
1 answer
70 views

Able to store image to a pat but unable to access it using `File` for Thumbnail Creation

I am able to store an image and display it ImageView using the same filePath but get an error when trying to access it for thumbnail creation using ThumbnailUtils I have a fragment, That captures the ...
Sanjay Kapilesh's user avatar
0 votes
1 answer
22 views

How to hide app already uploaded photos from gallery/photos app?

I have an app. It has the functionality of uploading photos from gallery/photos. Is it possible to hide photos that have already been selected from gallery? For example: App doesn't have any photo ...
Red M's user avatar
  • 2,619
0 votes
1 answer
793 views

Unable to properly crop image from CameraX in Android

I am trying to capture image within the rectangle as shown in image, using CameraX. The way I am going on about this is, by having the ratio of Screen to Caputred image calculated and then mapping ...
theanilpaudel's user avatar
0 votes
1 answer
1k views

Open failed: EACCES (Permission denied) Exception from Image Picker

In my jetpack compose project, I have an image picker, and when I pick an image from the recents list and do a custom image compression operation, it works fine, but if the image is picked from the ...
Raj Narayanan's user avatar
0 votes
2 answers
64 views

Android Java: Error 503 when loading image from flickr with Picasso

I use Flickr to load images into my app using the Picasso library. It was working up until about 2 months ago with no issue. I have not changed anything in my code having to do with images since it ...
Matthew Russell's user avatar
1 vote
2 answers
2k views

Flutter File picker unable to select image from Android Gallery

I am using file_picker 5.0.1, while selecting image from Android device Gallery app it shows this error. I/FilePickerDelegate(26740): User cancelled the picker request This is the code snippet, I am ...
Tushar Asodariya's user avatar
0 votes
1 answer
570 views

Any Android libraries to resize images in place?

Are there any Android libraries to resize images and save it in place? I'm using Jetpack Compose and Kotlin in my project. My app has a feature for taking photos and choosing an image from the gallery....
Raj Narayanan's user avatar
0 votes
1 answer
73 views

Specify Gallery image for imageview

first time poster & very new to Android/Java. This board has been a great help, thanks! I'm having problems trying to use a string to select an exact filename for an image in my device gallery and ...
St3v3m's user avatar
  • 1
0 votes
0 answers
38 views

Image consuming much more memory on Android 24

I have a quite big image that showing as a background in Splash screen. It's size on xxhdpi folder is 2.5 (Mb) Here is my Splash screen code for testing class SplashActivity : AppCompatActivity() { ...
Linh's user avatar
  • 58.8k
2 votes
1 answer
393 views

How to download images shown with glide into device storage. KOTLIN

I have a recyclerview that uses Glide to show images from Firebase Realtime database. I have a download button in this recyclerview and I want users to be able to download these images once the click ...
Khumo Mashapa's user avatar
0 votes
0 answers
459 views

Where should I store images for my android app? How to store and retrieve those images?

The app is an online app. And the size of my app (.apk) is already over 85mb. I want to store the images I am using on "some" server, instead of drawable folder. The problem is I don't know ...
rushabhvg's user avatar
0 votes
0 answers
274 views

How can I store images for my react native app?

I want to build a cloud-based app. for that I used many images but I think that will increase the size of my app, so where can I store my images and get them by URI. I tried storing and sharing from ...
Amansisa Tadese Gudina's user avatar
0 votes
2 answers
190 views

Picasso Fetching Images in Activity, then show them into Fragment's ImageView

I am trying to fetch multiple images in an Activity with FragmentStateAdapter in it. Then I need to show them into some Fragment's ImageView. I want to preload them into the cache ( after I receive an ...
Red Coder's user avatar
  • 107
1 vote
1 answer
850 views

How long can I use the URI from ActivityResultContracts.GetContent() for?

Basically, I'm trying to let users choose pictures from their phone's image gallery to use as background images in my app. Here is my code: private val pickImages = registerForActivityResult(...
Lifes's user avatar
  • 1,268
0 votes
1 answer
646 views

Android Open Assets Image File with Intent and FileProvider Shows Size 0

I place all the files in assets folder and use following functions to open them: fun Fragment.openAssetsFile(fileName: String) { val file = getAssetsFile(fileName) val fileUri = FileProvider....
Sam Chen's user avatar
  • 8,023
0 votes
0 answers
721 views

Android: Bitmap too large. Nothing working except setting android:hardwareAccelerated to false

I have an Android application where I need to load an image in the imageView. I have tried every recommended solution but the app is still crashing on old Redmi devices. The exception, I'm getting is ...
Himanshu Kansal's user avatar
0 votes
0 answers
119 views

How to check an image is 360 panoramic or not in Android?

I was working on a project where I have to determine an image is 360 panoramic or not. Is there any way to determine that property from an image?
Ayan Sarkar's user avatar
0 votes
1 answer
2k views

Image is not selecting from gallery android studio java

I want to select image from phone gallery but when i click on image the app returns to main activity without updating image. currently i created the code in fragment. I wrote the code correctly but it ...
Ahmad Yousafzai's user avatar
0 votes
1 answer
74 views

discrepancy between app downloaded from play store and installed from android studio

Ok, hi. I have an app that uses some JPG nad PNG images, the images are dispalyed fine if i install the app from android studio, but when i download it and install it from play store, the images are ...
Danstern's user avatar
  • 137
0 votes
1 answer
1k views

Preview any uploaded image in android

I am making an activity in Android Studio using Kotlin in which the user can upload his document in image form on the server. So what I want is that the user after uploading the image can see a link ...
Kishan Singh's user avatar
0 votes
1 answer
891 views

Image picked from gallery on Android device throws "no such file or directory" when saving to online storage

In my React Native 0.66 app, there is a function saving images to online storage service OSS. Here is the code for saving to OSS: import AliyunOSS from 'aliyun-oss-react-native'; AliyunOSS....
user938363's user avatar
  • 9,970
2 votes
0 answers
258 views

Unable to convert .png to .WebP format, After converting from Android Studio "Convert WebP" option, extension is not getting change from .png to .WebP

Unable to convert .png to .WebP format, After converting from Android Studio "Convert WebP" option, the extension is not getting changed from .png to .WebP Adding attachments for reference, ...
Shubham Vyas's user avatar
0 votes
1 answer
590 views

How to use high resolution(4k) image in android app

I am getting high-resolution images from an API and displaying them on my app. I am not familiar with dealing with high-resolution images or images in general so I was surprised when I saw the images ...
barryalan2633's user avatar
1 vote
1 answer
204 views

Do I Need Multiple Image Sizes (xxhdpi vs. xxxhdpi)?

Apologies in advance for such a basic question, but this is my first app and I can't quite find a clear answer for my situation. All the images in my app are stored in the drawable folder, I'm NOT ...
Jason W's user avatar
  • 77
0 votes
1 answer
126 views

Setting up square image as background

I have square image and I need to set that image as background. But I need that image to render differently in portrait and landscape mode. As shown in the picture, the same image should be applied ...
skafle's user avatar
  • 727
0 votes
1 answer
148 views

How to not crop ImageView inside a LinearLayout?

Hi, I'm trying to make something like this And this is what I get This is the xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://...
Michal Dzurík's user avatar
2 votes
0 answers
216 views

Accessing an image file in an asset pack from angular html ionic app

I figured out how to build a separate large asset pack for placing 300MB of images. What I don't understand is how to reference those images from my Angular typescript Ionic app. when the images were ...
Paul Hill's user avatar
  • 101
1 vote
1 answer
480 views

Modifier.clip being ignored

I have a basic Image with a painterResource from my drawale folder. I'm trying to make it a rounded image but the clip modifier isn't doing anything. This is one way I've tried. @Composable fun ...
Cook915's user avatar
  • 48
0 votes
0 answers
94 views

I Want It To Save Pictures By Extension

All Images Downloaded From Wallpaper Application Are Saved As JPG Extension. I want it to save images by extension. For example, if the image has png extension, I want it to save as png, if it is gif, ...
bugrastar's user avatar
25 votes
3 answers
20k views

How can I display a bitmap in Compose Image

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
0 votes
1 answer
2k views

Get image from Uri and show in composable with ViewModel

I have this composable that used to work fine, but now after some libraries update it doesn't. I'm using a ViewModel to save an image returned from ActivityResultContracts.TakePicture() and show it in ...
Stefano Sansone's user avatar
0 votes
3 answers
3k views

How to modify color and size for Coil image placeholder in Jetpack Compose

I'm using Coil 1.3.2 in Jetpack Compose and I have an Image like this Image( painter = rememberImagePainter( data = imageUrl, onExecute = { _, _ -> true }, builder = { ...
Stefano Sansone's user avatar
0 votes
2 answers
281 views

Android Image Sharing Intent -File format not supported

Data class :- data class User(val imagepic: Int) Passing value to recycler view :- val users = ArrayList<User>() val adapter = CustomAdapter(users) recyclerView.adapter = adapter ...
Rahul's user avatar
  • 117
2 votes
1 answer
175 views

How to convert .png/.jpg format file to android.media.Image object?

I have an android app and noticed that it is onImageAvailable(ImageReader imagereader) function that takes images from the ImageReader when available and processes them. My aim is to manipulate that ...
Parviz Ahmedov's user avatar

1
2 3 4 5
31