在ubuntu 12.04tls android 开发 nexus s实体机测试 nexus s手机是18d1
来源:互联网 发布:微信投票系统源码 编辑:程序博客网 时间:2024/05/16 18:34
第一步:安装eclipse ;配置jdk;配置sdk路径。安装adt。。(这些都是android开发的前提。相信你已经做好)
第二步:
Declare your application as "debuggable" in your Android Manifest.
When using Eclipse, you can skip this step, because running your app directly fromthe Eclipse IDE automatically enables debugging.
In the AndroidManifest.xml
file, add android:debuggable="true"
tothe<application>
element.
第三步: 在手机里找到开发者选项并打勾。
- Turn on "USB Debugging" on your device.
On the device, go to Settings > Applications > Development and enableUSB debugging (on an Android 4.0 device, the setting is located inSettings > Developer options).
第四步:创建文件51.android.rules文件。并作修改
Log in as root and create this file: /etc/udev/rules.d/51-android.rules
. Use this format to add each vendor to the file:SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
{idVendor
}是生产手机的公司。我的是nexus s ,属于三星和google配出来的,三星是公,google是母的。 但是!!!生出的孩子是姓google的。。所以设备号是18d1。
USB Vendor IDs
This table provides a reference to the vendor IDs needed in order to add USBdevice support on Linux. The USB Vendor ID is the value given to theATTR{idVendor}
property in the rules file, as described above.
0502
ASUS0b05
Dell413c
Foxconn0489
Fujitsu04c5
Fujitsu Toshiba04c5
Garmin-Asus091e
Google18d1
Hisense109b
HTC0bb4
Huawei12d1
K-Touch24e3
KT Tech2116
Kyocera0482
Lenovo17ef
LG1004
Motorola22b8
NEC0409
Nook2080
Nvidia0955
OTGV2257
Pantech10a9
Pegatron1d4d
Philips0471
PMC-Sierra04da
Qualcomm05c6
SK Telesys1f53
Samsung04e8
Sharp04dd
Sony054c
Sony Ericsson0fce
Teleepoch2340
Toshiba0930
ZTE19d2
第六步:
打开eclipse,在eclipse中,选择window -> show view -> other...->device然后插上手机就可以识别了。然后右键你的工程选择run as-> android application.这样你的eclipse里的android程序就可以在手机里测试了。快去试试吧。
本文参照:开发者联盟 http://developer.android.com/tools/device.html#VendorIds
--
Persist in the end and
never give up
- 在ubuntu 12.04tls android 开发 nexus s实体机测试 nexus s手机是18d1
- ubuntu下调试nexus s手机
- 买手机i9020(nexus s)
- Nexus s Android 4.1.1 通过USB共享Ubuntu网络
- 使用三星 Nexus S 开始 Android 开发之旅 (1)
- 使用三星 Nexus S 开始 Android 开发之旅
- nexus s i9020刷机
- nexus S 刷4.4
- nexus s 安装 android 4.4 kitkat
- Nexus S 刷机教程注意事项
- Nexus s 4.1.1 系统刷机
- Ubuntu配置Nexus S开发环境(官网开发指南补充)
- 各版本Nexus S大全
- Nexus S Flash Custom Rom
- Google正式发布Nexus S,配置Android 2.3 Gingerbread
- android源码学习之源码编译并nexus s真机刷机
- android源码学习之源码编译并nexus s真机刷机
- Firefox OS 编译、Nexus-S刷机尝鲜 体验不佳
- 武大集训第三周总结
- 【黑马程序员】Socket 网络编程
- 利用完全二叉树快速求解LCA
- quartus ii 11.0 timequest 约束设置方法
- DLL 调用方式
- 在ubuntu 12.04tls android 开发 nexus s实体机测试 nexus s手机是18d1
- 关于VOIP电话中的SIP信令返回码的详细解释
- undo系列学习之pub兄弟帖子的整理
- linux文件的压缩与打包
- 字符编码详解
- 老生,谈学习
- 你会敲代码吗
- C++程序设计语言读书笔记-C8 - 名字空间和异常
- jquery 常见功能2