如何開始android開發_如何開始進行Android開發

如何開始android開發

Android開發簡介 (An intro to Android Development)

Android apps can be a great, fun way to get into the world of programming. Officially programmers can use Java, Kotlin, or C++ to develop for Android. Though there may be API restrictions, using certain tools developers can use a large number of languages, including JavaScript, C, or assembly. The possibilities are endless.

Android應用程序可能是進入編程世界的一種非常有趣的好方法。 正式而言,程序員可以使用Java,Kotlin或C ++進行Android開發。 盡管可能會有API限制,但是使用某些工具,開發人員可以使用多種語言,包括JavaScript,C或匯編語言。 可能性是無止境。

From simple games and utility apps to full-blown music players, there are many opportunities to create something meaningful with Android. The Android developer community is widespread, and the documentation and resources online are easy to find, so that you can tackle any issue you’re facing.

從簡單的游戲,實用程序應用程序到功能完善的音樂播放器,都有許多機會可以使用Android創建有意義的內容。 Android開發人員社區非常廣泛,在線文檔和資源也很容易找到,因此您可以解決所遇到的任何問題。

There is definitely a learning curve to get used to the Android framework. But once you understand the core components that make up the app, the rest will come naturally.

一定要適應Android框架,這是一條學習曲線。 但是,一旦您了解了構成應用程序的核心組件,其余的一切就自然而然地出現了。

The learning curve involved in Android has a relatively smaller slope compared to learning other technologies such as NodeJS. It is also relatively easier to understand and make contributions towards AOSP hosted by Google. The project can be found here.

與學習其他技術(例如NodeJS)相比,Android中涉及的學習曲線的斜率相對較小。 相對容易理解,并為Google托管的AOSP做出貢獻。 該項目可以在這里找到。

入門 (Getting started)

Check out the guides in this folder to learn about the 4 core components that make up an Android app and how you can get started with a sample app. Then delve into the more advanced topics such as fragments and the Gradle build system. Finally, check out the material design specifications guide as well to learn how to make your apps beautiful and user friendly.

查看此文件夾中的指南,以了解組成一個Android應用程序的4個核心組件 ,以及如何開始使用示例應用程序。 然后深入研究更高級的主題,例如片段和Gradle構建系統。 最后,還請查看材料設計規范指南,以了解如何使您的應用程序美觀和用戶友好。

Android Studio的設置和入門 (Setting Up and Getting Started with Android Studio)

Go to this link and install the latest JDK. Now download the Android Studio and SDK tools bundle from here. Install the Android Studio and SDK following the set up. Keep note of the SDK location. If you face any errors go to settings later to resolve them.

轉到此鏈接并安裝最新的JDK。 現在從此處下載Android Studio和SDK工具包。 按照設置安裝Android Studio和SDK。 記下SDK的位置。 如果遇到任何錯誤,請稍后再進行設置以解決它們。

Lastly, learn to integrate 3rd party libraries and Firebase services to add functionality to your app. It would be helpful if you go through the official documentation for each component.

最后,學習集成第三方庫和Firebase服務以向您的應用程序添加功能。 如果您仔細閱讀每個組件的官方文檔,將會很有幫助。

官方文件 (Official Documentation)

Google Developers Guide for Android

適用于Android的Google開發者指南

Java與Kotlin:要學習哪種語言? (Java vs. Kotlin: which language to learn?)

Ever since Google announced Kotlin as the official language for Android development at Google IO in 2017, programmers who want to become Android developers have a dilemma. The big question in front of them is whether they should learn Kotlin or Java.

自從Google在2017年宣布Kotlin作為Google IO的Android開發官方語言以來,想要成為Android開發人員的程序員就陷入了困境。 他們面前最大的問題是他們應該學習Kotlin還是Java。

Android開發的初學者應從Java開始 (Beginners in Android Development Should Start With Java)

The first and foremost thing is that Android development is not everything. As a programmer, you may be starting your career with Android development. But if you start with a well-established language like Java, you become a part of the bigger Java community and market, which directly means more job opportunities.

首先也是最重要的是,Android開發還不是全部。 作為程序員,您可能會開始使用Android開發。 但是,如果您從像Java這樣的成熟語言開始,您將成為更大的Java社區和市場的一部分,這直接意味著更多的工作機會。

The second and more important thing is that there is a huge community of Java programmers, which means you can find answers when you are stuck. This is very important because, as a beginner, you will face a lot of technical problems and you might not know where to head when you are stuck.

第二個也是更重要的一點是,有一個龐大的Java程序員社區,這意味著當您遇到困難時可以找到答案。 這是非常重要的,因為作為一個初學者,您將面臨很多技術問題,并且在卡住時可能不知道要去哪里。

When you search Google with a Java problem, you are bound to get answers. But the same cannot be said for Kotlin, which is still a new programming language.

