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:…
Tag: task
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…
How to create 2 launcher activities (app icon) using 1 apk installer for your Android App? – Android Studio tutorial – API 32 | Android 12
In this video it shows how one can create two launcher icons for specific activities of their Android App. It creates two activities for demo purpose and connect to different layouts which can be loaded during the onCreate method. Then, in manifest file, it creates multiple activities tags as launcher…
Difference between finish() and finishAndRemoveTask() in Android App code.
In this video it shows the difference between the two APIs in Android – finish() vs finishAndRemoveTask(). finish() is basically to minimize the App’s view so that the user cannot see the App’s layout anymore. It is similar to pressing back button from App’s home page to go back to…
How to import Image Asset and use it as display icon of your Android App?
In this video it shows the steps to import an image as an asset in your Android Studio environment of your App. Further it shows how one can use the imported image as the display icon of the App. It modifies both – round icon and normal icon – options…