Check App version

org.openintents.intents.CHECK_VERSION

Protocol to facilitate automated update mechanism for app stores.

Data describes an url to a simple text file containing information about the latest version or a VeeCheck file. If a new version is available the user is notified and can initiate the update process.

Use

public void startCheckAppVersion() {
    Intent intent = new Intent("org.openintents.intents.CHECK_VERSION"); 
    intent.setData(dataUri); // url to version info file 
    if (intent.resolveActivity(getPackageManager()) != null) { 
        startActivity(intent);
    }
}

Example intent filter

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