<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://itecfun.com/extern.php?action=feed&amp;tid=3127&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[个人知识管理站 / Android开发调试]]></title>
		<link>http://www.itecfun.com/viewtopic.php?id=3127</link>
		<description><![CDATA[Android开发调试 最近发表的帖子。]]></description>
		<lastBuildDate>Fri, 08 May 2015 01:36:49 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Android开发调试]]></title>
			<link>http://www.itecfun.com/viewtopic.php?pid=3255#p3255</link>
			<description><![CDATA[<p>怎么用eclipse调试vmware的android x86</p><p>1、进入android虚拟机，按alt+F1进入命令，输入netcfg命令来查看网络状态，<br />其中eth0就是当前的网卡，后面的ip地址就是通过dhcp获得的ip地址<br />(PS:如果没有eth0,就检查虚拟机的eth0配置是否正确，并且要确保局域网的服务器开启了DHCP)<br />弄清楚之后再按alt+F7返回图形界面。<br />此时我们打开eclipse,进入android开发插件的设定界面,选择ddms,勾选 Use ado host, 并在ADT host value 一栏填写虚拟机的ip地址。<br />2、选择ok保存后，在ddms界面的device菜单上选择重启adb服务，重启后，就能看到ddms连接上虚拟机了。接下来就能和平常一样在虚拟上运行和测试你的Android程序了,enjoy。</p>]]></description>
			<author><![CDATA[dummy@example.com (xuyg)]]></author>
			<pubDate>Fri, 08 May 2015 01:36:49 +0000</pubDate>
			<guid>http://www.itecfun.com/viewtopic.php?pid=3255#p3255</guid>
		</item>
		<item>
			<title><![CDATA[Re: Android开发调试]]></title>
			<link>http://www.itecfun.com/viewtopic.php?pid=3254#p3254</link>
			<description><![CDATA[<p>link:<a href="http://www.oschina.net/question/565065_92851" rel="nofollow">开源中国社区-Android-x86虚拟机安装配置全攻略</a><br /><a href="http://www.360doc.com/content/14/0212/23/13312605_352045659.shtml" rel="nofollow">详细一点</a><br /><a href="http://www.360doc.com/content/14/0212/23/13312605_352045659.shtml" rel="nofollow">更详细 2.3版本的</a><br />Android-x86 有内建的快捷键<br />较常用的有：</p><p>Alt-F1 = 进入 console 模式<br />Alt-F7 = 回到 GUI 模式<br />Alt-F9 = 图形界面<br />Alt-F10 = 画面旋转 180 度<br />Alt-F10 = 画面旋转 180 度<br />Alt-F11 = 画面向左旋转 90 度<br />Alt-F12 = 画面向右旋转 90 度<br />Ctrl-P = 开启Android设定画面<br />&quot;Windows 键&quot;相当于 Android 的 Home 按钮。<br />&quot;Esc&quot; 相当于 Android 的 Back 按钮<br />F2 相当于 Android 的 Menu 按钮<br />F3 相当于 Android 的 Search 按钮<br />右边的菜单键（win和ctrl中间的键） = Android菜单键</p>]]></description>
			<author><![CDATA[dummy@example.com (xuyg)]]></author>
			<pubDate>Fri, 08 May 2015 01:36:39 +0000</pubDate>
			<guid>http://www.itecfun.com/viewtopic.php?pid=3254#p3254</guid>
		</item>
		<item>
			<title><![CDATA[Android开发调试]]></title>
			<link>http://www.itecfun.com/viewtopic.php?pid=3253#p3253</link>
			<description><![CDATA[<p>link:<a href="http://www.oschina.net/question/163482_25146?sort=time" rel="nofollow">开源社区</a><br />&quot;无法在 Android 模拟器上访问本机的Web服务？<br />我在本地跑了一个 Tomcat ，我想在 Android 模拟器中直接通过下面的 url 地址访问 Tomcat 上的服务</p><p><a href="http://192.168.0.20:8080/getweather" rel="nofollow">http://192.168.0.20:8080/getweather</a></p><p>但是报错信息说 host is unresolved</p><p>我在模拟器上的浏览器上打开相同的地址，提示 page not found</p><p>请问我如何才能在模拟器上访问本机的web服务呢？<br />&quot;<br />&quot;<br />可以试试用Android-x86+VirtualBox/VMWARE模拟器，这样速度会比ARM模拟快很多，网络连接也没那么别扭 </p><p>Android 的文档中 Emulator Networking 有介绍到这个。</p><p>需要用 10.0.2.2 这个IP来访问本机网络</p><p>Android 模拟器是一个虚拟路由，其内部的网络跟你本机网络是不同的。</p><p>但这个路由是本机网络中的一部分，因此你可以通过 10.0.2.2 来访问本机网络服务</p><p>你上述的 URL 地址改成：http://10.0.2.2:8080/getweather 应该就好了&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (xuyg)]]></author>
			<pubDate>Fri, 08 May 2015 01:35:28 +0000</pubDate>
			<guid>http://www.itecfun.com/viewtopic.php?pid=3253#p3253</guid>
		</item>
	</channel>
</rss>
