Wednesday 18 October 2017

3. Hello World Android Application

3. Hello World Android Application



Let's start our first android app. Click on Android studio icon in your android studio bin folder. You will get below screen.


Now, Click on ‘Start a new Android Studio Project’.


Give your application name and package name and click on next button.

Select form factors as per your requirement and click on next button. It will install requested components and will navigate you to add activity window.


As of now, Just select ‘Empty activity’ and click on next button.


Customize the activity name and layout name as per your wish and click on finish button, it will show you default project structure.


When you run this on virtual device, you will see it as shown below:


Project structure details:


java:
This contains the .java source files for your project.

gen:
contains the .R file, a compiler-generated file that references all the resources found in your project. You should not modify this file.

res/drawable-hdpi
This is a directory for drawable objects that are designed for high-density screens.

res/layout
This is a directory for files that define your app's user interface.

res/values
This is a directory for other various XML files that contain a collection of resources, such as strings and colors definitions.

AndroidManifest.xml
This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.   

Happy Learning!!!

No comments:

Post a Comment

Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...