When i launch my app from Android studio to device or when i download and install it from direct APK file, sometimes there is a black screen and after some seconds, there is a prompt with app crash message.
There is no informations about that in the logcat except :
Wrote stack traces to '/data/anr/traces.txt'
So i opened this file but i don't understand what i'm supposed to search inside it !
Maybe theses lines :
----- pid 28645 at 2014-12-12 14:44:02 -----
Cmd line: fr.myapp.www.myapp
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 MONITOR
| group="main" sCount=1 dsCount=0 obj=0x4109b9a0 self=0x4108a450
| sysTid=28645 nice=-11 sched=0/0 cgrp=[fopen-error:2] handle=1074673116
| state=S schedstat=( 0 0 0 ) utm=4 stm=2 core=1
at com.google.android.gms.analytics.ae.getLogger((null):~-1)
- waiting to lock <0x41686d38> held by tid=13 (client_id_fetcher)
at com.google.android.gms.analytics.ae.W((null):-1)
at com.google.android.gms.analytics.z$a.f((null):-1)
at com.google.android.gms.analytics.n.a((null):-1)
at com.google.android.gms.analytics.n.x((null):-1)
at com.google.android.gms.analytics.GoogleAnalytics.eZ((null):-1)
at com.google.android.gms.analytics.GoogleAnalytics.<init>((null):-1)
at com.google.android.gms.analytics.GoogleAnalytics.<init>((null):-1)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance((null):-1)
at fr.myapp.www.myapp.MyAppApplication.getTracker(MyAppApplication.java:36)
at fr.myapp.www.myapp.DashboardActivity.onCreate(DashboardActivity.java:41)
at android.app.Activity.performCreate(Activity.java:5326)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2316)
at android.app.ActivityThread.access$700(ActivityThread.java:158)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5365)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Maybe i'm wrong but these crashes can come from Google Analytics ?
Any help with these random crashes ?
Thanks ;)