Native Android screenshot/image sharing in Unity using FileProvider

This post was originally posted at and reposted on Medium on 28th May 2020.

1. Create a project and separate module in Native Android using Android Studio

// ""
and//testImplementation 'junit:junit:4.12'
//androidTestImplementation ''
// ''
apply plugin: ''

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner ""


buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), ''

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation ''

Please continue reading at




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Products X Projects X Teams

Why You Should Start a Side Project — and How

Feed Exports

GraphQuery - 强大的文本查询语言

Integrate Azure Application Gateway Ingress Controller with AKS

How To Create an HTML Carousel

jQuery - Official Website Home Page

5 keys to mastering front-end web development

How to embed Google Drive folder/files with 1 line of code

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suneet Agrawal

Suneet Agrawal

More from Medium

Implementing Android 6.0 permissions in Unity3D

Listening to your Android App

Implementing Native Camera Plugin for Android!

Carousel Slider in Android Jetpack Compose with Auto Play …