Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Print intent

I noticed handful of printer applications in Android Market (HP, Epson, Canon, Kodak, Brother, Samsung, Lexmark etc) allows user to make LAN printing. But i could not find any generic intent to invoke them.

Intent.ACTION_VIEW is opening up all applications which can view the photo/doc including many productivity apps.

Looks like HP iPrint app has some unique intent string, but its not working for any other print app.

Intent printIntent = new Intent("org.androidprinting.intent.action.SEND");

Any clue or workaround to invoke only print related applications when creating an intent ?

like image 383
Nospic Jose Avatar asked Mar 28 '12 23:03

Nospic Jose


1 Answers

There's no built-in way to find an application that responds to "print". Even if you know the application can print to a printer, you have no guarantee that the application will accept incoming intents. If it does accept incoming intents, you have to hope that it can accept an intent to print, and then hope that the developer documented how to use the intent.

The best way to find the application you want is to Google for it.

like image 179
Joe Malin Avatar answered Oct 12 '22 01:10

Joe Malin