6 - telephony apis và location base services apis

45 248 0
6 - telephony  apis và location base services apis

Đ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

                    !! !"#!!!"#$%&"'(&%) %*'+*%'*,%'& !$ !%& !'!(# )! !#%* %*-'%'*,%'%&"'. +, **#-!--# -!& !&#*#.& !  /   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

Mục lục

  • Slide 1

  • Slide 2

  • Slide 3

  • Slide 4

  • Slide 5

  • Slide 6

  • Slide 7

  • Slide 8

  • Slide 9

  • Slide 10

  • Slide 11

  • Slide 12

  • Slide 13

  • Slide 14

  • Slide 15

  • Slide 16

  • Slide 17

  • Slide 18

  • Slide 19

  • Slide 20

Tài liệu cùng người dùng

Tài liệu liên quan