Android Google Analytics connection to service failed -
i've implemented google analytics (v2) android app. while ago code managed send data profile (v2) succesfully. refuses connect service:
04-09 14:42:49.911: w/gav2(8576): thread[main,5,main]: need call initialize() , in fallback mode start dispatch. 04-09 14:42:49.921: i/gav2(8576): thread[main,5,main]: exceptionreporter created, original handler com.android.internal.os.runtimeinit$uncaughthandler 04-09 14:42:50.051: d/libegl(8576): loaded /system/lib/egl/libegl_mali.so 04-09 14:42:50.061: d/libegl(8576): loaded /system/lib/egl/libglesv1_cm_mali.so 04-09 14:42:50.061: d/libegl(8576): loaded /system/lib/egl/libglesv2_mali.so 04-09 14:42:50.120: d/openglrenderer(8576): enabling debug mode 0 04-09 14:42:50.190: w/iinputconnectionwrapper(8576): showstatusicon on inactive inputconnection 04-09 14:42:54.881: i/gav2(8576): thread[gathread,5,main]: connecting analytics service 04-09 14:42:54.891: i/gav2(8576): thread[gathread,5,main]: connect: bindservice returned false intent { act=com.google.android.gms.analytics.service.start (has extras) } 04-09 14:42:54.901: w/gav2(8576): thread[gathread,5,main]: service unavailable (code=1), retry. 04-09 14:42:54.941: i/gav2(8576): thread[gathread,5,main]: no campaign data found. 04-09 14:42:59.911: i/gav2(8576): thread[service reconnect,5,main]: connecting analytics service 04-09 14:42:59.921: i/gav2(8576): thread[service reconnect,5,main]: connect: bindservice returned false intent { act=com.google.android.gms.analytics.service.start (has extras) } 04-09 14:42:59.921: w/gav2(8576): thread[service reconnect,5,main]: service unavailable (code=1), using local store. 04-09 14:42:59.921: i/gav2(8576): thread[service reconnect,5,main]: falling local store 04-09 14:42:59.971: v/gav2(8576): thread[gathread,5,main]: dispatch running... 04-09 14:43:00.061: v/gav2(8576): thread[gathread,5,main]: ...nothing dispatch 04-09 14:43:00.061: i/gav2(8576): thread[gathread,5,main]: powersavemode initiated. 04-09 14:43:52.951: d/dalvikvm(8576): gc_concurrent freed 197k, 4% free 7258k/7492k, paused 15ms+5ms, total 56ms 04-09 14:43:54.611: w/iinputconnectionwrapper(8576): showstatusicon on inactive inputconnection
i'm pretty sure code sufficient since managed send data before. these steps implemented (used android google analytics v2 docs):
manifest additions:
<uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" />
main activity additions:
@override public void onstart() { super.onstart(); easytracker.getinstance().activitystart(this); } @override public void onstop() { easytracker.getinstance().activitystop(this); super.onstop(); }
xml (analytics.xml)
<?xml version="1.0" encoding="utf-8" ?> <resources> <!--tracking id--> <string name="ga_trackingid">ua-(copied profile)-1</string> <!--enable automatic activity tracking--> <bool name="ga_autoactivitytracking">true</bool> <!--enable automatic exception tracking--> <bool name="ga_reportuncaughtexceptions">true</bool> <!--enable debug tracking--> <bool name="ga_debug">true</bool> <integer name="ga_dispatchperiod">20</integer> </resources>
i warnings @ launch of app. i've tried creating new profile/account. i've tried using & #45; , & #8211; instead of dashes. it's been 30+ hours since last data received on profile, since above logcat lines.
any ideas how caused?
might not case here goes anyways.
i had analytics working fine in app. using eclipse , decided switch intellij ide. when did it, ide showed me typografic warning on dash character of analytics.xml file (regarding ga_trackingid). when made change (invisible human eye) warning went away analytics stopped working.
might encoding of file, whatever, case had type dash character , not paste (and add tools:ignore="typographydashes" in file rid of warning).
Comments
Post a Comment