如何通过WIFI连接androidphone不同型号的打印机(无Google打印云)
How to connect android phone with different types of printer through WIFI (No Google Print Cloud)
我尝试了一些解决方案,首先我需要安装 hp 打印机插件,我想先像 phone wifi 扫描打印机名称,然后自动安装它的插件,以便用户可以轻松连接到那台打印机。
有人可以帮忙吗?
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");
我尝试了一些解决方案,首先我需要安装 hp 打印机插件,我想先像 phone wifi 扫描打印机名称,然后自动安装它的插件,以便用户可以轻松连接到那台打印机。 有人可以帮忙吗?
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");