android開發入門
Android is an open source, Linux-based mobile operating system. Android was developed by the Open Handset Alliance, which was lead by Google and featured contributions from many other companies.
Android是基于Linux的開放源代碼移動操作系統。 Android由開放手機聯盟(Open Handset Alliance)開發,該聯盟由Google領導,并獲得了許多其他公司的貢獻。
Today Android has become the leading Operating System being used in various devices, like mobile phone, tablets, watches, TV, cars and many more. It powers more than a billion devices all over the globe. Android has been the best selling OS on tablets since 2013, and on smartphones it is dominant by any metric.
如今, Android已成為在各種設備(例如手機,平板電腦,手表,電視,汽車等)中使用的領先操作系統。 它為全球超過十億臺設備供電。 自2013年以來,Android一直是平板電腦上最暢銷的操作系統,而在智能手機上,Android在所有指標上均占主導地位。
先決條件 (Prerequisites)
For getting started with Android development, you should already know about a few things:
要開始進行Android開發,您應該已經了解以下幾件事:
Java: Android development is mostly done in Java. It’s not a difficult language to learn, but knowing how it applies to Android development can be confusing without a firm foundation in the language. Android Java is not exactly standard Java, but learning standard Java will make it much easier for you to pick up Android development.
Java :Android開發大部分是用Java完成的。 這不是一門難學的語言,但是如果沒有扎實的語言基礎,就知道如何將其應用于Android開發會令人困惑。 Android Java并非完全是標準Java,但是學習標準Java將使您更輕松地進行Android開發。
XML: Knowing XML can be useful in a number of tech-related fields and Android is no exception. In particular, XML files make it easier to declare UI elements in the apps you create. Past experience is a big plus.
XML :了解XML在許多與技術相關的領域中可能很有用,Android也不例外。 特別是,XML文件使在您創建的應用程序中聲明UI元素更加容易。 過去的經驗是一大優勢。
- Perseverance: Lastly, learning the ins and outs of the Android development toolkit is going to take time. Learning how to create a quality app is going to take even more time. Don’t rush. Keep at it and focus your mind on the long term. If you don’t, you’ll be frustrated and want to give up. 毅力:最后,學習Android開發工具包的來龍去脈需要時間。 學習如何創建高質量的應用程序將花費更多時間。 不要著急 堅持下去,集中精力長期發展。 如果不這樣做,您會感到沮喪并想要放棄。
工具類 (Tools)
The things you’ll need to start building applications for Android are:
開始構建適用于Android的應用程序所需的功能是:
Latest version of the Java JDK
最新版本的Java JDK
Android Studio: Here is the official guide to install Android studio.
Android Studio : 這是安裝Android Studio的官方指南。
If possible, an Android device. If you don’t have one, you can use an emulator to run an Android virtual device on your computer.
如果可能,請使用Android設備。 如果您沒有,則可以使用模擬器在計算機上運行Android虛擬設備。
Kotlin語言支持 (Kotlin language support)
Starting with Android Studio 3.0, tooling support for Kotlin is bundled directly into Android Studio. Kotlin is a statically-typed programming language that runs on the Java Virtual Machine and also can be compiled to JavaScript source code.
從Android Studio 3.0開始,對Kotlin的工具支持直接捆綁到Android Studio中。 Kotlin是一種靜態類型的編程語言,可以在Java虛擬機上運行,??也可以編譯為JavaScript源代碼。
Kotlin is designed to interoperate with Java code and is reliant on Java code from the existing Java Class Library, such as the collections framework. It was designed to be a better object-oriented language than Java, but still be backwards compatible with Java and allow companies to migrate gradually.
Kotlin旨在與Java代碼進行互操作,并且依賴于現有Java類庫(例如集合框架)中的Java代碼。 它被設計為比Java更好的面向對象語言,但仍與Java向后兼容,并允許公司逐步遷移。
Some of the benefits of using Kotlin for Android development include:
使用Kotlin進行Android開發的一些好處包括:
- Kotlin requires less boilerplate code. Kotlin需要更少的樣板代碼。
- Kotlin is a type-safe language . Kotlin是一種類型安全的語言。
- Kotlin is more expressive than Java. Kotlin比Java更具表現力。
更多信息 (More Information)
Official Android Developer Guide
官方Android開發人員指南
What is Mobile App Development?
什么是移動應用開發?
Learn how to develop native Android apps with Kotlin - A Full Course
了解如何使用Kotlin開發本機Android應用-完整課程
翻譯自: https://www.freecodecamp.org/news/getting-started-with-android-development/
android開發入門