Back to project page ColorClock.
The source code is released under:
MIT License
If you think the Android project ColorClock 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 se.kjellstrand.colorclock.activity; /* w ww .ja v a 2s .c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import se.kjellstrand.colorclock.R; /** * Opens up the native share dialog. */ public class ShareActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.sharing_text)); sendIntent.setType("text/plain"); startActivity(sendIntent); finish(); } }