maoruibin / maoruibin/maoruibin.github.com
简单调用 Android 系统分享功能,如分享文本
Open
Nobody has claimed this yet.
utils
- Dominant language
- HTML
- Stars
- 22
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
分享文本
public static void shareText(Context context, String text){
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT,text);
sendIntent.setType("text/plain");
context.startActivity(Intent.createChooser(sendIntent, "发送"));
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shareText(Context, String) example in the issue; no repository file or test is named. Clarify whether this should become blog documentation about Android text sharing, then identify the intended content location and acceptance criteria before making a change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- documentation, mobile-dev
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100