openharmony 鸿蒙 faqs-graphics

Graphics Development How do I obtain the DPI of a device? (API version 9) Solution Import the @ohos.display module and call the getDefaultDisplaySync() API. Example import display from '@ohos.display'
阅读全文

openharmony 鸿蒙 faqs-file-management

File Management Development What if I failed to open the URI returned by picker with the read/write permissions? (API version 10) Symptom When fs.openSync() with mode set to OpenMode.READ_WRITE is cal
阅读全文