Back to project page voltag.
The source code is released under:
MIT License
If you think the Android project voltag 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 edu.purdue.voltag.helper; /*from w w w. j ava2s .c o m*/ import android.content.Context; import android.content.Intent; /** * Created by david on 5/10/14 for android */ public final class ShareHandler { public static void shareGame(Context context, String id) { Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/plain"); String shareBody = "Come join the revolt! Enter the id " + id + " or click here http://voltag.davidtschida.com/"+ id; sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Join the revolt"); sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody); context.startActivity(Intent.createChooser(sharingIntent, "Share via")); } }