Invoking HP ePrint Android application

android

Solution

After more than 10 hours, I managed to find the solution. Right code to invoke HP ePrint application is like this:

    Uri uri = Uri.fromFile( f );
    Intent intent = new Intent ("org.androidprinting.intent.action.PRINT");
    intent.setDataAndType( uri, "text/plain" );
    context.startActivityForResult(intent, 0);

Problem

I am working on an android app that should invoke android HP ePrint application for wireless printing. For that purpose, I'm using code: ``` Intent intent = new Intent("com.hp.android.print.PRINT"); intent.setPackage("com.hp.android.print"); startActivityForResult(intent, 0); ``` I am pretty sure that I didn't get intent's action right... Does anybody know what is the right action to invoke this HP ePrint application? And how can I pass the exact file to print (intent.putExtra(...)). Thanks

Original source