Category android

An Overview of the Android Architecture

Android is an open source, Linux-based software stack created for a wide array of devices and form factors. The diagram above shows the major components of the Android platform. The Linux Kernel The linux kernel provides a level of abstraction…

List AVDs from command-line

Pre-requisite; Make sure JAVA_HOME variable is set. Make sure ANDROID_HOME variable is set as well. Add path to your android emulator to the PATH environment variable eg. C:\Users\Asmaliza\AppData\Local\Android\Sdk\emulator Now launch your command prompt and type below command to list all…

Location-Aware Apps with Google Maps

Create a new project and make sure to select Google Maps Activity in the Create New Project template wizard. 2. Add a Button “Find Location” in the Main Layout. activity_main.xml MainActivity.kt (no changes) 2. Update the MapsActivity.kt to includes codes…

Android External Storage in Kotlin

First of all, create an Activity in your project that will have a layout similar to below. You will need; Three buttons tp check, save and read external storage. One TextView to display results. activity_external_storage.xml ExternalStorageActivity.kt View the file created…

Configuring Android RecyclerView

Tasks Adding RecyclerView to an Activity Creating a CardView Creating the Data Model and RecyclerView Adapter Adding Data to Your RecyclerView Running and Testing Your RecyclerView Adding Event Listeners to Each RecyclerView Row Create a new project Launch Android Studio…

Create a Pizza Order Application

Tasks Create a new app project Create the app user interface Configure the android application codes Run the application Create a new project Launch Android Studio 2. Select “Create New Project”. In the next screen, select “Empty Activity” then click…

Create your first Android Calculator

Scenario You are going to create your first Android Calculator. Launch Android Studio. 2. Select “Create New Project”. In the next screen, select “Empty Activity” then click “Next”. 3. Fill up the application settings with below configurations; Name: First Calculator…