openharmony 鸿蒙 faqs-startup

Startup Development How do I obtain the system version of a device? (API 9) Solution You can obtain the system version of a device through the osFullName attribute of the deviceInfo object. Sample Cod
阅读全文

openharmony 鸿蒙 faqs-sensor

Pan-Sensor Development Are the APIs used for obtaining PPG and ECG sensor data open to individual developers? (API version 9) Data collected by the PPG and ECG sensors of wearable devices is personal
阅读全文

openharmony 鸿蒙 faqs-sdk

SDK Usage What is the macro definition of the arm64-v8a/armeabi-v7a directory in CMake? (API version 9) Solution The arm64-v8a and armeabi-v7a directories are as follows: entry ├─ libs │ ├─ arm64-v8a
阅读全文

openharmony 鸿蒙 faqs-network-management

Network Management Development What are the data formats supported by extraData in an HTTP request? (API 9) Solution extraData indicates additional data in an HTTP request. It varies depending on the
阅读全文

openharmony 鸿蒙 faqs-multimedia

Multimedia Development How do I obtain the frame data of a camera when using the XComponent to display the preview output stream of the camera? (API version 9) Symptom Currently, the API does not supp
阅读全文

openharmony 鸿蒙 faqs-globalization

Resource Manager Development How do I read an XML file in rawfile and convert the data in it to the string type? (API 9) Solution Call getRawFileContent of the ResourceManager module to obtain the dat
阅读全文

openharmony 鸿蒙 faqs-compiler-runtime

Compiler and Runtime What should I do if a crash occurs when I obtain a string in JSON format from rawfile, convert the string into an object, and call the instance method? (API version 9) Symptom "js
阅读全文