Skip to content

Instantly share code, notes, and snippets.

View iRYO400's full-sized avatar
🎄
Focusing

Akbolat Sadvakassov iRYO400

🎄
Focusing
  • Almaty, Kazakhstan
View GitHub Profile
@iRYO400
iRYO400 / Cache.java
Last active November 24, 2022 08:38 — forked from nikartm/Cache.java
Android. Example how to save an image file in the App cache and get Uri for it. The Image will not be saved in a device gallery, only in an internal App cache.
package com.github.example;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.Nullable;
import androidx.core.content.FileProvider;