Native Android screenshot/image sharing in Unity using FileProvider

This post was originally posted at https://agrawalsuneet.github.io/blogs/native-android-image-sharing-in-unity-using-fileprovider/ and reposted on Medium on 28th May 2020.

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

//testInstrumentationRunner 
// "android.support.test.runner.AndroidJUnitRunner"
and//testImplementation 'junit:junit:4.12'
//androidTestImplementation 'com.android.support.test:runner:1.0.2'
//androidTestImplementation
// 'com.android.support.test.espresso:espresso-core:3.0.2'
apply plugin: 'com.android.library'

android {
compileSdkVersion 28

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

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

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

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
}

Please continue reading at

--

--

--

https://agrawalsuneet.github.io/

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

https://agrawalsuneet.github.io/

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 …