开发者

AddThis functionality in android application?

i want to share on facebook,tweet on twitter same like Add This functionality

any one guide me 开发者_如何学Gois it possible in android? if yes, then please guide what is the procedure for all facebook ,twitter,linked in..etc.. and without installing ADD THIS application in phone. i mean programmatically.

any help would be appreciated.


You can use android default sharing tool.. if the user has configured gmail/fb/twitter.. than u will be able with the same too

            Intent i = new Intent(Intent.ACTION_SEND);
        i.setType("text/plain");
        i.putExtra(Intent.EXTRA_SUBJECT, "Sharing URL");
        i.putExtra(Intent.EXTRA_TEXT, "http://www.url.com");
        startActivity(Intent.createChooser(i, "Share URL"));


If you reallly prefer to include a AddThis functionallity then check out the AddThis For Android SDK. It allows you to emmbed a button into your application which has the 'AddThis' functionallity. Keep in mind that this is different from the "AddThis App for Android" which allows you to share content from other apps using AddThis.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