English 中文(简体)
使用HTC野火进行android开发
原标题:Using HTC wildfire for android development
  • 时间:2010-10-16 04:55:29
  •  标签:
  • android

我想知道是否有可能使用我的HTC野火(一些链接会很好)来开发android,而不是模拟器。

我曾试图通过谷歌查找这些信息,但到目前为止没有任何有用的结果。

如果我得到更多信息,我会在这里更新。

[当我使用野火和日食时,我得到了这个。]

非常感谢。

最佳回答

从您的屏幕截图来看,您似乎没有正确设置访问USB设备的权限。

请尝试以root身份运行adb服务:

$ sudo adb kill-server; sudo adb start-server

或者,更永久的解决方案是为USB设备权限设置udev规则。请参阅android的步骤3中的说明在设备上开发页面。

以root用户身份登录并创建以下文件:/etc/udev/rules.d/51-android.rules。当检测到设备时,udev系统会检查此文件是否存在特殊情况。

Edit the file to read: SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

对于USB供应商ID等于0bb4的特殊情况,这将dev节点上的权限位设置为全局可读写。

Now execute: chmod a+r /etc/udev/rules.d/51-android.rules

…为这些android规则提供了世界读取权限,这是让udev守护进程处理这个新规则所必需的。

问题回答

Sure, all you need is to install the USB driver and follow the directions from here. The USB driver is included in the HTC Sync software, which you can get here.

转到htc网站

http://www.htc.com/europe/SupportViewNews.aspx?dl_id=982&;news_id=769

并下载驱动程序

只需将htc手机连接到pc并从eclipse运行应用程序。

无需配置。它直接在手机上运行,而不是在模拟器上运行。

干杯

我唯一能想到的另一件事是如何将手机设置为通过usb连接到计算机。。。这可能会解决我自己类似的问题。。。我使用“HTC同步”作为我的连接方式,而我甚至还没有尝试过其他方式。

让我们找出答案,好吗?

没有。连接类型根本不重要。“仅充电”、“磁盘驱动器”、“usb共享”,它根本没有改变我的行为(我可以启动应用程序,但logcat在我的应用程序中没有显示任何内容,并且我的断点被忽略)。

听起来是时候问一个新问题了。

如果设备仍然没有检测到(???),按照前面的建议更新/etc/udev/rules.d/51-android.rules后,也要拔下usb电缆并将其重新插入设备。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签