1
我知道如何使用ACTION_SEND共享文本。打開共享對話框以共享文件使用ACTION_SEND
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "Download Link https://play.google.com/store/apps/details?id=com.mtracker2051");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "Share This App"));
我想使用ShareDialog共享一個文本文件。 我該怎麼做。
我在這裏閱讀了這裏http://developer.android.com/training/sharing/send.html但cound沒有從這個鏈接得到很多。
我認爲你所說的ShareDialog實際上是一個Intent選擇器,並且你已經在你的代碼中使用它。 – Egor
是的,但我想分享一個文本文件。 – kamal
這是什麼問題? – Egor