I use Crashlytics for Android and it really helped me fix many of my crashes. But today I had a little problem with this.
When I tried to check crashlytics on a 2.3.3 Galaxy S device that is connected to the Internet via wi-fi (with a proxy), I saw a black screen on the device about 2:30 minutes. When debugging I see that the code is Crashlytics.start(this)not asynchronous. It expects to establish a connection, and therefore the onCreate method cannot be terminated by the user interface thread (this explains the black screen).
I know that this is a problem with the proxy (setting up the proxy server on 2.3.x devices is a bit buggy), but waiting around 2:30 minutes for my black screen application. It bothered me that this could happen in any other real life conditions, such as a poor internet connection.
I will try to put the function Crashlytics.start(this)in asynctask and try this for every action of the onCreate method. (AFAIK no verification method isCrashlyticsInitialized)
Does anyone have a better idea about this?
Thanks in advance.
LOGCAT:
10-02 16:01:38.410: D/Crashlytics(1561): Initializing Crashlytics 0.9.11.11
10-02 16:04:19.664: E/Crashlytics(1561): Network error while loading Crashlytics settings. Crashes will be cached until the network is available.
[URL=https://settings.crashlytics.com/api/v2/keys/KEY/platforms/android/apps/com.myapp/settings.json?libVersion=0.9.11.11&bundleVersion=441210&shortBundleVersion=2.1];[class java.net.SocketTimeoutException: Connection timed out]
source
share