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.mzph.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 数组下标…