In the google play console, I can see crash reports from users who complain because my application crashes just after starting. The cause seems to be an exception thrown when instantiating HttpClient. What am I doing wrong?
Here is an extract from the stack trace :
java.lang.IllegalArgumentException: androidApplicationContext must be not null! at org.apache.http.impl.client.naf.gba.connector.GbaServiceConnectorSynchronizedSingleton.instance(GbaServiceConnectorSynchronizedSingleton.java:76) at org.apache.http.impl.client.naf.gba.shared.KeeperManager.init(KeeperManager.java:68) at org.apache.http.impl.client.naf.auth.NafHttpAuthStrategyDefault.initSharedResources(NafHttpAuthStrategyDefault.java:119) at org.apache.http.impl.client.naf.auth.NafHttpAuthStrategyDefault.(NafHttpAuthStrategyDefault.java:95) at org.apache.http.impl.client.AbstractHttpClient.(AbstractHttpClient.java:168) at org.apache.http.impl.client.DefaultHttpClient.(DefaultHttpClient.java:113)