Android intent to share on Facebook lite

You can use "Intent.ACTION_SEND" to send text to share on Facebook lite with this snippet of code.
Intent share=new Intent(Intent.ACTION_SEND);  share.setType("text/plain"); share.putExtra(Intent.EXTRA_TEXT, "Some text you would like to share..."); share.setPackage("com.facebook.lite"); startActivity(Intent.createChooser(share, "Share via"));
 See you in a next post about Android Code Snippets.
Comment via Facebook
0 Comment via Google

0 تعليقات:

Post a Comment