Category: Android

  • Android Download File With Progress Bar Example

    Hi guys! Today we are going to do a script that will show an Android progress bar while downloading a file. A progress bar looks good for the user to be notified about the progress of the download. We will easily use a UI thread with Android AsyncTask. In other terms, we will use a […]

  • Center Screen Two Android Buttons

    Recently I was into a problem when I was unable to center screen two Android buttons, in a simplest way. My Google skills failed me to find a simple way, so I had to figure it out myself. I wanted my buttons to be centered horizontally and vertically on the screen. And those buttons would […]

  • Enabling USB Debugging Mode for Android Devices

    USB Debugging Mode for Android Device is a must when developing an Android application. It will save you a lot of time when debugging and executing your application. Please note that USB Debugging option might be disabled when your device is already connected to your PC. To enable it, you must disconnect it first and […]

  • Verify If Android Device is Attached to PC for Debugging

    There was time when I was trying to run my Android code to my device but it seemed not working. One of the things I thought that causes this was if my Android device is really connected or attached to my computer. So I had to verify if it was. I’m using windows, so here’s […]

  • How To Scroll Android TextView

    Hi there! Today we’re going to do a script that will make a scrolling Android TextView. I found this one useful when I’m testing my other code snippets. The situation is, my text output exceeds the height of my android device screen, I cannot see the whole output unless I make the TextView scrolling. We […]

  • 14+ Android AlertDialog.Builder Example Codes and Output

    These Android AlertDialog.Builder example codes are some of the most common UI element or widget that we use with any Android app. In general, an AlertDialog is a small window that appears in front of your application. It gets the screen focus and able to accept user interaction. Dialogs are normally used for notifications that […]

  • Get Current Date and Time in Android using Two Classes

    Recently, I needed to get current date and time in android. I found two ways of doing it. They are by using the Calendar class and SimpleDateFormat class. So let’s see what method will be more simple and useful for you. A simple outline of this post: 1.0 Using the Calendar Class 2.0 Using the […]

  • Multiple Android Button Tutorial

    Hi guys! Today we’re gonna do an example application of android Push Buttons. Push-buttons can be pressed, touched, or clicked by the user to invoke an event or action in your application. This example will show you how to make two android buttons working (you can add more if you want). It also uses an […]