A Service is an application component used to perform long-running tasks in background. There are 2 types of Service: Bound Service: A bound service is…
We learn about android.os.Bundle by using some simple examples: Example 1: Step 1: create new project Target android device Add an activity to mobile: Customize…
We can use custom ArrayAdapter with Spinner: Step 1: create new project Step 2: create new drawable resource res\drawable\logots.png Use this file for example: Step…
We can cache view lookup for improve performance, here’s the solution: View lookup cache: The custom ArrayAdapter Here’s the full code of file MainActivity.java The…
To learn about ListView, we create some simple examples for ListView. Example 1: Simple ListView Step 1: create new project Step 2: File content_main.xml Add…
We learn about android.telephony.TelephonyManager by creating a simple example: Step 1: Create a new project Step 2: with file main_activity.xml add some TextView and Button:…
We learn about android.os.Handler by creating some simple examples. Example 1: Simple counter Step 1: create new project Step 2: with file contain_main.xml add two…