Share Image Text using FileProvider | Android Studio | Java

Published: 26 August 2021
on channel: Atif Pervaiz
6,677
90

The FileProvider is a special subclass of the ContentProvider that facilitates secure sharing of the files associated with an app by creating a content:// Uri for a file instead of a file:/// Uri.
A content URI allows you to grant read and write access using temporary access permissions. When you create an Intent containing a content URI, in order to send the content URI to a client app, you can also call Intent.setFlags() to add permissions. These permissions are available to the client app for as long as the stack for a receiving Activity is active. For an Intent going to a Service, the permissions are available as long as the Service is running.

Support: https://paypal.me/atifsayings

Watch for Kotlin:    • Share Image Text using FileProvider |  And...  

In this video we will do:
1) Share Text.
2) Share Image.
3) Share Text & Image.
4) Use FileProvider.
5) No FileUriExposedException.

Important Links:
https://developer.android.com/referen...
https://developer.android.com/topic/l...

Chapters:
0:00 Create, Setup Project
1:18 Setup FileProvider
4:55 Share Data UI
9:37 Share Data Coding
31:30 Testing

Feel free to comment in case of any problem

Chanel:
   / mohammadatif1  
Websites:
https://technifysoft.com/
https://devofandroid.blogspot.com
Apps/Games on PlayStore:
https://play.google.com/store/apps/de...

If u like this video, Like, Comment, Subscribe to support us...

#ShareIntent #AndroidStudio #AtifPervaiz

Share Intent
Share Data
Share File
Share Text
Share Image
Share Image & Text
Share Text & Image
Share data using FileProvider
Share data using ContentUri
Share Photos & Files Using FileProvider
File Provider
android studio


On this page of the site you can watch the video online Share Image Text using FileProvider | Android Studio | Java with a duration of hours minute second in good quality, which was uploaded by the user Atif Pervaiz 26 August 2021, share the link with friends and acquaintances, this video has already been watched 6,677 times on youtube and it was liked by 90 viewers. Enjoy your viewing!