Gist / October 12, 2020 / 1 min read / By Suneet Agrawal

Native Android text sharing to particular app in Unity

This particular script will help you to implement native Android text sharing to a particular app in Unity.

We use all the native classes of Android in Unity using AndroidJavaClass and AndroidJavaObject and perform the Android’s ACTION_SEND with EXTRA_SUBJECT and EXTRA_TEXT, and share the content to a particular app with package name.

For further explaination on how this works, please read the article Native Android share to a particular app in Unity.