Android程式授權。強悍還是恐怖?

來源:互聯網
上載者:User

開啟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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.