Skip to main content

Posts

Featured

Webview data directory for Android 9 (Pie)

From Crashlytics report, i got to know that my app is crashing on Android 9 devices. After checking stacktrace log, it was related to data directory of webview running in multiprocess . Webview data directory store cookies, HTTP caches, and other persistent and temporary storage related to web browsing. java.lang.IllegalStateException: Can't set data directory suffix: WebView already initialized After reading Google documentation, It was clear that from android 9 webview running in multiprocess can not share same data directory so we have to make sure that webview in each process must have it’s own data directory which we can set by calling Webview.setDataDirectorySuffix(). To fix this issue, I have updated my application to check if my current process is other then my main process so i will set data directory to webview. By default, applications component run in a single process until and unless you run component in another process. You can specify the process in which your compon…

Latest posts

Android Push Notification using FCM for Titanium

Radio Button Example Android

SetError method in EditText box

Installing app on memory card by default

Parsing JSON String in Android

SD Card in Android Enulator

AsyncTask in Android

Difference between Handler and AsyncTask

Handler in Android

Spinner in Android