Android App Development Tutorial in Singapore
This post gives you a step-by-step tutorial of developing a mobile app on the Android platform. You will learn how to create an app using the Android Studio. Creating and publishing an app on Android allows you to create popularity for the app by offering them to the users for free.
Here you will learn about the fundamentals of app design and ways of building a simple UI and also handle user input.
Software required: Android Studio
Creating an Android project in Android Studio
1. Create a new project
2. Enter the values : Application name and company domain
3. You can edit the preset package name and location that the software fills in for you
4. Click next
5. On the “Target Android Devices” page, maintain the default values and select “Next”
6. On the “Add an Activity to Mobile” page, choose “Empty Activity” and select “Next”
7. On the “Customize the Activity” screen, maintain default values and click “Finish”
After processing for some time, Android Studio displays an app called “Hello World” with default files. Review some of the important files first. Check that the “Project” page is open. Select “Android” from the drop-down menu at the top. You will be able to see the following files
• app > java > com.example.myfirstapp > MainActivity.java
• app > res > layout > activity_main.xml
• app > manifests > AndroidManifest.xml
• Gradle Scripts > build.gradle
Running the application
This section teaches how to run the app on a
• Real device
Running on a real device
You will need to setup your device. This is how you do it.
1. Connect your device to your development device using a USB cable. If you developing the app on Windows then you will be required to install the USB driver appropriate for your device.
2. Enable USB Debugging. You can find it at Setting > Developer Options
(To get Developer options, go to Settings > About Phone and click Build number seven consecutive times)
3. Next, run the Android Studio
• Choose the project, followed by Run from the Android Studio Toolbar
• In the window that says “Select Deployment Target”, choose your phone device, and then click OK
• Android studio will install the app into your device and start it
Running on Emulator
First, you will need to create an AVD (Android Virtual Device) definition. This is how you create one.
1. Start Android Virtual Device Manager
(Tools > Android > AVD Manager)
(You can also click the AVD manager icon that you can find in the toolbar)
2. Select “Create Virtual Device” on the “Your Virtual Devices” screen
3. Click “Select Hardware” screen, click phone device, and click “Next”
4. In case you do not have a system image installed, you can get it by selecting the download link
5. Post-verification of the configuration settings, click “Finish”
Then you can run your app from Android Studio.
• Click on your project name and select Run from the Android Studio toolbar
• In the Select Deployment Target window, click on your emulator then click OK
The emulator will take a few minutes to start. You may be required to unlock the screen. Once you do that, you will see the “My First App” icon appear on the screen.
Once you have completed these steps you are ready to build a simple user interface for your app. This will require you to create a linear page layout, add ‘Text Field’, ‘String’ resources, a button, and finally, make an input box to fill in the screen with.
Mobile app development is on the rise in Singapore. With more and more apps being developed for catering to the needs of Singaporeans, mobile app development in Singapore is high in demand with