I am going to develop an application for an Android tablet that also has the ability to print some local saved images with direct print access (therefore, without Internet interference). In particular, to test my application, I use motorola xoom 2.
My intentional call code:
Uri uri = Uri.parse("path to the existing image file");
Intent intent = new Intent ("org.androidprinting.intent.action.PRINT");
intent.setDataAndType( uri, "image/*" );
startActivityForResult(intent, CALL_PRINT_ID);
and I get the error:
java.lang.RuntimeException: Unable to start Activity ComponentInfo {com.example.imageprinter / com.example.imageprinter.MainActivity}: android.content.ActivityNotFoundException: activity not detected for processing Intent {act = org.androidprinting.intent.action.PRINT ....
I installed the Hp e-print application and I activated it by entering my email address with the same results. I also tried different intentions: "org.androidprinting.intent.action.SEND", for example
What happened or what did I forget?
source
share