Home » Android » Page 8

Android

Android Audio Capture Example

Android devices are equipped with hardware input devices such as microphone, camera etc, from which we can capture audio or video in our applications. The most common class that is used is MediaRecorder, which records audio and video. In this example, we are going to capture audio from the device’s microphone, store it to the device and then play it ...

Read More »

Android Auto Complete Example

Sometimes we want from our application, to provide suggestions to the user, when he/she types in an editable text field. We can do that via AutoCompleteTextView, that gives suggestions automatically and display them to a drop down menu, from which the user can choose a preferred item. Moreover, Android give us the opportunity to input multiple items than only one, ...

Read More »

Android Audio Manager Example

Android system provides us control access to our ringer profile. We can include in our applications volume and ringer mode control by using AudioManager class. In this example, we will find out how to change the ringer mode (loud, vibrate, silent) and the ringer volume of the device via our application.           For this tutorial, we ...

Read More »

Android Animation Example

Android give us the opportunity to add animations in our applications in order to achieve a better sense of the interface quality. There are many animation types but in this tutorial we are going to use tween animations, a widely used type on Views. Tween animation define simple transformations on the components of a View object and can perform series ...

Read More »

Android Alert Dialog Example

In this post, we feature a comprehensive Android Alert Dialog Example. Sometimes in our applications we want to alert the user for an event and/or ask him/her about taking a decision. For this purpose AlertDialog class can be used, where a message and one, two or three buttons are displayed in a popup window. In this example, we are going ...

Read More »

Android Make Phone Call Example

Although Android provides Built-in applications for phone calls, in some occasions we may need to make a phone call through our application. This could easily be done by using implicit Intent with appropriate actions. Also, we can use PhoneStateListener and TelephonyManager classes, in order to monitor the changes in some telephony states on the device. In this tutorial we are going ...

Read More »

Android Location Based Services Example

Android System gives the opportunity to determine the current geographical location and to build location-aware applications, without focusing on the details of the underlying location technology. To obtain the user location, we can use one of: GPS Provider Android’s Network Location Provider (availability of cell tower and WiFi access points) or both of them. Every provider has it’s cons and ...

Read More »

Android Sending SMS Example

In some situations, we want to send sms messages from our own Android application. There are two different ways to do such a thing: By using SmsManager class By using an implicit Intent The use of SmsManager facilitates the sms sending because it gives us the opportunity to customize this functionality with the manner we want, within our own Activity. ...

Read More »

Android Sending Email Example

To send an email from your application, you don’t have to implement an email client from the beginning, but you can use an existing one like the default Email app provided from Android, Gmail, Outlook, K-9 Mail etc. For this purpose, we need to write an Activity that launches an email client, using an implicit Intent with the right action ...

Read More »

Android Notifications Example

Notification is a message that doesn’t appear inside the main UI of the app but as an icon in the notification area, including more details in the notification drawer. The aim of the notifications is to keep the user informed about events or alerts in a more persistent method, as the user can view them at any time. In this ...

Read More »