Print Image

org.androidprinting.intent.action.PRINT

Any application can use HP iPrint Photo for Android for printing images on nearby printers from Android phones.

Use

public void startPrintImage() {
    Intent intent = new Intent("org.androidprinting.intent.action.PRINT"); 
    intent.setData(dataUri); // image to be printed, mime type of the image (must be of type "image/*") 
    if (intent.resolveActivity(getPackageManager()) != null) { 
        startActivity(intent);
    }
}

Example intent filter

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