Facebook、SMS、および電子メールを介してAndroidアプリを共有するための手順またはコーディング方法は何ですか?
簡単な質問ですが、私を困惑させる質問です!!!
それはそのFB-androidSDkによるものですか...そしてすべてですか?
ありがとう!!
Facebook、SMS、および電子メールを介してAndroidアプリを共有するための手順またはコーディング方法は何ですか?
簡単な質問ですが、私を困惑させる質問です!!!
それはそのFB-androidSDkによるものですか...そしてすべてですか?
ありがとう!!
その共有ボタンにこれを追加します
String shareBody = "You app link for google play";
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.share_using)));