蓝牙和WIFI打印为Android [英] Bluetooth and WIFI Printing for Android

查看:251
本文介绍了蓝牙和WIFI打印为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要一个便携式打印机(手持式,这一点很重要),可以通过蓝牙或WiFi连接到Android手机。

We would need a portable printer (handheld, it is important) that can connect to android phone via bluetooth or wifi.

  • 在没有标准的打印SDK可用于Android这个时间
  • 有一个非官方SDK称为 iPrint的SDK 。你们中尝试过通过WiFi或者蓝牙?它的工作原理?
  • 的PrinterShare 还声称自己是的 programmaticly提供。这将是确定对我来说,每部手机缴纳一次费用$ 5的。它有很多支持的格式。您是否尝试过与任何手持设备?我问他们有关支持的蓝牙打印机列表中(因为它有一个菜单项搜索BT打印机),但他们并没有回答。
  • No standard printing SDK available for Android this time
  • There is a non official SDK called iPrint SDK. Have any of you tried it through wifi or bluetooth? Does it work?
  • Printershare also claims to be programmaticly available. It would be ok for me to pay the one time fee $5 for it per phone. It has a lot of supported formats. Have you tried it with any handheld device? I asked them about the list of supported bluetooth printers (since it has a menu item "search for BT printer"), but they did not answered.
  • 如何从你的android应用程序打印?
  • 请你用什么样的打印机
  • 是否计划在标准Android SDK,包括印刷?什么是路线图?它是目前可用的测试版还是什么?
  • 如果我们以某种方式(我不这么认为)建立自己的解决方案通过蓝牙打印,你可以推荐标准和协议检查和学习?

推荐答案

的Andr​​oid 4.4 < /一>您可以从设备打印文件,通过wifi硬件打印机。

Starting with Android 4.4 you can print documents from a device to a hardware printer via wifi.

Android应用程序现在可以打印任何类型的通过Wi-Fi或云托管服务,如谷歌云打印的内容。在打印功能的应用程序,用户可以发现可用的打印机,更改纸张尺寸,选择特定的页面打印,和打印几乎任何类型的文档,图片或文件。

Android apps can now print any type of content over Wi-Fi or cloud-hosted services such as Google Cloud Print. In print-enabled apps, users can discover available printers, change paper sizes, choose specific pages to print, and print almost any kind of document, image, or file.

如何开始打印过程中一个简单的例子:

A brief example of how to start the printing process:

private void doPrint() {
    PrintManager printManager = (PrintManager) getActivity().getSystemService(Context.PRINT_SERVICE);
    printManager.print("My document", new CustomPrintDocumentAdapter(getActivity()), null);
}

在这里CustomPrintDocumentAdapter延伸<一href="http://developer.android.com/reference/android/print/PrintDocumentAdapter.html">PrintDocumentAdapter.

更​​多信息,请href="http://developer.android.com/training/printing/custom-docs.html"> Android开发。

More information is available on Android Developers.

这篇关于蓝牙和WIFI打印为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