1. Trang chủ
  2. » Công Nghệ Thông Tin

6 - telephony apis và location base services apis

45 251 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 45
Dung lượng 1,38 MB

Nội dung

                    !! !"#!!!"#$%&"'(&%) %*'+*%'*,%'& !$ !%& !'!(# )! !#%* %*-'%'*,%'%&"'. +, **#-!--# -!& !&#*#.& !  /   Gaining Permission to Access Phone State Information <uses-permission android:name= "android.permission.READ_PHONE_STATE" />  You can use the TelephonyManager object to retrieve the state of the phone and some information about the phone service itself, such as the phone number of the handset. %*-'*&%+. +, **#- ---*#  0   Cont…  1   Cont…  Listening for changes in the call state can enable an application to react appropriately to something the user might be doing. For instance, a game might automatically pause and save state information when the phone rings so that the user can safely answer the call.  An application can register to listen for changes in the call state by making a call to the listen() method of TelephonyManager.  2   Cont…  3   Cont…  4   / Add the PhoneStateListener.LISTEN_SERVICE_STATE flag to the listener described earlier and implement the onServiceStateChanged method, which receives an instance of the ServiceState object.  5   0 [...]... device 26 HO CHI MINH UNIVERSITY OF INDUSTRY 2 LBS APIs 2.1 Using Global Positioning Services 2.2 Geocoding Locations 2.3 Mapping Locations 27 HO CHI MINH UNIVERSITY OF INDUSTRY 2.1 Using Global Positioning Services Steps to determine device location: 1 Retrieve an instance of the LocationManager... /> . )! !#%* %* - '%'*,%'%&"'. +, ** #- ! -  -#   -! & !&#*#.& !  /   Gaining. service itself, such as the phone number of the handset. %* - '*&%+. +, ** #-   -  -  - *#  0   Cont…  1   Cont…  Listening. Permission to Access Phone State Information <uses-permission android:name= "android.permission.READ_PHONE_STATE" />  You can use the TelephonyManager object to retrieve the state

Ngày đăng: 06/07/2014, 18:35

TỪ KHÓA LIÊN QUAN

w