2

私はAndroidアプリケーションから複数のソーシャルネットワーク(Facebook、Twitter ...)に投稿する可能性を実装しようとしていますが、APIを1つずつ確認する代わりに、無料のライブラリが存在するかどうか疑問に思いました。たった1つのリンクと簡単な呼び出しでそれを。

私は古い質問を検索しましたが、SocialLibのようなソリューションはインターネットから完全に消え、他のソリューションはライブラリから有料サービスに移行しました。

4

1 に答える 1

0

Android の共有 API はどうですか。

//create the send intent
Intent shareIntent = Intent(android.content.Intent.ACTION_SEND);

//set the type
shareIntent.setType("text/plain");

//add a subject
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,  "Insert Subject Here");

//build the body of the message to be shared
String shareMessage = "Insert message body here.";

//add the message
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareMessage);

//start the chooser for sharing
startActivity(Intent.createChooser(shareIntent, "Insert share chooser title here"));

次のポップアップが表示されます: http://4.bp.blogspot.com/-gn8nnLC70Xc/TrFoY1GxKtI/AAAAAAAAAEI/6UDPHv-Zxv8/s1600/sharelist.png

于 2012-05-14T13:45:31.750 に答える