Difference between revisions of "Android app using Kotlin"
(Created page with "'''Android''' is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. '''Android Studio''' is the official IDE for an...") |
|||
Line 1: | Line 1: | ||
'''Android''' is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. | '''Android''' is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. | ||
− | |||
'''Android Studio''' is the official IDE for android application development. App development on Android was almost exclusively done using the Java programming language. | '''Android Studio''' is the official IDE for android application development. App development on Android was almost exclusively done using the Java programming language. | ||
− | |||
'''Kotlin''' is a new open source programming language built by JetBrains, known for IntelliJ IDEA (Android Studio is based on IntelliJ IDEA). Kotlin is a language that runs on the JVM (Java Virtual Machine). | '''Kotlin''' is a new open source programming language built by JetBrains, known for IntelliJ IDEA (Android Studio is based on IntelliJ IDEA). Kotlin is a language that runs on the JVM (Java Virtual Machine). | ||
− | |||
Google has announced Kotlin as an official language on Android. Kotlin, is a statically typed programming language for the JVM, Android and the browser. It’s deep interoperability with Java, which attracts more Java developers. It is tools-friendly as IDE gives suggestions for Kotlin code, can convert Java code to Kotlin code. It is expressive to make your code more readable and understandable. | Google has announced Kotlin as an official language on Android. Kotlin, is a statically typed programming language for the JVM, Android and the browser. It’s deep interoperability with Java, which attracts more Java developers. It is tools-friendly as IDE gives suggestions for Kotlin code, can convert Java code to Kotlin code. It is expressive to make your code more readable and understandable. | ||
− | + | The '''Android app, '''source code and the content for this tutorial was contributed by '''Abhishek Shah, '''a FOSSEE intern of the Spoken-Tutorial Project from '''Birla Vishvakarma Mahavidyalaya Engineering College, Gujarat.''' | |
− | The '''Android app ''' | + | |
− | + | ||
The Spoken Tutorial Effort for '''Android app using Kotlin''' has been contributed by '''Nirmala Venkat''' from Spoken Tutorials. | The Spoken Tutorial Effort for '''Android app using Kotlin''' has been contributed by '''Nirmala Venkat''' from Spoken Tutorials. | ||
Line 22: | Line 17: | ||
#Installation of Android Studio | #Installation of Android Studio | ||
− | |||
#*System prerequisites for installation | #*System prerequisites for installation | ||
− | |||
#*Demonstration on how to install Android Studio on Ubuntu Linux OS | #*Demonstration on how to install Android Studio on Ubuntu Linux OS | ||
− | |||
#*Download from https://developer.android.com/studio/ | #*Download from https://developer.android.com/studio/ | ||
− | |||
#*Steps to follow to do the installation | #*Steps to follow to do the installation | ||
− | |||
#*How to start the Android Studio from the terminal | #*How to start the Android Studio from the terminal | ||
− | |||
#*Android Studio setup wizard | #*Android Studio setup wizard | ||
− | |||
#*Welcome page of Android Studio | #*Welcome page of Android Studio | ||
− | |||
− | |||
− | |||
#Getting started with Hello World App | #Getting started with Hello World App | ||
− | |||
#*Launch the Android studio | #*Launch the Android studio | ||
− | |||
#*Create a new Android Studio project | #*Create a new Android Studio project | ||
− | |||
#*Steps for creating a new Application | #*Steps for creating a new Application | ||
− | |||
#*How to create a new activity? | #*How to create a new activity? | ||
− | |||
#*Explore the Android Studio interface | #*Explore the Android Studio interface | ||
− | |||
#*Steps to enable USB debugging on Android Phone | #*Steps to enable USB debugging on Android Phone | ||
− | |||
#*Run the default Hello world App | #*Run the default Hello world App | ||
− | |||
#*Change the position of the default TextView | #*Change the position of the default TextView | ||
− | + | #*Change the default text property during run time | |
− | Change the default text property during run time | + | |
− | + | ||
#*Run the App to see the output in an Android phone | #*Run the App to see the output in an Android phone | ||
− | |||
− | |||
#Creating a simple registration form | #Creating a simple registration form | ||
− | |||
#*How to use tools such as TextView, Plain Text and Buttons? | #*How to use tools such as TextView, Plain Text and Buttons? | ||
− | |||
#*Add a TextView and set the attributes | #*Add a TextView and set the attributes | ||
− | |||
#*How to align and resize a view in ConstraintLayout? | #*How to align and resize a view in ConstraintLayout? | ||
− | |||
#*How to delete a constraint? | #*How to delete a constraint? | ||
− | |||
#*Add a EditText and set the attributes | #*Add a EditText and set the attributes | ||
− | |||
#*Add a Button and set the attributes | #*Add a Button and set the attributes | ||
− | |||
#*Quick fix the errors and warnings | #*Quick fix the errors and warnings | ||
− | |||
#*SetOnClickListener method | #*SetOnClickListener method | ||
− | |||
#*Send data from one activity to another activity | #*Send data from one activity to another activity | ||
− | |||
#*Show the registration form output in an Android phone | #*Show the registration form output in an Android phone | ||
− | |||
− | |||
#Adding Radio Buttons | #Adding Radio Buttons | ||
− | |||
#*Why we need Radio Group? | #*Why we need Radio Group? | ||
− | |||
#*How to add Radio Group? | #*How to add Radio Group? | ||
− | |||
#*Set the attributes for Radio Group | #*Set the attributes for Radio Group | ||
− | |||
#*How to add Radio button? | #*How to add Radio button? | ||
− | |||
#*Set the text attribute for Radio button | #*Set the text attribute for Radio button | ||
− | |||
#*Declaring variables in Kotlin | #*Declaring variables in Kotlin | ||
− | |||
#*Code for Radio button selection | #*Code for Radio button selection | ||
− | |||
#*Launch the App in the phone | #*Launch the App in the phone | ||
− | |||
#*Run the App to see the output in the Android phone | #*Run the App to see the output in the Android phone | ||
− | |||
− | |||
#Adding Spinner and Image | #Adding Spinner and Image | ||
− | |||
#*How to add Spinner? | #*How to add Spinner? | ||
− | |||
#*Set the attributes for spinner | #*Set the attributes for spinner | ||
− | |||
#*Add list of items to spinner through kotlin code | #*Add list of items to spinner through kotlin code | ||
− | |||
#*Create an array adapter | #*Create an array adapter | ||
− | |||
#*Source code for selecting an item from the spinner | #*Source code for selecting an item from the spinner | ||
− | |||
#*How to add a built-in image? | #*How to add a built-in image? | ||
− | |||
#*How to add a custom image? | #*How to add a custom image? | ||
− | |||
#*Launch the app in the phone | #*Launch the app in the phone | ||
− | |||
#*Run the App to see the output in the Android phone | #*Run the App to see the output in the Android phone |
Revision as of 11:01, 18 April 2019
Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers.
Android Studio is the official IDE for android application development. App development on Android was almost exclusively done using the Java programming language.
Kotlin is a new open source programming language built by JetBrains, known for IntelliJ IDEA (Android Studio is based on IntelliJ IDEA). Kotlin is a language that runs on the JVM (Java Virtual Machine).
Google has announced Kotlin as an official language on Android. Kotlin, is a statically typed programming language for the JVM, Android and the browser. It’s deep interoperability with Java, which attracts more Java developers. It is tools-friendly as IDE gives suggestions for Kotlin code, can convert Java code to Kotlin code. It is expressive to make your code more readable and understandable.
The Android app, source code and the content for this tutorial was contributed by Abhishek Shah, a FOSSEE intern of the Spoken-Tutorial Project from Birla Vishvakarma Mahavidyalaya Engineering College, Gujarat.
The Spoken Tutorial Effort for Android app using Kotlin has been contributed by Nirmala Venkat from Spoken Tutorials.
Contents
Basic Level
- Installation of Android Studio
- System prerequisites for installation
- Demonstration on how to install Android Studio on Ubuntu Linux OS
- Download from https://developer.android.com/studio/
- Steps to follow to do the installation
- How to start the Android Studio from the terminal
- Android Studio setup wizard
- Welcome page of Android Studio
- Getting started with Hello World App
- Launch the Android studio
- Create a new Android Studio project
- Steps for creating a new Application
- How to create a new activity?
- Explore the Android Studio interface
- Steps to enable USB debugging on Android Phone
- Run the default Hello world App
- Change the position of the default TextView
- Change the default text property during run time
- Run the App to see the output in an Android phone
- Creating a simple registration form
- How to use tools such as TextView, Plain Text and Buttons?
- Add a TextView and set the attributes
- How to align and resize a view in ConstraintLayout?
- How to delete a constraint?
- Add a EditText and set the attributes
- Add a Button and set the attributes
- Quick fix the errors and warnings
- SetOnClickListener method
- Send data from one activity to another activity
- Show the registration form output in an Android phone
- Adding Radio Buttons
- Why we need Radio Group?
- How to add Radio Group?
- Set the attributes for Radio Group
- How to add Radio button?
- Set the text attribute for Radio button
- Declaring variables in Kotlin
- Code for Radio button selection
- Launch the App in the phone
- Run the App to see the output in the Android phone
- Adding Spinner and Image
- How to add Spinner?
- Set the attributes for spinner
- Add list of items to spinner through kotlin code
- Create an array adapter
- Source code for selecting an item from the spinner
- How to add a built-in image?
- How to add a custom image?
- Launch the app in the phone
- Run the App to see the output in the Android phone