This video shows the steps to set Minimum SDK Version and Target SDK Version of your Android App. These parameters can be set in Gradle file (App level) of the project in Android Studio. If anything is changed in the Gradle file, then it should be synced again in the…
Tag: Studio
How to create Excel file from ListView data and save it in Download directory from your Android app?
This video shows the steps to create an excel file from the ListView data. In this demo it first creates the ListView with some sample string data. Then in the button onClick method, it reads the listView data one by one iteratively and populate the respective cells of an excel…
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 rotate the picture in ImageView of your Android app?
This video shows the steps to rotate the pictures in the image view of your Android App. It uses the SetRotation property of the ImageView to rotate the image. 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…
How to import image as asset and show it in ImageView (as static image) in your Android App?
In this video it shows the steps to import an image as an asset in Android Studio environment and then display it on an image view in your Android App. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at:…
Android Studio – Fix the WebView error “The webpage could not be loaded because: net::ERR_CACHE_MISS”
This video shows how to fix the error “The webpage could not be loaded because: net::ERR_CACHE_MISS” in WebView. It shows how simply adding the below INTERNET permission in the manifest file solves the issue: I hope you like this video. For any questions, suggestions or appreciation please contact us at:…
How to show images in Recycler View in your Android App?
In this video it shows how to place and show the images in recycler view in your Android App. It creates the RecyclerViewCustomAdapter class for showing the images by setting the respective bitmaps of the images in the imageview. It uses a Frame layout containing ImageView used for the RecyclerView…
Android Studio – Fix the error “Could not resolve com.android.tools.build:gradle:7.4.0”?
In this video it shows the steps to fix the gradle error in Android studio. Actual issue is with Java version mismatch as explained in the below line of error: To resolve this issue, it changes the Gradle JDK for build in the settings of Android Studio. I hope you…
Enable google playstore in Emulator/ AVD (Android Virtual Device) in Android Studio
In this video it shows steps to enable google play store option in your Emulator/ Android virtual device in Android Studio. Google play store would be required to download and install other Apps in the Emulator. I hope you like this video. For any questions, suggestions or appreciation please contact…
How to create Assets directory in your Android Studio environment?
In this video, it shows how to create assets folder in your Android Studio environment. Assets folder can be used to keep assets, such as image files, which can be used in the App development using the getAssets method. I hope you like this video. For any questions, suggestions or…