Introduction to Android --1.1
来源:互联网 发布:nginx 访问文件 403 编辑:程序博客网 时间:2024/05/17 17:42
Android 提供了一个丰富的应用框架,在这个框架的基础上,你可以用 Java 语言创建各种各样的应用。左边的导航栏提供了详细的介绍关于如何使用 Android 提供的 API。
如果你是一个新手,那么理解下面两个基本概念对于你来说是十分重要的:
Apps provide multiple entry points
Android 应用程序是由四大组件构成的,并且每一个组件都可以被单独的调用。例如:一个单独的 Activity 为用户提供了一个的交互界面,Service 可以独立在后台执行任务。
从一个组件里,你可以通过使用 Intent 调用其他组件。你甚至可以调用其他应用的组件,例如调用地图应用中的某个 Activity 用来展示地址信息。这样的模型为 Android 里面的每个应用提供了多个入口。
Apps adapt to different devices
Android 提供了一个自适应框架,在这个框架之下,你只需为不同配置的设备提供一种资源文件(言下之意就是:不用创建不同的App)。例如:你可以为不同屏幕尺寸的设备创建不同的布局文件,在系统运行时,Android 系统将会根据当前屏幕的尺寸来决定使用哪个布局文件。
如果你的 App 需要一些硬件特性支持,那么在运行时,你便可以检验当前设备是否支持此特性。如果有必要的话,你可以声明你的 App 运行所需的一些特性,这样做之后,例如像 Google Play 这样的应用商店,就会阻止那些不具备这些特性的设备去下载此应用。
好了这篇文章到这里就结束了,have a good day ~
温馨提示:上面的文章都是 LZ 个人见解,主要是为了让小伙伴更容易看懂,因此或多或少添了一些词,如有什么不妥之处,往指出,共同进步~
- Introduction to Android --1.1
- Introduction to Android Webkit
- Introduction to Android RILD
- Introduction to Android Espresso
- API Guides -> Introduction -> Introduction to Android
- Introduction to Android Building System.
- Introduction to Android Power Management
- Introduction to Android Power Management
- Introduction to Android Theme Customization
- Android API Guides – Introduction to Android
- Introduction to Android(Android简介)
- Android Lesson Five: An Introduction to Blending
- Introduction to AQuery – Android Query 翻译
- Introduction to Model View Presenter on Android
- Introduction to Model View Presenter on Android
- INTRODUCTION TO COORDINATOR LAYOUT ON ANDROID
- Java Thread Programming 1.1 - Introduction to Threads
- An Introduction to Using Binder Framework on Android Operating System
- Apache与Tomcat有什么关系和区别
- bzoj3514 Codechef MARCH14 GERALD07加强版 LCT&&主席树
- 【CodeForces】A. Lucky Division
- 【PAT】1036. 跟奥巴马一起编程(15)
- 手把手教你怎么免费为微信公众号接入智能客服
- Introduction to Android --1.1
- 【CodeForces】A. Twins
- Android UI技巧(一)——Android中伸缩自如的9patch图片切法,没有美工自给自足
- (十)利用processing绘制3D图形
- Android简单实现仿支付宝新年红包活动页面的动态布局效果
- PHP---加密
- PAT 1038
- 基于Python的数据可视化 matplotlib seaborn pandas
- java并发(二十五)java7之fork-join框架