You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Case: User wants to clear all data stored in the cache.
To achieve that, I called HttpResponceCache.delete(). Everything worked as expected, but I lost the http cache in the process. After trying to install() again, I received the following exception:
08-04 17:59:37.270: E/AndroidRuntime(328): java.lang.RuntimeException: An error occured while executing doInBackground()
...
08-04 17:59:37.270: E/AndroidRuntime(328): Caused by: java.lang.Error: Attempt to set factory more than once.
08-04 17:59:37.270: E/AndroidRuntime(328): at java.net.URL.setURLStreamHandlerFactory(URL.java:139)
08-04 17:59:37.270: E/AndroidRuntime(328): at com.integralblue.httpresponsecache.HttpResponseCache.install(HttpResponseCache.java:186)
The text was updated successfully, but these errors were encountered:
Use Case: User wants to clear all data stored in the cache.
To achieve that, I called
HttpResponceCache.delete()
. Everything worked as expected, but I lost the http cache in the process. After trying toinstall()
again, I received the following exception:08-04 17:59:37.270: E/AndroidRuntime(328): java.lang.RuntimeException: An error occured while executing doInBackground()
...
08-04 17:59:37.270: E/AndroidRuntime(328): Caused by: java.lang.Error: Attempt to set factory more than once.
08-04 17:59:37.270: E/AndroidRuntime(328): at java.net.URL.setURLStreamHandlerFactory(URL.java:139)
08-04 17:59:37.270: E/AndroidRuntime(328): at com.integralblue.httpresponsecache.HttpResponseCache.install(HttpResponseCache.java:186)
The text was updated successfully, but these errors were encountered: