maoruibin / maoruibin/maoruibin.github.com

简单调用 Android 系统分享功能,如分享文本

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.