Author: Mike Dalisay

  • 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 […]

  • Android Toast Tutorial

    What is Android Toast? The Android Toast is a view containing a quick little message for the user. When the toast is shown to the user, appears as a floating view over the application so it will never receive focus. The idea is to be as unobtrusive as possible, for example you want to instantly […]

  • Fixed: Android requires compiler compliance level 5.0. Please fix project properties.

    When I tried to import an existing eclipse android project to my new workspace, I encountered an error: Android requires compiler compliance level 5.0. Please fix project properties. So here’s what I did to fix this problem: Right Click Project > Properties > Java Build Path > Order and Export Tab > Check Your Android […]

  • Fixed: R cannot be resolved to a variable

    I encountered this problem when I was making a new project on my eclipse workspace. I got a red underline on “R” in this part of my code So here’s what I did to fix this issue. Go to Project Properties > Java Build Path > Tick Android Version Checkbox Then if your workspace does […]

  • Android Fix: Eclipse is loading framework information and the layout library from the SDK folder. main.xml will refresh automatically once the process is finished.

    After doing some android coding, I’m supposedly doing some improvement on its user interface. But when I viewed the graphic layout of my main.xml, the black screen did not show up, instead, a message prompted me: Eclipse is loading framework information and the layout library from the SDK folder. main.xml will refresh automatically once the […]

  • Android Hello World App Tutorial – Your Step by Step Guide

    I had a previous post “Getting Started with Google Android Development“ where we installed our development environment. Please refer to that first if you’re not yet done with it. In this post, we are going to do a program that will simply put a “Hello Android!” text on the screen of our android device. This […]