我开始使用Google Analytics(分析)平台.
到目前为止,我可以从我的模拟器连接到G.A服务器并上传信息.
问题是,当我从三星Galaxy S测试时,应用程序无法与G.A服务器进行通信.
到目前为止,我可以从我的模拟器连接到G.A服务器并上传信息.
问题是,当我从三星Galaxy S测试时,应用程序无法与G.A服务器进行通信.
我得到下一个错误:
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): Problem with socket or streams. 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): java.net.ConnectException: www.google-analytics.com/127.0.0.1:80 - Connection refused 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:437) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at java.net.Socket.connect(Socket.java:1002) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.PipelinedRequester.maybeOpenConnection(Unknown Source) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.PipelinedRequester.addRequest(Unknown Source) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.NetworkDispatcher$DispatcherThread$AsyncDispatchTask.dispatchSomePendingHits(Unknown Source) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.NetworkDispatcher$DispatcherThread$AsyncDispatchTask.run(Unknown Source) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.Handler.handleCallback(Handler.java:587) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.Handler.dispatchMessage(Handler.java:92) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.Looper.loop(Looper.java:130) 12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.HandlerThread.run(HandlerThread.java:60)
我认为我的设备有问题 – 可以安装防火墙,无论出现什么问题 – 我该如何绕过它?
解决方法
我认为您使用自定义ROM或rooted ROM与修改的主机阻止(重定向到本地主机)所有请求分析工具和横幅系统.
相关信息
> http://pocketnow.com/tweaks-hacks/how-to-surf-faster-on-your-android-using-the-hosts-table
> http://forum.xda-developers.com/showthread.php?t=664532
> http://afreemobile.blogspot.com/2011/09/easy-way-to-block-ads-on-android.html
等等