Android程序授权。强悍还是恐怖?

打开android的developer首页,http://code.google.com/intl/zh-CN/android/,最显眼的位置写着“应用程序实在平等的条件下创建的”,这是多少J2ME开发人员梦寐以求的待遇。长久以来MIDP的程序都被当作二等公民看待,孱弱的KVM只能让你画个界面、连个HTTP/Socket之类的,这样弱智的API让你只能做点手机游戏、网络记事本之类聊胜于无的东西。你想操作通信录?短信?电话记录?洗洗歇了吧,诺、摩、索、苹都不会理你的。那样的开放性也只有在今天的android平台上才出现端倪。越来越强大的手持设备,应该留给开发者和用户更多的利用空间,发挥他们潜在水下那90%的强悍能力。

 

google有一份user permission列表,列举的是android平台允许的,需要在签名文件(AndroidManifest)中声明后就可以使用的权力。这份列表很长,这里只列举可以让你有兴趣的部分。看看google打算给你的应用怎样的平等吧:

 

ACCESS_COARSE_LOCATION

Allows an application to access coarse (e.g., Cell-ID, WiFi) location

 

ACCESS_FINE_LOCATION

Allows an application to access fine (e.g., GPS) location

 

ACCESS_NETWORK_STATE

Allows applications to access information about networks

 

ADD_SYSTEM_SERVICE

Allows an application to publish system-level services

 

BLUETOOTH

Allows an application to update the collected battery statistics

 

BRICK

Required to be able to disable the device (very dangerous!).

 

CALL_PHONE

Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed.

 

CALL_PRIVILEGED

Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed

 

CAMERA

Required to be able to access the camera device.

 

INJECT_EVENTS

Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.

 

READ_CONTACTS

Allows an application to read the user's contacts data.

 

READ_SMS

Allows an application to read SMS messages.

 

RECEIVE_MMS

Allows an application to monitor incoming MMS messages, to record or perform processing on them.

 

RECEIVE_SMS

Allows an application to monitor incoming SMS messages, to record or perform processing on them.

 

RECORD_AUDIO

Allows an application to record audio

 

SEND_SMS

Allows an application to send SMS messages

 

VIBRATE

Allows access to the vibrator

 

WRITE_CONTACTS

Allows an application to write (but not read) the user's contacts data.

 

WRITE_SMS

Allows an application to write SMS messages

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值