HP ePrint interface/intent

Rusty

Well-Known Member
Licensed User
Longtime User
Is there an intent or interface to print from an app to the ePrint functions provided by the HP ePrint app?
Thanks,
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks.
I have looked through the unfiltered logs and I guess I don't see what I need.
I've found some Java code on the net, but have no idea how to port this to B4A. Any help would be greatly appreciated.
B4X:
     Uri uri = Uri.fromFile( F );
    Intent Intent = new Intent ("org.androidprinting.intent.action.PRINT");
    Intent.setDataAndType( uri, "text/plain" );
    context.startActivityForResult(Intent, 0);
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks Erel! Works perfectly for a txt file. It does present the HP eprint control window which I'd rather have it just print it without the UI. I suppose that's an HP thing :)
Can you advise how I might print a PDF and also an HTML file?
Rusty
 
Upvote 0
Top