Add a Tag to the Given Data

org.openintents.action.TAG

Activity implementing this intent provide means to add the given tag or newly entered tag to the given data.

The data is specified by its content URI.

Use

public void startAddATagToTheGivenData(String tag, String data) {
    Intent intent = new Intent("org.openintents.action.TAG"); 
    intent.setData(dataUri); // uri of the tag 
    intent.putExtra("tag", tag); // String
    intent.putExtra("uri", data); // String
    if (intent.resolveActivity(getPackageManager()) != null) { 
        startActivity(intent);
    }
}

Example intent filter

<activity ...>
    <intent-filter>
        <action android:name="org.openintents.action.TAG" />
        <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