I tried some solutions,for that first I need to install hp printer plugin,I want to do like first my phone wifi scan that printer name,then install its plugin automatically so that user can easily connect to that printer. Can Anybody help?
You can do this by using print share application: Intent i = new Intent(Intent.ACTION_VIEW); i.setPackage("com.dynamixsoftware.printershare"); i.setDataAndType(printFileUri,"text/plain"); startActivity(i);
where 'printFileUri' is as follows:
static final Uri printFileUri = Uri.parse("file:///sdcard/Calci_print.txt");