Hi,
We have had another report of this issue (via the stack trace being the same) but have not identified the cause. Could you identify at what point this is occurring please? The code that is being executed at the time of the crash would be useful.
From other posts it seems to be something to do with server protocol redirects, could this be the problem for you?
thanks
Will
What's the ssl certificate? (see article: https://support.servertastic.com/rapidssl-and-geotrust-certificate-not-trusted-on-mobile-device/ )
Yes, we recently found and fixed the issue. We were calling the REST services manually using HttpClient, because the SDK does not support all REST parameters we need (transparency). The problem is that HttpClient is not threadsafe. We created tread safe DefaultHttpClient like this:
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(localBasicHttpParams, localSchemeRegistry);
static DefaultHttpClient defaultClient = new DefaultHttpClient(cm, localBasicHttpParams);
We then use this client to execute requests to the REST service and that fixed the issue.
Thanks for the info, that is very useful.
For your info we do have a class which allows you to add additional rest parameters to requests issued by the API:
HttpRequestHandler | ArcGIS Android 10.2.4 API
In the HttpRequestListener, you can check to see what sort of request is being made and then append things that we dont currently support. This is one of the most useful, yet least known about classes that we have in the API!
w.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.