This demo shows the setting to hide the App Icon from your Android device’s home screen. If the App is “force Stop” and killed from the task list (task manager), then the only way to re-start the App will be reinstall it from the APK file initially used to install…
Tag: remove
How to delete a file from GitHub Repository programmatically from your Android App – Java code?
This video shows the java code to delete a file from the GitHub repository. Please refer to the below for steps to committing the file in the GitHub:https://programmerworld.co/android/how-to-commit-a-file-to-github-programmatically-from-your-android-app-java-code/ 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…
Fix “packagingOptions(Packaging.() -> Unit): Unit’ is deprecated. Renamed to packaging” error in Android Studio Gradle file.
In this video it shows the steps to add packagingOptions block in the gradle file in Android Studio. On adding the packagingOptions block it gives the deprecated unit error. This can be fixed by using packaging block instead of packagingOptions block. Also, use resources.excludes.add instead of exclude option. I hope…
How to programmatically uninstall any other app on your device from your Android App?
In this video it shows the steps to uninstall an Android App programmatically from your Android App using the intent. In this demo it refers to the below webpage for getting the list of the package names of Apps installed on your device – https://programmerworld.co/android/how-to-get-the-list-of-all-the-apps-installed-in-your-android-phone-android-12-api-level-31/ I hope you like this…
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 get alphabets from string (includes special characters, spaces) in Android App using regex?
How to extract or filter out only alphabets from an alphanumeric string (including special characters and spaces) in your Android App using regular expression (regex)? In this video it shows how one can use regular expressions to filter or extract only the alphabets from a string which contains special characters,…
How to create and delete a file programmatically from your Android App?
In this video it shows how to create and delete a file in your phone’s file system from your Android App. It uses a sample file ABC.pdf for this demo. In this App 2 buttons are created, one for creating the file and another for deleting the file. It uses…