开发者

How can I allow users to easily share a download link for my app? [closed]

开发者 https://www.devze.com 2023-03-18 22:16 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

How can I communicate the download link from one user who has it to one who does not? If all they have are their android phones. Bluetooth?开发者_如何学JAVA Would I send a contact card.

Are there less cumbersome ways that pairing?


Look for the share intent. Here's an example:

Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Some text");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Some other text");

startActivity(Intent.createChooser(shareIntent, "Title for chooser"));
0

精彩评论

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