If you are using Android Lollipop i.e. SDK 21, then:
CookieManager.getInstance().setAcceptCookie(true);
won’t work. You need to use:
CookieManager.getInstance().setAcceptThirdPartyCookies(webView, true);
I ran into same issue and the above line worked as a charm.
More Related Contents:
- Java Android Calendar/DateFormat this format XXXXXXXX [closed]
- how can i send the string value into the intent.putextra? [duplicate]
- android editText is not prints my input given to it
- Android pass Fragment parameter instead of List into ListView [closed]
- Download a file with Android, and showing the progress in a ProgressDialog
- What’s the best way to share data between activities?
- How to call a SOAP web service on Android [closed]
- Read/Write String from/to a File in Android
- Singletons vs. Application Context in Android?
- Should I actually remove the ValueEventListener?
- Can we connect remote MySQL database in Android using JDBC? [closed]
- How to use the legacy Apache HTTP client on Android Marshmallow?
- Image encryption/decryption using AES256 symmetric block ciphers [closed]
- Android: How to stretch an image to the screen width while maintaining aspect ratio?
- Android Split string
- How to check certificate name and alias in keystore files?
- How to change text of a TextView in navigation drawer header?
- java.net.SocketException: socket failed: EPERM (Operation not permitted)
- Jar Mismatch Found 2 versions of android-support-v4.jar in the dependency list
- Getting JSONObject from JSONArray [duplicate]
- Getting class by its name
- How to programmatically lock screen in Android? [duplicate]
- Android App Bundle introduces Resource Not found crash in Android app
- How to remove only trailing spaces of a string in Java and keep leading spaces?
- Enabling specific SSL protocols with Android WebViewClient
- javax.net.ssl.SSLException: SSL handshake aborted Connection reset by peer while calling webservice Android
- android.database.sqlite.SQLiteException: no such column
- org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:transformClassesWithDexForDebug’
- How to check programmatically whether app is running in debug mode or not?
- Error on some devices – couldn’t find class ‘com.google.android.gms.measurement.internal.zzz’