Pro Android with Kotlin


Table 7-2. (continued ) Category


Download 5.42 Mb.
Pdf ko'rish
bet102/223
Sana04.11.2023
Hajmi5.42 Mb.
#1746807
1   ...   98   99   100   101   102   103   104   105   ...   223
Bog'liq
@de android telegram Pro Android with Kotlin Developing Modern Mobile

Table 7-2. (continued )
Category
Permission...
...Implies Feature
Telephony
CALL_PHONE
android.hardware.telephony
CALL_PRIVILEGED
android.hardware.telephony
MODIFY_PHONE_STATE
android.hardware.telephony
PROCESS_OUTGOING_CALLS
android.hardware.telephony
READ_SMS
android.hardware.telephony
RECEIVE_SMS
android.hardware.telephony
RECEIVE_MMS
android.hardware.telephony
RECEIVE_WAP_PUSH
android.hardware.telephony
SEND_SMS
android.hardware.telephony
WRITE_APN_SETTINGS
android.hardware.telephony
WRITE_SMS
android.hardware.telephony
Wi-Fi
ACCESS_WIFI_STATE
android.hardware.wifi
CHANGE_WIFI_STATE
android.hardware.wifi
CHANGE_WIFI_MULTICAST_STATE
android.hardware.wifi
Note Current versions of dumpsys will show both requested and granted permissions. Do not 
get confused by old blog entries about that matter.


115
© Peter Späth 2018 
P. Späth, Pro Android with Kotlin, 
https://doi.org/10.1007/978-1-4842-3820-2_8
Chapter
8
APIs
The subject of this chapter is to introduce APIs, which are the cornerstones of your app.
The APIs include the following:

Databases

Scheduling

Loaders

Notifications

Alarm Manager

Contacts

Search Framework

Location and Maps
Databases
Android provides two realms for dealing with databases: either you use the SQLite library 
included in the Android OS, or you use the Room architecture component. The latter is 
recommended since it adds an abstraction layer between the database and the client
simplifying the mapping between Kotlin objects and database storage objects. You can find 
exhaustive information about SQLite in the online docs and lots of examples on the Web. In 
this book, we talk about Room since the separation of concerns induced by the abstraction 
helps you to write better code. Also, since Room helps to avoid boilerplate code, you can 
shorten your database code significantly if you use Room instead of SQLite.



Download 5.42 Mb.

Do'stlaringiz bilan baham:
1   ...   98   99   100   101   102   103   104   105   ...   223




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling