- Android Development with Kotlin
- Marcin Moskala Igor Wojda
- 148字
- 2021-07-02 18:48:31
Kotlin Playground
The fastest way to try Kotlin code without the need to install any software is Kotlin Playground (https://try.kotlinlang.org). We can run Kotlin code there using JavaScript or JVM Kotlin implementations and easily switch between different Kotlin versions. All the code examples from the book that does not require Android framework dependencies and can be executed using Kotlin Playground.
The main function is the entry point of every Kotlin application. This function is called when any application starts, so we must place code from the book examples in the body of this method. We can place code directly or just place a call to another function containing more Kotlin code:
fun main(args: Array<String>) { println("Hello, world!") }
Android applications have multiple entry points. The main function is called implicitly by the Android framework, so we can't use it to run Kotlin code on the Android platform.
推薦閱讀
- Java多線程編程實戰指南:設計模式篇(第2版)
- Power Up Your PowToon Studio Project
- Ext JS Data-driven Application Design
- Mastering Entity Framework
- MySQL 8 DBA基礎教程
- 機器人Python青少年編程開發實例
- PHP+MySQL網站開發項目式教程
- Python算法詳解
- Android項目實戰:手機安全衛士開發案例解析
- 智能搜索和推薦系統:原理、算法與應用
- Unity 2018 Augmented Reality Projects
- Java并發編程之美
- UI設計基礎培訓教程(全彩版)
- 深入淺出Python數據分析
- Python Projects for Kids