Programming an App for a device that runs Jelly Bean 4.3.
Our App makes a photo, does some processing and then must print on a (dye-sublimation) WiFi photo printer. (Possibly the Canon Selphy CP910.)
I am stuck how to best approach to printing of the photo. I have a couple of questions.
[Printer]
class. Jelly Bean offers nothing at all? Or am I missing something?After hacking into phonegap, this works:
final Intent sharingIntent = new Intent( "android.intent.action.SEND" );
sharingIntent.setPackage("jp.co.canon.bsd.android.aepp.activity");
sharingIntent.setType("image/jpeg");
sharingIntent.putExtra(Intent.EXTRA_STREAM, printUri);
startActivity(Intent.createChooser(sharingIntent, "Print Photo"));
where printUri
is a Uri to a JPEG file on external storage.
If you need another printer manufacturer, the phonegap source lists quite a few.