android開發入門_Android開發入門

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開發入門

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/390674.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/390674.shtml
英文地址,請注明出處:http://en.pswp.cn/news/390674.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

新購阿里云服務器ECS創建之后無法ssh連接的問題處理

作者:13 GitHub:https://github.com/ZHENFENG13 版權聲明:本文為原創文章,未經允許不得轉載。 問題描述 由于原服務器將要到期,因此趁著阿里云搞促銷活動重新購買了一臺ECS服務器,但是在初始化并啟動后卻無…

數據下發非標準用戶權限測試

與同事一起溝通了下MDM的Oracle權限部分: create user cx default tablespace cwbaseoe73 identified by Test6530 grant select,update,delete,insert on lcoe739999.lsbzdw to cx grant create table to cx alter user cx quota unlimited on cwbaseoe73 grant create sessio…

leetcode 474. 一和零(dp)

給你一個二進制字符串數組 strs 和兩個整數 m 和 n 。 請你找出并返回 strs 的最大子集的大小,該子集中 最多 有 m 個 0 和 n 個 1 。 如果 x 的所有元素也是 y 的元素,集合 x 是集合 y 的 子集 。 示例 1: 輸入:strs [“10”…

邊緣計算 ai_在邊緣探索AI!

邊緣計算 ai介紹 (Introduction) What is Edge (or Fog) Computing?什么是邊緣(或霧)計算? Gartner defines edge computing as: “a part of a distributed computing topology in which information processing is located close to the edge — where things a…

JavaScript中的全局變量介紹

Global variables are declared outside of a function for accessibility throughout the program, while local variables are stored within a function using var for use only within that function’s scope. If you declare a variable without using var, even if it’…

初識spring-boot

使用Spring或者SpringMVC的話依然有許多東西需要我們進行配置,這樣不僅徒增工作量而且在跨平臺部署時容易出問題。 使用Spring Boot可以讓我們快速創建一個基于Spring的項目,而讓這個Spring項目跑起來我們只需要很少的配置就可以了。Spring Boot主要有如…

leetcode 879. 盈利計劃(dp)

這是我參與更文挑戰的第9天 ,活動詳情查看更文挑戰 題目 集團里有 n 名員工,他們可以完成各種各樣的工作創造利潤。 第 i 種工作會產生 profit[i] 的利潤,它要求 group[i] 名成員共同參與。如果成員參與了其中一項工作,就不能…

區塊鏈101:區塊鏈的應用和用例是什么?

區塊鏈技術是一場記錄系統的革命。 比特幣是歷史上第一個永久的、分散的、全球性的、無信任的記錄分類帳。自其發明以來,世界各地各行各業的企業家都開始明白這一發展的意義。 區塊鏈技術的本質讓人聯想到瘋狂,因為這個想法現在可以應用到任何值得信賴的…

java請求接口示例_用示例解釋Java接口

java請求接口示例介面 (Interfaces) Interface in Java is a bit like the Class, but with a significant difference: an interface can only have method signatures, fields and default methods. Since Java 8, you can also create default methods. In the next block y…

如何建立搜索引擎_如何建立搜尋引擎

如何建立搜索引擎This article outlines one of the most important search algorithms used today and demonstrates how to implement it in Python in just a few lines of code.本文概述了當今使用的最重要的搜索算法之一,并演示了如何僅用幾行代碼就可以在Pyth…

用Docker自動構建紙殼CMS

紙殼CMS可以運行在Docker上,接下來看看如何自動構建紙殼CMS的Docker Image。我們希望的是在代碼提交到GitHub以后,容器鏡像服務可以自動構建Docker Image,構建好以后,就可以直接拿這個Docker Image來運行了。 Dockerfile 最重要的…

Linux學習筆記15—RPM包的安裝OR源碼包的安裝

RPM安裝命令1、 安裝一個rpm包rpm –ivh 包名“-i” : 安裝的意思“-v” : 可視化“-h” : 顯示安裝進度另外在安裝一個rpm包時常用的附帶參數有:--force : 強制安裝,即使覆蓋屬于其他包的文件也要安裝--nodeps : 當要安裝的rpm包依賴其他包時&#xff0…

leetcode 518. 零錢兌換 II

給定不同面額的硬幣和一個總金額。寫出函數來計算可以湊成總金額的硬幣組合數。假設每一種面額的硬幣有無限個。 示例 1: 輸入: amount 5, coins [1, 2, 5] 輸出: 4 解釋: 有四種方式可以湊成總金額: 55 5221 52111 511111 示例 2: 輸入: amount 3, coins [2] 輸出: 0 解…

軟件測試中什么是正交實驗法_軟件工程中的正交性

軟件測試中什么是正交實驗法正交性 (Orthogonality) In software engineering, a system is considered orthogonal if changing one of its components changes the state of that component only. 在軟件工程中,如果更改系統的組件之一僅更改該組件的狀態&#xf…

leetcode 279. 完全平方數(dp)

題目一 給定正整數 n,找到若干個完全平方數(比如 1, 4, 9, 16, …)使得它們的和等于 n。你需要讓組成和的完全平方數的個數最少。 給你一個整數 n ,返回和為 n 的完全平方數的 最少數量 。 完全平方數 是一個整數,其…

github代碼_GitHub啟動代碼空間

github代碼Codespaces works like a virtual Integrated Development Environment (IDE) on the cloud.代碼空間的工作方式類似于云上的虛擬集成開發環境(IDE)。 Until now, you had to make a pull request to contribute to a project. This required setting up the enviro…

php變量

什么叫變量&#xff1f; 變量可以通過變量名訪問。在指令式語言中&#xff0c;變量通常是可變的&#xff1b; 這里就先這么簡單理解&#xff0c;通過對語言的研究會更加的理解變量的其他意義。 在PHP中變量是用于存儲信息的"容器"&#xff1a; <?php $x5; $y6;…

js將base64做UrlEncode轉碼

使用 encodeURIComponent() 其詳細介紹 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent var base64 &#xff08;base64值&#xff09;encodeURIComponent(base64 ) //轉化 轉載于:https://www.cnblogs.com/xll-qg/p…

引用自己創建的css樣式表_如何使用CSS創建聯系表

引用自己創建的css樣式表First we create the HTML elements - input fields for First Name, Last Name, Email and a Text Area for the message.首先&#xff0c;我們創建HTML元素-名字&#xff0c;姓氏&#xff0c;電子郵件和消息的文本區域的輸入字段。 Later we apply C…

leetcode 1449. 數位成本和為目標值的最大數字(dp)

這是我參與更文挑戰的第12天 &#xff0c;活動詳情查看更文挑戰 題目 給你一個整數數組 cost 和一個整數 target 。請你返回滿足如下規則可以得到的 最大 整數&#xff1a; 給當前結果添加一個數位&#xff08;i 1&#xff09;的成本為 cost[i] &#xff08;cost 數組下標…