• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-932806

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024961 1910

README_zh.mdD12-May-20241.1 KiB3217

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024400 2019

README.md

1# Radio
2
3### Introduction
4
5This sample uses eTS to show how to use the radio function of the telephony service to obtain information, including the radio access technology, network status, network selection mode, ISO country code, signal strength list, and whether the radio function is enabled.
6
7### Usage
8
91. When you tap **SIM1 status**, information including the radio access technology, registered network signal strength list, network selection mode, and ISO country code of SIM card 1 will be displayed on the screen.
10  The information will disappear if you tap on the screen again. The case is the same as you tap **SIM2 status**.
11
122. **NetworkState** displays information about the network status.
13
143. **IsRadioOn** indicates whether the radio function is enabled. The value **true** indicates that the radio function is enabled, and the value **false** indicates the opposite.
15
16### Constraints
17
18This sample can only be run on standard-system devices.
19

README_zh.md

1# 网络搜索
2
3### 简介
4
5本示例通过eTS来展示电话服务中网络搜索功能,包含无线接入技术、网络状态、选网模式、ISO国家码、信号强度信息列表及Radio是否打开。实现效果如下:
6
7![](screenshots/device/main.png)
8
9### 相关概念
10
11获取当前接入的CS域和PS域无线接入技术、获取网络状态、获取当前选网模式、获取注册网络所在国家的ISO国家码、判断主卡的Radio是否打开等。
12
13### 相关权限
14
15获取网络信息权限:ohos.permission.GET_NETWORK_INFO
16
17### 使用说明
18
191.点击**SIM1 status**,弹出面板显示卡1的无线接入技术、注册网络信号强度信息列表、选网模式、ISO国家码,
20  再次点击面板消失, 点击**SIM2 status**显示同理。
21
222.**NetworkState**显示网络状态相关信息。
23
243.**IsRadioOn**显示Radio是否打开,true为打开,false为关闭。
25
26### 约束与限制
27
281.本示例仅支持在标准系统上运行。
29
302.本示例需要插入SIM卡,目前该功能仅支持部分机型。
31
323.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。