• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-822774

sceenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024735 187

README_zh.mdD12-May-20241,010 2513

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024379 1918

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本示例展示了在eTS中如何调用资源管理的API接口实现字符串和图片资源信息的获取。实现效果如下:
6
7![main](sceenshots/device/main.png)
8
9### 相关概念
10
11资源管理:资源管理模块,根据当前configuration(语言,区域,横竖屏,mccmnc)和device capability(设备类型,分辨率)提供获取应用资源信息读取接口。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.应用界面中展示了资源管理API各类接口的调用,包括读取的字符串、字符串数组、根据指定数量获取指定ID字符串表示的单复数字符串,指定资源ID对应的媒体文件内容字节数、指定资源ID对应的图片资源Base64编码字符串的长度,以及获取设备状态和设备支持的能力。
20
21### 约束与限制
22
231.本示例仅支持标准系统上运行。
24
252.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。