【编程语言】Android--基础速览

来源:互联网 发布:绵阳长虹网络公司地址 编辑:程序博客网 时间:2024/04/25 14:24

来源:http://developer.android.com/guide/components/fundamentals.html
  • Android applications are composed of one or more application components (activities, services, content providers, and broadcast receivers)
  • Each component performs a different role in the overall application behavior, and each one can be activated individually (even by other applications)
  • The manifest file must declare all components in the application and should also declare all application requirements, such as the minimum version of Android required and any hardware configurations required
  • Non-code application resources (images, strings, layout files, etc.) should include alternatives for different device configurations (such as different strings for different languages and different layouts for different screen sizes)
翻译:

1 android应用程序是由一个或者多个应用组件组成的:activities,services,content,provider和broadcast receiver。

2 每一个组件都在应用程序的行为中扮演者一个角色,每一个组件都能够被单独激活(activate)。manifest 文件里面必须必须声明应用程序用到的所有组件以及应用程序的一些硬性需求,比如系统软硬件的配置android版本,内存容量限制等。

3  Non-code应用程序资源(图片资源,字符串资源,布局文件等资源)应该包含不同配置设备所需的所有替代文件(比如不同语言需要不同的字符串资源不同尺寸的屏幕有不同的布局)。