开发者

AddThis functionality in android application?

开发者 https://www.devze.com 2023-01-19 05:55 出处:网络
i want to share on facebook,tweet on twitter same like Add This functionality any one guide me 开发者_如何学Gois it possible in android?

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

精彩评论

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

关注公众号