Share Text in Android

In many application there is a share button for share some text and/or link of application. Or in many apps which share some text to other applications using android sharing functionality by sharing Intent . In many application like Quotes, need to share their quotes to other apps using sharing functionality.

Using Intent.ACTION_SEND we can send some data to other apps. Its show popup of listing of shareable applications. You may also able to share to direct some application using setPackage().

Let’s see one simple example,
activity_main.xml

MainActivity.java

Now run project. Our output looks like below

android-share-text-output1-skynils  android-share-text-output2-skynils  android-share-text-output3-skynils

android-share-text-output-skynils

Download Project.
downlod

Now see next tutorial Rating Bar in Android.