Skip to content
0:00 / 0:00

#android#mediastore#androidq

Android tutorials | How to save remote or url image to phone storage in Android Q 2020 Latest

Tech Android

8 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

1.6K views6 years ago1 recommendation

Mobile developmentAndroid and Jetpack Compose

How to download and save a remote image from a URL to local storage in Android Q using MediaStore.

In this video i will show you how to save remote image to phone storage in android 10 or android Q. This is our Official Channel So Don't Forget to Subscribe and Like, Share and Comment on Our videos. This Channel Contains Videos on Android Application development, Android Graphic designing, Python software development , Logo Designing , Complete design of Adobe Illustrator, HTML and CSS , Web Designing Course, and much more. how to save image to phone storage android 2020, how to save image from url to phone storage android Q, how to save image from url to phone storage android 10, how to save remote image from url to phone storage android Q, how to save remote image from url to phone storage android 10, android tutorial, learn android development, android tutorial for beginners, android tutorial 2020, 2020 android development, android tutorial hindi, learn android develoopment in hindi, android tutorial in hindi, android tutorial for beginners 2020, learn to make android apps, android apps tutorial, how to make android app, app development tutorials, learn android in hindi, android app in hindi, learn android in one video, android development

Why it's here

1 person recommends this

What people say. Recommended as a guide for saving images to local storage in Android Q using MediaStore.

Rachit Voheraon Stack Overflow • Recommends

On “How to save an image in Android Q using MediaStore?”

private void saveImage(Bitmap bitmap, @NonNull String name) throws IOException { OutputStream fos; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { ContentResolver resolver = getContentResolver(); ContentValues contentValues = new ContentValues(); contentValues.put(MediaStore.MediaColumns.DISPLAY_NAME, name + ".jpg"); contentValues.put(MediaStore.MediaColumns.MIME_TYPE, "image/jpg"); contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, Environment.DIRECTORY_PICTURES); Uri imageUri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues); fos = resolver.openOutputStream(Objects.requireNonNull(imageUri)); } else { String imagesDir = Environment.getExte…