In this video it shows how to use thread.join to wait for the thread to complete before proceeding with the next steps/ execution in the code of your Android App. To demonstrate it uses parts of the code from the below page: https://programmerworld.co/android/how-to-read-the-content-of-a-https-website-in-your-android-app/ I hope you like this video. For…
Tag: thread
How to fix android.os.NetworkOnMainThreadException Error by creating new Thread in your Android Studio Code?
In this video it shows the fix for android.os.NetworkOnMainThreadException error. It creates a new thread in the Android code to fix this error. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code and other details:…
How to resolve “org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection to http://localhost”?
In this video we will see how to fix/resolver selenium error “Exception in thread “main” org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection to http://localhost:64162/devtools/browser……”. Code:
How to fix android.os.NetworkOnMainThreadException by defining StrictMode.ThreadPolicy in your Android Studio code?
This video shows the steps to quickly fix android.os.NetworkOnMainThreadException in your Android Studio Java code. The fix shown is more of a workaround. Ideal fix would be to run all the network related tasks in a separate thread using async methods. However, in this video it shows how one can…
Resolve [UnexpectedTagNameException: Element should have been “select” but was “div”] in Selenium?
In this video will see how to resolve selenium error – Exception in thread “main” org.openqa.selenium. UnexpectedTagNameException: Element should have been “select” but was “div”. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Code: Error screenshot:
How to show progress bar/ image while waiting for a function (INET/ IP address of a website) to finish in your Android App? – using java.util.concurrent
How to wait for a task/ method to finish before moving ahead in the main thread of your Android App? In this vidoe it shows how to display a wait bar or a progress bar (indeterminate mode) while waiting for a function or method to complete its execution in the…