This particular script will help you to implement native Android text sharing 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
.
For further explaination on how this works, please read the article Native Android text sharing in Unity.