Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google analytics easytracker causes java connection exception

I started using the Google Analytics platform. as of now I am able to connect from my emulator to G.A servers and upload information. problem is, when testing from my Samsung Galaxy S the app is not being able to communicate with the G.A servers.

I get the next error:

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)

I think that there is a problem with my device- could there be a firewall installed on it, and no matter what the problem is- how do I bypass it?

like image 735
Elad Gelman Avatar asked Dec 17 '11 15:12

Elad Gelman


1 Answers

I think that you use custom ROM or rooted ROM with modified hosts which block (redirect to localhost) all request for analytic tool and banners system.

Related info

  • 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

etc.

like image 118
ATom Avatar answered Oct 23 '22 05:10

ATom