上的Galaxy Tab 10.1的Andr​​oid ADK错误 [英] Android ADK error on Galaxy Tab 10.1

查看:192
本文介绍了上的Galaxy Tab 10.1的Andr​​oid ADK错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在三星Galaxy Tab 10.1(3.2版本)的编程机器人ADK程序(http://developer.android.com/guide/topics/usb/adk.html)。我已设法通过使用谷歌API级别12得到它的工作在模拟器,而不是实际的设备上。

I'm programming android adk program (http://developer.android.com/guide/topics/usb/adk.html) on Samsung galaxy tab 10.1 (version 3.2). I have managed to get it working on simulator by using Google API level 12, but not on actual device.

下面是 我DEMOKIT程序

在我的Galaxy Tab上运行它,强制关闭的错误,我下载和安装过程中DemoKit.apk对LogCat中的一些错误。我不知道LogCat中让我重视LogCat中的文件作为参考来检测错误。
作为问题DEMOKIT程序LogCat中文件

When I run it on galaxy tab, "force to close" error and I have some error on LogCat during downloading and installing DemoKit.apk. I do not know about LogCat so I have attached LogCat file as reference to detect error. (LogCat file for problem DemoKit program)

在前进,结果谢谢
小唐

Thanks in advance,
pak

推荐答案

问题(用于至少一个)是您使用了错误的USB库。您使用的是一个人只能与Android 2.3.4+用于3.1+你必须使用另一个。

The Problem(atleast one) is that you are using the wrong USB library. The one you are using can only be used with Android 2.3.4+ for 3.1+ you have to use another one.

您必须从

com.android.future.usb

android.hardware.usb

,那么你需要改变你的方式,你从

then you need to change your the way you obtain the UsbManager Object from

UsbManager manager = UsbManager.getInstance(this);

UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);

和最后你的方式获得

UsbAccessory accessory = UsbManager.getAccessory(intent);

UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);

编辑:了解更多信息,可以发现这里

这篇关于上的Galaxy Tab 10.1的Andr​​oid ADK错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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