Back to project page kickflip-android-sdk.
The source code is released under:
Apache License
If you think the Android project kickflip-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.kickflip.sdk; /*from www.j a va 2s. co m*/ import android.content.Context; import android.content.Intent; /** * @hide */ public class Share { public static Intent createShareChooserIntentWithTitleAndUrl(Context c, String title, String url){ return Intent.createChooser(createShareIntentWithUrl(c, url), title); } public static Intent createShareIntentWithUrl(Context c, String url) { Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); shareIntent.setType("text/plain"); shareIntent.putExtra(Intent.EXTRA_SUBJECT, c.getString(R.string.share_subject)); shareIntent.putExtra(Intent.EXTRA_TEXT, url); return shareIntent; } }