Bài giảng Lập trình cho thiết bị di động: Chương 6 - Trần Duy Thanh

Bài giảng Lập trình cho thiết bị di động: Chương 6 trình bày các nội dung sau: Telephony APIs, Working with Telephony Utilities, Making and Receiving Phone Calls, Using Global Positioning Services, Mapping Locations, Geocoding Locations,. | 1 API 1 Telephony APIs 2 LBS APIs 1 2 1. Telephony APIs Working with Telephony Utilities Using SMS Making and Receiving Phone Calls 3 Working with Telephony Utilities If your application uses telephony features, make sure you set the tag with the feature (or one of its sub-features) in your application’s manifest file to ensure your application is installed only on compatible devices. Read more Hardware Features: 4 Working with Telephony Utilities Gaining Permission to Access Phone State Information 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. Read more details: 5 Working with Telephony Utilities Cont 6 Working with Telephony Utilities 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. 7 Working with Telephony Utilities Cont 8 Working with Telephony Utilities Cont 9 Working with Telephony Utilities Get telephony service Add the flag to the listener described earlier and implement the onServiceStateChanged method, which receives an instance of the ServiceState object. 10 Working with Telephony Utilities Cont 11 Working with Telephony Utilities Working with Phone Numbers The resulting output to the log would be the string . | 1 API 1 Telephony APIs 2 LBS APIs 1 2 1. Telephony APIs Working with Telephony Utilities Using SMS Making and Receiving Phone Calls 3 Working with Telephony Utilities If your application uses telephony features, make sure you set the tag with the feature (or one of its sub-features) in your application’s manifest file to ensure your application is installed only on compatible devices. Read more Hardware Features: 4 Working with Telephony Utilities Gaining Permission to Access Phone State Information 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. Read more details: 5 .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.