Posts

Showing posts with the label android tutorials

Enhanced and Wearable-Ready Notifications on Android

Image
Introduction Notifications are a very useful way to interact with your application's users and, with Android Wear, we now also have wearable devices running Android. It's therefore a good idea to learn how to take advantage of these new features by adding appropriate actions to notifications or by creating actions that are only visible on wearable devices. In this tutorial, I'm going to show you the modern implementation of notifications, as shown during this year's Google I/O. We'll use the new support package and extend its capabilities by adding actions that are only visible on smartwatches, the only wearable devices available with Android Wear at the time of writing. 1. Prerequisites For this project, you can use either Android Studio or the Android Developer Tools. If you're using Android Studio, then make sure to add the following line to your build.gradle file. 1 compile "com.android.support:support-v4:20.0.+" 2. Setting Up the Project Launch yo...

creating an launcher for android

Image
Introduction In its most basic form, a launcher is an application that does the following: it represents the home screen of a device it lists and launches applications that are installed on the device In other words, it is the application that shows up when you press the home button. Unless you've already installed a custom launcher, you are currently using the default launcher that comes with your Android installation. A lot of device manufacturers have their own default, custom launchers that conform to their proprietary look and feel, for example, Samsung TouchWiz and HTC Sense. In this tutorial, we are going to create a simple launcher with a basic user interface. It will have two screens: a home screen showing the device's wallpaper a screen showing the icons and details of the applications installed on the device 1. Requirements You need to have the following installed and configured on your development machine: Android SDK and platform tools Eclipse IDE 3.7.2 or higher w...