當您使用Java問題搜索Google時,一定會找到答案。 但是對于Kotlin來說卻不能說相同,它仍然是一種新的編程語言。

Java程序員應該學習Kotlin (Java Programmers Should Learn Kotlin)

Now, coming back to the second set of programmers who want to learn Android development: our fellow Java developers. For them, I think it's best to learn Kotlin because it really improves productivity.

現在,回到第二組想要學習Android開發的程序員:我們的Java開發人員。 對于他們來說,我認為最好學習Kotlin,因為它確實可以提高生產力。

A class which takes 50 lines of code in Java can really be written in just one line in Kotlin. It can help you avoid all boiler-plate code - for example, you don’t need to specify getters and setters, equals(), hashCode() or toString() methods. Kotlin can generate all that by itself.

實際上,使用Java用50行代碼編寫的類實際上可以用Kotlin用一行編寫。 它可以幫助您避免所有樣板代碼-例如,您不需要指定getter和setter,equals(),hashCode()或toString()方法。 Kotlin可以自己生成所有內容。

If you don’t know, Kotlin was development by JetBrains, the company behind one of the most popular Java IDEs, IntelliJ IDEA. They were a Java shop developing IDEs like IntelliJ IDEA, PyCharm, and ReSharper, all in Java. And then they built Kotlin to improve their productivity. But at the same time, they couldn't rewrite all their code in Kotlin, so that’s why they made Kotlin fully interoperable with Java.

如果您不知道,Kotlin是由JetBrains開發的,JetBrains是最流行的Java IDE之一IntelliJ IDEA背后的公司。 他們是一家Java商店,使用Java來開發諸如IntelliJ IDEA,PyCharm和ReSharper之類的IDE。 然后他們建立了Kotlin以提高生產力。 但是同時,他們無法用Kotlin重寫所有代碼,因此這就是為什么他們使Kotlin與Java完全互操作。

Because Kotlin generates Java bytecode, you can use your favorite Java frameworks and libraries in Kotlin and your Java friends can also use any Kotlin framework you develop.

由于Kotlin生成Java字節碼,因此您可以在Kotlin中使用自己喜歡的Java框架和庫,并且Java朋友也可以使用您開發的任何Kotlin框架。

Java資源: (Java resources:)

  • Java programming basics

    Java編程基礎

  • The best Java examples

    最好的Java示例

  • The best Java 8 tutorials

    最好的Java 8教程

  • Java for absolute beginners - full video course

    適用于絕對初學者的Java-完整視頻課程

Kotlin資源: (Kotlin resources:)

  • Still using Java for Android app development? Try Kotlin instead.

    還在使用Java進行Android應用開發嗎? 嘗試使用Kotlin。

  • Develop native Android apps with Kotlin - full video course

    使用Kotlin開發原生Android應用-完整的視頻課程

  • Useful standard library functions in Kotlin

    Kotlin中有用的標準庫功能

  • Functional programming in Kotlin

    Kotlin中的函數式編程

有關Android開發的更多信息: (More info on Android development:)

  • How to simplify your Android app's architecture

    如何簡化Android應用的架構

  • An overview of Android storage

    Android存儲概述

  • How to improve the build speed of your Android projects

    如何提高Android項目的構建速度

翻譯自: https://www.freecodecamp.org/news/intro-to-android-development/

如何開始android開發

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

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

相關文章

httpd2.2的配置文件常見設置

目錄 1、啟動報錯:提示沒有名字fqdn2、顯示服務器版本信息3、修改監聽的IP和Port3、持久連接4 、MPM( Multi-Processing Module )多路處理模塊5 、DSO:Dynamic Shared Object6 、定義Main server (主站點) …

leetcode 149. 直線上最多的點數

