文件最后提交记录最后更新时间
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
IssueNo: #I70TK9:【Sample】Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum适配400IDE Description: Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum adaptation to 400IDE. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
IssueNo: #I70TK9:【Sample】Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum适配400IDE Description: Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum adaptation to 400IDE. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
description: Add build-profile.json5 ! Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: taobohao <taobohao@huawei.com> 3 年前
revert sdk version 10->9 Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 3 年前
修复Telephony、Web、WindowManagement下的readme断链 Signed-off-by: zwx1126739 <zhanghong121@huawei.com> 2 年前
revert sdk version 10->9 Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 3 年前
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
IssueNo: #I70TK9:【Sample】Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum适配400IDE Description: Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum adaptation to 400IDE. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
IssueNo: #I70TK9:【Sample】Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum适配400IDE Description: Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum adaptation to 400IDE. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
IssueNo: #I70TK9:【Sample】Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum适配400IDE Description: Call/MobileNetwork/Observer/RadioTech/SimManager/MusicAlbum adaptation to 400IDE. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
新增Observer测试用例 Signed-off-by: yanhuan <yanhuan15@huawei.com> 3 年前
README.md

Observer

Overview

This sample demonstrates how to use observer APIs to subscribe to events of network status, signal status, call status, cellular data, and SIM card status changes.

Concepts

@ohos.telephony.observer

A module that allows you to register observers to subscribe to events of mobile network, signal, call, and SIM card status changes.

Required Permissions

The following permission must be declared in the module.json5 file:

ohos.permission.GET_NETWORK_INFO: Obtains the network status.

ohos.permission.READ_CALL_LOG: Obtains the call status.

How to Use

  1. Open the application and enable all event subscription switches.

  2. Enable or disable the mobile network once to trigger a network status change.

  3. Make a call to trigger a call status change.

  4. Remove and insert the SIM card to trigger a SIM card status and signal status change.

  5. Touch the Details button. A page is displayed, showing the related status change events.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample demonstrates the stage model, which supports only API version 9.

  3. This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run.