在通过无线基于android设备的发展 [英] Developing on android-based device via wireless
问题描述
一个已知的方式来开发Android应用程序直接安装在设备使用USB连接器,并使用eclipse安装驱动程序。因此,有没有已知的方式来做到这一点的无线?
One known way to develop your android application directly onto the device is using the usb connector and install the driver using eclipse. As such, is there a known way to do this wireless?
编辑: 理想情况下,这不应该需要root权限的设备。
Ideally this shouldn't require rooted device.
推荐答案
更新:这是现在原生支持最新的SDK。看看这里在无线应用。
UPDATE: This is now natively supported with recent SDKs. Look here under "Wireless Usage".
在短期:
- 在通过USB连接到你的设备</ li>
- 输入亚行TCPIP 5555
- 在拔下设备
- 查找设备的IP在系统设置
- 输入亚行连接[IP地址]:5555
- 这就是它!
- Connect to your device via USB
- Enter "adb tcpip 5555"
- Unplug your device
- Look up your device's IP in the system settings
- Enter "adb connect [ip address]:5555"
- That's it!
有关的记录,这里是老版本的答案:
For the record, here is the old version of the answer:
安装无线亚行应用程序。细节在这里: http://www.androidcentral.com/android-quick-app-亚行无线
Install the wireless ADB app. Details here: http://www.androidcentral.com/android-quick-app-adb-wireless
编辑:好的,那一个需要根。如果你没有根,这将是更为麻烦。把我的头顶部,这里是你可以做的:
Okay, that one requires root. If you don't have root, it's going to be a bit more cumbersome. Off the top of my head, here's what you can do:
- 使用无线传输的任何方式(蓝牙或FTP,有很多的应用程序对于任何一个市场上的),以从电脑传送APK文件到手机上。
- 使用文件管理器(OI文件管理器等)来定位到该文件并打开它。
步骤1可以通过命令行,如果你使用FTP实现自动化(而且,至少在基于Unix的系统,最有可能通过蓝牙以及)。
Step 1 can be automated through the command line if you're using FTP (and, at least on Unix-based systems, most likely via Bluetooth as well).
第2步,好了,可没那么容易简化。但是,你可以写一个安装应用程序,根本就在你的手机上的APK文件的ACTION_VIEW。
Step 2, well, cannot be simplified THAT easily. But you could write an installer app that simply does an ACTION_VIEW on the APK file on your phone.
显然,这将通过安装程序包,所以你必须要确认安装过程中的一切。但是,嘿,这是无线:)
Obviously, this will go through the package installer, so you'll have to confirm the installation process and everything. But hey, it's wireless :)
(旁注:有几个的telnetd和sshd在Android解决方案,但没有,我能找到是无根的手机如果你能得到一个telnet / ssh连接去,你可以使这个过程更加。舒服。)
(Side note: There are several telnetd and sshd solutions on Android, but none that I could find are for non-rooted phones. If you can get a telnet/ssh connection going, you may be able to make this process more comfortable.)
这篇关于在通过无线基于android设备的发展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!