In this tutorial we are going to learn how to use AnalogClock and DigitalClock in android. DigitalClock is depricated at 17. So use TextClock instead of DigitalClock . There are two types of clockViews. See flowing Steps : You can use the AnalogClock and DigitalClock classes and create the views programatically. The instance of the […]
In this tutorial we are going to learn how to use NotificationManager to display status bar notifications. Notifications are typically to used by the application to notify the user about incoming messages, application updates, ongoing background tasks etc.,. See flowing Steps : Create MainActivity.class and NotificationActivity.class. Use NotificationCompat.Builder object to create the user interface for the notification. Create a PendingIntent to […]
In this tutorial we are going to show how to get all registered Gmail ids and other email accounts like Skype in Android. All the email ids are provided by the AccountManager class. See flowing Steps : Declare GET_ACCOUNTS permission in Manifest file. Get the email ids using getAccounts or getAccountsByType provided by AccountManager . Note: This will not work […]
In this tutorial we are going to show how to navigate from one activity to second activity. To demonstrate this, we would like to use a clean user login screen example. See flowing Steps : Create login activity layout which contains EditText widgets so that user can enter input data. Set OnClickListener to the Button Use Intent to pass data to another […]
LinearLayout is one of the basic layouts in Android. We are going to learn how to use various orientations of LinearLayout. See flowing Steps : Create layout files to demonstrate different orientations of linear layout.