Key Concepts(Chapter 2 of Hello, Android)

  Android is built on top of a solid and proven foundation: the Linux kernel.Internally, Android uses Linux for its memory management, process management, networking, and other operating system services. The Android phone user will never see Linux and your programs will not make Linux calls directly.

  The next layer above the kernel contains the Android native libraries.These shared libraries are all written in C or C++, compiled for the particular hardware architecture used by the phone, and preinstalled by the phone vendor.

  Also sitting on top of the kernel is the Android runtime, including the Dalvik virtual machine and the core Java libraries. The Dalvik VM is Google’s implementation of Java, optimized for mobile devices. All the code you write for Android will be written in Java and run within the VM. 

  Sitting above the native libraries and runtime, you’ll find the Application Framework layer. This layer provides the high-level building blocks you will use to create your applications. The framework comes preinstalled with Android, but you can also extend it with your own components as needed.

  A few objects are defined in the Android SDK that every developer needs to be familiar with. The most important ones are activities, intents, services, and content providers. 

  In addition, access to certain critical operations are restricted, and you must specifically ask for permission to use them in a file named Android-Manifest.xml. When the application is installed, the Package Manager either grants or doesn’t grant the permissions based on certificates and, if necessary, user prompts. Here are some of the most common permissions you will need:

  • INTERNET: Access the Internet.
  • READ_CONTACTS: Read (but don’t write) the user’s contacts data.
  • WRITE_CONTACTS: Write (but don’t read) the user’s contacts data.
  • RECEIVE_SMS: Monitor incoming SMS (text) messages.
  • ACCESS_COARSE_LOCATION: Use a coarse location provider such as cell towers or wifi.
  • ACCESS_FINE_LOCATION: Use a more accurate location provider suchas GPS. 

转载于:https://www.cnblogs.com/zhtf2014/archive/2010/01/08/1642663.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值