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…
Tag: operating system
How to set EditText for always Capital letter (upper case) input in your Android App?
This video shows the steps to have the inputs in edit text displayed always in capital letter (upper case) in your Android App. Irrespective of the case of the letters entered (lower or upper case), the input letters will always appear in capital letter in the EditText widget in your…
How to detect GPS is ON or OFF (enabled or disabled) from your Android App?
In this video it shows how to check whether the GPS (location service) on the phone/ device is ON or OFF from your Android App. To do this, in the code it uses “isProviderEnabled” API on the location manager to check whether the service is ON. I hope you like…
How to save edited text (bold, italic, underline, alignment) in SQLite database in your Android App?
In this video it shows how to save the edit text information, such as Bold, Italics, underline or Left/ right/ center alignmnent (justification) in a SQLite database. Part 1 of this tutorial is available in the below link:https://programmerworld.co/android/how-to-create-your-own-text-editor-android-app-for-making-text-bold-italics-underline-alignment/ I hope you like this video. For any questions, suggestions or appreciation…
How to get Date and Time from online servers in your Android App?
In this video, it shows how one can fetch date and time from an online server in your Android App. Fetching or synchronizingtime from an online server may give more accurate results in case the system’s (OS) date and time is manipulated by some other Apps. In this tutorial it…
How to get current system volume level (Music, Alarm, Voice Calls) and set it on seekbar in your Android App?
This video shows the steps to access the volume level of different stream types of your phone and set it on seekbar in your Android App. It also uses textview to display the volume levels in integer form. For setting the volumes from your App, please refer to the below…
How to create and read a PDF file in your Android 11 App?
This video shows the steps to create and read a PDF file in an Android 11 App. It uses iTextpdf library for reading the PDF file and PdfDocument API from android.graphics.pdf to create the PDF file. It creates and reads from the same PDF file but the concept shown in…
How to get current Date and Time in your Android App?
This video shows a simple API to access the current data and time from the phone in your Android App. It uses Calendar.getInstance().getTime() API to fetch the current date from the Phone. In this tutorial it uses a TextView widget to display the complete string of the Current Date variable….
How to create Microsoft Word Document (.docx) File from your Android App?
This video shows the steps to develop a method to create the Word Document File in your Android App. This uses the apache poi library for the same. It takes the content of the file as an input from the user from the EditText (Plain text) widget. It then creates…