README.md
1# eTS Resource Management
2
3
4
5### Introduction
6
7This sample shows how to call resource management APIs in eTS to obtain strings and images.
8
9### Usage
10
11The application page displays the calling of resource management APIs, such as obtaining a string or string array, obtaining a string in singular or plural form represented by the specified ID based on the quantity specified, setting the number of bytes of the media file content corresponding to the specified resource ID, and setting the length of the Base64 string of the image resource corresponding to the specified resource ID, and obtaining the device status and capabilities supported by the device.
12
13
14
15### Constraints
16
17This sample can only be run on standard-system devices.
18
README_zh.md
1# 资源管理器
2
3### 介绍
4
5本示例调用资源管理@ohos.resourceManager的API接口实现字符串和图片资源信息的获取。
6
7使用说明:
8
91. 应用界面中展示了资源管理API各类接口的调用,包括读取的字符串、字符串数组、根据指定数量获取指定ID字符串表示的单复数字符串,指定资源ID对应的媒体文件内容字节数、指定资源ID对应的图片资源Base64编码字符串的长度,以及获取设备状态和设备支持的能力。
10
11### 效果预览
12
13
14
15### 相关权限
16
17不涉及。
18
19### 依赖
20
21不涉及。
22
23### 约束与限制
24
251.本示例仅支持标准系统上运行。
26
272.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022)才可编译运行。
28
293.本示例仅支持API9版本SDK,版本号:3.2.10.6。