I donβt know what you mean, but you can use the built-in Android sharing menu ...
You can share the URL of Facebook, Twitter, Gmail , etc. (assuming apps are installed on your device) using intent:
Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(Intent.EXTRA_SUBJECT, "Sharing URL"); i.putExtra(Intent.EXTRA_TEXT, "http://www.url.com"); startActivity(Intent.createChooser(i, "Share URL"));
Remember to insert this in Manifest.xml:
<activity android:name="ShareLink"> <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> <meta-data/> </activity>
Hope this helps!
user647826
source share