Michael's Blog

Michael's Blog Space

 

2012年7月6日

如何让android应用程序通过代理联网

摘要: 一般情况下通过代才能连接到外网的网络在使用android 模拟器是连接不上网的,虽然在模拟器里面设置了代理服务器的IP和端口后,可以模拟器的浏览器可以连上网了,(如何在模拟其中设置网络代理请参看这里 http://www.cnblogs.com/DiYuShe/archive/2012/07/06/2579204.html).但是自己开发的程序还是连接不上去,在这种情况下可以通过下面的代码来实现应用程序的网络连接!Proxyproxy=newProxy(java.net.Proxy.Type.HTTP,newInetSocketAddress("10.0.0.172",80 阅读全文

posted @ 2012-07-06 13:25 Michael.Wang 阅读(4279) 评论(0) 推荐(0) 编辑

android emulator 通过代理访问web service

摘要: 1.启动模拟器(android 2.2 emulator ),然后进入 settings->Wireless & network ->Mobile networks->Access Point Names 然后打开出现在列表中的 Telkila.2.然后下面这样设置:- Proxy : your proxy address- Port : your proxy port经过以上2步,系统的浏览器已经可以访问internet了。但是要让程序中的webview或httpconnection等访问internet还不行。怎么办呢?首先,要让程序访问internet,需要加p 阅读全文

posted @ 2012-07-06 12:04 Michael.Wang 阅读(3801) 评论(0) 推荐(0) 编辑

Android2.2中系统自带主题themes.xml的源代码

摘要: <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a 阅读全文

posted @ 2012-07-06 09:46 Michael.Wang 阅读(405) 评论(0) 推荐(0) 编辑

Android2.2中系统自带样式styles.xml的源代码

摘要: <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a 阅读全文

posted @ 2012-07-06 09:45 Michael.Wang 阅读(973) 评论(0) 推荐(0) 编辑

导航