Skip to main content

How to create a project in Android Studio 2.2

This post is to support those who read the books such as Busy programmer’s guide to Firebase with Android. If you are getting started on Android programming, this post will help to understand the basic structure of the Android project.

Android Studio

Android studio provides a unified environment to develop apps for Android phones, tablets, Android Wear, Android TV and Android Auto. It is the official Integrated Development Environment (IDE) for android app development based on IntelliJ IDEA. You can learn more about Android studio features from Android Developer Website.

You can download the Android Studio setup file from Download Android Studio and SDK Tools. It is bundled with Android SDK, so you don’t need to download Android SDK separately. If your Operating System is other than Windows, you can visit this URL to download the Android Studio Bundle.

Launch downloaded executable file (android-studio-bundle-xxxxxxxxxx-windows.exe). Make sure you have installed Java JDK in your machine before launching Android Studio setup. If you don’t have JDK installed, you can download the latest version by visiting this website.

Create a new project

Launch the Android Studio. You will get the following screen that provides few options to start a new project or to import existing project.
















By clicking on the configure button at the bottom of the screen, you can launch the SDK Manager, Settings window, Plugins window and Check for updates option.

Click the Start a new Android Studio project to start a new project. It will open the configuration page.


















Enter the application name and domain and if your application requires C++ support tick the Include C++ Support checkbox. If it includes NDK tools project location should not contain whitespace. Click Next button to go to the next window.


















You can select the minimum supported SDK version for each targetted device type. This example only supports the Phone and Tablet devices. Due to that Phone and Tablet selected.


















There are different templates of Activities and you can add one from the above list to the project by selecting. Click Next button to go to the next window.


















Depending on the type of the template, Android Studio will show configuration window. Click the Finish button to create the project.
















After creating the project, Android Studio will show the project file structure and design view of the Activity.


Comments

Popular posts from this blog

Alternatives to the SQLite in Android

At the moment there are several embeddable databases and libraries out there that you can use in a mobile application. In this post, I examine most popular libraries and databases and highlight some of their characteristics. Realm Realm is a mobile platform and a replacement for SQLite & Core Data. According to the website, it has more than 100k active developers. Realm is fully open source and distributes under Apache License. Realm Mobile Database is much faster than an ORM, and often faster than raw SQLite due to zero-copy design. Some of the benefits of Realm are fast queries, safe threading, encryption of data and reactive architecture. You can learn more about Realm by visiting this page . Sugar ORM Sugar ORM is a library that can be used to interact with SQLite database using Object-Relational Mapping. Object-Relational Mapping (ORM) is a technique that used to query and manipulate data from a SQLite database using an object-oriented paradigm. And Sugar ORM tak

Laravel 5.4 Bootstrap row class for every 3 columns

Sometimes you need to show three or four columns in a row using Laravel 5.4 and blade template engine. Here I show how to do it using chunk function in Laravel blade. As the first step let's get products from the database and pass it to the blade view. And let's check our blade file. In the following example,  @ foreach  takes the  $ products array and chuck it. In this example, I split it by three. You can pass any number according to your specification. And you will see the inner @ foreach loop through  $ items. If you have any question please comment it and I will try to solve it.

Mobile Backend As A Service (BaaS) platform for Android

Many mobile apps and games rely on a backend service for things that can’t be done solely on hosted device, such as sharing and processing data from multiple users, or storing large files. Backend as a service (BaaS) provides a centralised database and other features to manage user-generated data and application data. The developer can link applications to the backend service and backend service expose APIs to manage users, integrate push notification and analytics. BaaS is a recent development of cloud computing technology. Using backend services provide developers functionalities to manage users, data and to analyse real-time changes actively. Backend service should be able to handle the offline case gracefully and minimise battery drain. Back in the day developers had to develop custom backend platforms using server-side technologies. And developers had to scale up and down according to the user base and app usage. It was time-consuming in terms of resources and skills. Most mob