題目 給你一個數組 points ,其中 points[i] [xi, yi] 表示 X-Y 平面上的一個點。求最多有多少個點在同一條直線上。 示例 1: 輸入:points [[1,1],[2,2],[3,3]] 輸出:3 示例 2: 輸入:points [[1,1],[3,…

solidity開發以太坊代幣智能合約

智能合約開發是以太坊編程的核心之一,而代幣是區塊鏈應用的關鍵環節,下面我們來用solidity語言開發一個代幣合約的實例,希望對大家有幫助。 以太坊的應用被稱為去中心化應用(DApp),DApp的開發主要包括兩大部…

2019大數據課程_根據數據,2019年最佳免費在線課程

2019大數據課程As we do each year, Class Central has tallied the best courses of the previous year, based on thousands of learner reviews. (Here are the rankings from 2015, 2016, 2017, and 2018.) 與我們每年一樣,根據數千名學習者的評論, …

2017-12-07 socket 讀取問題

1.用socke阻塞方式讀取服務端發送的數據時會出現讀取一直阻塞的情況,如果設置了超時時間會在超時時間后讀取到數據: 原因:在不確定服務器會不會發送 socket發送的數據不會返回null 或者-1 所以用常規的判斷方法是不行的。 解決辦法有兩個:1 …

靜態代理設計與動態代理設計

靜態代理設計模式 代理設計模式最本質的特質:一個真實業務主題只完成核心操作,而所有與之輔助的功能都由代理類來完成。 例如,在進行數據庫更新的過程之中,事務處理必須起作用,所以此時就可以編寫代理設計模式來完成。…

svm機器學習算法_SVM機器學習算法介紹

svm機器學習算法According to OpenCVs "Introduction to Support Vector Machines", a Support Vector Machine (SVM):根據OpenCV“支持向量機簡介”,支持向量機(SVM): ...is a discriminative classifier formally defined by a separating …

6.3 遍歷字典

遍歷所有的鍵—值對 遍歷字典時,鍵—值對的返回順序也與存儲順序不同。 6.3.2 遍歷字典中的所有鍵 在不需要使用字典中的值時,方法keys() 很有用。 6.3.3 按順序遍歷字典中的所有鍵 要以特定的順序返回元素,一種辦法是在for 循環中對返回的鍵…

Google Guava新手教程

以下資料整理自網絡 一、Google Guava入門介紹 引言 Guavaproject包括了若干被Google的 Java項目廣泛依賴 的核心庫,比如:集合 [collections] 、緩存 [caching] 、原生類型支持 [primitives support] 、并發庫 [concurrency libraries] 、通用注解 [comm…

HTML DOM方法

querySelector() (querySelector()) The Document method querySelector() returns the first element within the document that matches the specified selector, or group of selectors. If no matches are found, null is returned.Document方法querySelector()返回文檔中與…

leetcode 773. 滑動謎題

題目 在一個 2 x 3 的板上(board)有 5 塊磚瓦,用數字 1~5 來表示, 以及一塊空缺用 0 來表示. 一次移動定義為選擇 0 與一個相鄰的數字(上下左右)進行交換. 最終當板 board 的結果是 [[1,2,3],[4,5,0]] 謎板被解開。…

數據科學領域有哪些技術_領域知識在數據科學中到底有多重要?

數據科學領域有哪些技術Jeremie Harris: “In a way, it’s almost like a data scientist or a data analyst has to be like a private investigator more than just a technical person.”杰里米哈里斯(Jeremie Harris) :“ 從某種意義上說,這就像是數…

python 算術運算

1. 算術運算符與優先級 # -*- coding:utf-8 -*-# 運算符含有,-,*,/,**,//,% # ** 表示^ , 也就是次方 a 2 ** 4 print 2 ** 4 , aa 16 / 5 print 16 / 5 , aa 16.0 / 5 print 16.0 / 5 , a# 結果再進行一次floor a 16.0 // 5.0 print 16.0 // 5.0 , aa 16 // 5 print …

c語言編程時碰到取整去不了_碰到編程墻時如何解開

c語言編程時碰到取整去不了Getting stuck is part of being a programmer, no matter the level. The so-called “easy” problem is actually pretty hard. You’re not exactly sure how to move forward. What you thought would work doesn’t.無論身在何處,陷…

初創公司怎么做銷售數據分析_為什么您的初創企業需要數據科學來解決這一危機...

初創公司怎么做銷售數據分析The spread of coronavirus is delivering a massive blow to the global economy. The lockdown and work from home restrictions have forced thousands of startups to halt expansion plans, cancel services, and announce layoffs.冠狀病毒的…

leetcode 909. 蛇梯棋

題目 N x N 的棋盤 board 上,按從 1 到 N*N 的數字給方格編號,編號 從左下角開始,每一行交替方向。 例如,一塊 6 x 6 大小的棋盤,編號如下: r 行 c 列的棋盤,按前述方法編號,棋盤格…

Python基礎之window常見操作

一、window的常見操作: cd c:\ #進入C盤d: #從C盤切換到D盤 cd python #進入目錄cd .. #往上走一層目錄dir #查看目錄文件列表cd ../.. #往上上走一層目錄 二、常見的文件后綴名: .txt 記事本文本文件.doc word文件.xls excel文件.ppt PPT文件.exe 可執行…

WPF效果(GIS三維篇)

二維的GIS已經被我玩爛了,緊接著就是三維了,哈哈!先來看看最簡單的效果: 轉載于:https://www.cnblogs.com/OhMonkey/p/8954626.html

css注釋_CSS注釋示例–如何注釋CSS

css注釋Comments are used in CSS to explain a block of code or to make temporary changes during development. The commented code doesn’t execute.CSS中使用注釋來解釋代碼塊或在開發過程中進行臨時更改。 注釋的代碼不執行。 Both single and multi-line comments in…

r軟件時間序列分析論文_高度比較的時間序列分析-一篇論文評論

r軟件時間序列分析論文數據科學 , 機器學習 (Data Science, Machine Learning) In machine learning with time series, using features extracted from series is more powerful than simply treating a time series in a tabular form, with each date/timestamp …