Reputation: 61
I am new to Android printing framework. My requirement is to print document from my app to printer which is connected to Local ethernet ( Not over internet ). is it possible in Android printing framework. How my app and printer will communicate?? Please Help
Upvotes: 0
Views: 1900
Reputation: 1698
Here is one way using the PrintHelper available in the V4 Support Library.
private void doPhotoPrint() {
PrintHelper photoPrinter = new PrintHelper(getActivity());
photoPrinter.setScaleMode(PrintHelper.SCALE_MODE_FIT);
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.droids);
photoPrinter.printBitmap("droids.jpg - test print", bitmap);
}
For more information, follow this link:
https://developer.android.com/training/printing/photos.html
Upvotes: 1