printing - How to take printout from android app? -
hi in application want take printout webview page i.e html page.can tell me did mistake.my problem code running in emultor not in other devices. mainactivity.java: package com.example.print1; import android.os.build; import android.os.bundle; import android.annotation.suppresslint; import android.annotation.targetapi; import android.app.activity; import android.webkit.webview; import android.webkit.webviewclient; import android.print.printattributes; import android.print.printdocumentadapter; import android.print.printmanager; import android.content.context; @suppresslint("newapi") public class mainactivity extends activity { private webview mywebview; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.web_print); webview webview = new webview(this); webview.setwebviewclient(new webviewclient() { public boolean shouldoverrid...