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…