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.

Deploying web app with Firebase Hosting

Firebase Hosting provides production-grade, fast and secure (HTTPS - HTTP over TLS) static hosting for your web app.It can be used to deploy web applications (JavaScript based applications) or to deploy a static content to a global content delivery network (CDN) with a single command. In this tutorial, In this tutorial static website is hosted using Firebase Hosting feature. Key capabilities Files are served over a secure connection. Content is uploaded to SSDs at CDN edges around the world and cached to provide fast delivery. Firebase CLI provides facilities for rapid deployment. Developers can easily rollback to a previous deployment. Due to the rise of front-end JavaScript frameworks static web apps have become the de facto of modern web development. Whether you are deploying simple static web apps or large scale web app, firebase hosting provides the infrastructure, features, and tooling to successfully deploy the web app. Hosting provides auto-generat...