Turn Text Upside Down

org.openintents.action.UPSIDE_DOWN

Process a given text and return it upside down.

The text is usually a selection, if the selection is empty, the whole text, i.e. before and after the caret is processed.

This action is usually launched with mime type text/plain and the following category:

org.openintents.category.TEXT_SELECTION_ALTERNATIVE

Use

public void startTurnTextUpsideDown(String selection, String beforeSelection, String afterSelection) {
    Intent intent = new Intent("org.openintents.action.UPSIDE_DOWN"); 
    intent.putExtra("org.openintents.extra.TEXT", selection); // String
    intent.putExtra("org.openintents.extra.TEXT_BEFORE_SELECTION", beforeSelection); // String
    intent.putExtra("org.openintents.extra.TEXT_AFTER_SELECTION", afterSelection); // String
    if (intent.resolveActivity(getPackageManager()) != null) { 
      startActivityForResult(intent, REQUEST_CODE);
    }
}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) { 
        = data.getExtra(org.openintents.extra.TEXT);
      // handle result
    }
}

Example intent filter

<activity ...>
    <intent-filter>
        <action android:name="org.openintents.action.UPSIDE_DOWN" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>
            

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