ANDROID   PROGRAMS

                                                   
Android is a mobile operating system developed by Google, based on a modified version of the Linux kernel and other open source software and designed primarily for touchscreen mobile devices such as smartphones and tablets. In addition, Google has further developed Android TV for televisions, Android Auto for cars, and Wear OS for wrist watches, each with a specialized user interface. Variants of Android are also used on game consoles, digital cameras, PCs and other electronics.

1)Hello World Program

    Open Android Studio
   


    


  Click on Start a new Android Project



Create New Project
  

  In this step you can select your application name,company domain and Project location

application name: your project name 
company domain: project structure like  com.hts.banking.Txn
Project Location: The place where you want to store your android projects.


Include C++ and Kotlin Language Support : If you want to use C++ or  Kotlin language to create your application then must enable these options.
In general it supports Java Language to create Android Projects.

Select The Target Android Devices


In this step you can select the API Level and Code name of the android SDK.
Note: The lower version of API Level support maximum number of Android Devices


Add an Activity to Mobile
.



In this step you can select the predefined Activities are provided by the Android Studio .
if you want to write your own code then select Empty Activity which has the starter code to develop an Application.


Configure Activity

 In this step you can configure your Activity  by specifying the names of the Activity file and Activity java class file.

Activity file          :  activity_main.xml
Activity class file:   MainActivity




Gradle Build finish 

Gradle is an open-source build automation system that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language instead of the XML form used by Apache Maven for declaring the project configuration.

activity_main.xml file design view(Not Showing)


It is the bug in Android Studio to overcome this bug you can select AppTheme or add the Base in  styles.xml ,










OutPut:








Comments

Popular posts from this blog

20 Simple Content Provider Example

14 Popup Menu

17 Simple Notification Program