Created
January 26, 2011 16:30
-
-
Save sudar/796953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intent-filter> | |
<action android:name="android.intent.action.SEND" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<data android:mimeType="image/*" /> | |
</intent-filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent sharingIntent = new Intent(Intent.ACTION_SEND); | |
Uri screenshotUri = Uri.parse(path); | |
sharingIntent.setType("image/png"); | |
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); | |
startActivity(Intent.createChooser(sharingIntent, "Share image using")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent sharingIntent = new Intent(Intent.ACTION_SEND); | |
sharingIntent.setType("text/html"); | |
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml("<p>This is the text that will be shared.</p>")); | |
startActivity(Intent.createChooser(sharingIntent,"Share using")); |
But in case of Facebook populated string does not work as status update value. How to work it?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello sir
may i know, can we upload image with out using .ACTION_SEND intent
can we use Google+ sdk means by our own code to upload a image
Regards
Nitin Gupta