To learn how to validate an email address, we create a simple example. Step 1: create new android project Step 2: create the layout: res\layout\activity_main.xml…
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…