Process text


Process a piece of text

Read also the Android documentation


public void startProcessText(String text, boolean readonly) {
    Intent intent = new Intent("android.intent.action.PROCESS_TEXT"); 
    intent.putExtra("android.intent.extra.PROCESS_TEXT", text); // String
    intent.putExtra("android.intent.extra.PROCESS_TEXT_READONLY", readonly); // boolean
    if (intent.resolveActivity(getPackageManager()) != null) { 
      startActivityForResult(intent, REQUEST_CODE);

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) { 
      String processedText = data.getStringExtra(android.intent.extra.PROCESS_TEXT);
      // handle result

Example intent filter

<activity ...>
        <action android:name="android.intent.action.PROCESS_TEXT" />
        <category android:name="android.intent.category.DEFAULT" />

Apps Providing an Implementation

Search on Github

Search on Google Play, AppBrain, Amazon App store or similar (not yet available - please make this happen!)

For Specification Writers

Edit on Github