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 Suga...

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.

Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) Part - 2

This tutorial is the second part of the Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) . Before I install LEMP stack, I am going to update the package installer. To do that run the following command in the terminal. It will grab the package list and update it. sudo apt-get update Install Nginx (Engine-X) Run the following command to install Nginx server. sudo apt-get install nginx   After the installation, you should be able to visit your IP address and it will show the Nginx default page. Install MySQL Run the following command to install MySQL on your server. sudo apt-get install mysql-server The above command will start the MySQL installation process. You will have to enter 'Y' and proceed. After few steps you will see the following screen. Enter root password and proceed. Default MySQL installation is famous for insecure. MySQL has a helper script to secure the MySQL installation. To run the script type the following command i...