A Developer Day: HarmonyOS OBS Album Case & AI DevSpace
Today (Nov 10, 2026) I worked through the Huawei Cloud developer daily tasks. This is a short note on what I actually did and saw — no more, no less.
Check-in
I signed in on the Grow Center at developer.huaweicloud.cn/grow. This is my second consecutive day, and the check-in added 10 points to my account (longer1996).
A HarmonyOS case: a personal cloud album on OBS
From the HarmonyOS Development Practice Center I opened the case “用OBS打造个人云相册app” and read it through. The case builds a HarmonyOS app that backs up photos and videos from the device into the user’s own OBS bucket and lets you browse the cloud objects. A few things that stood out to me:
- It uses OBS Header signature authentication, and the docs point out that the keys are saved in plaintext in the app sandbox preferences, so they are only for teaching and debugging.
- Backup runs file by file with progress, and completed files are skipped on later runs based on target, MD5, and the cloud ETag.
- A single upload or preview is limited to 64 MiB, and the preview disk cache is capped at 128 MiB.
- The case is explicit that it does not do background scheduled backup or byte-level resumable upload. I like that honesty: it tells you where the boundary is before you build on it.
I have not run the sample end to end yet — I read the set-up steps (creating a private OBS bucket and getting the four app settings: AK, SK, Endpoint, and bucket name) — so this is a reading note, not a run report.
AI DevSpace (trial version)
I entered the AI DevSpace trial from the Grow Center. It starts a fresh container with about three hours left, and the trial container is released when time runs out, so files are not kept. In AI Shell I asked for a recommendation for a lightweight web app deployment plan. The answer compared four paths: OBS static website hosting (cheapest for a pure front end), ECS with Nginx (the classic choice when you need a backend runtime and full OS control), CCI serverless containers (pay for actual run time, no cluster to manage), and FunctionGraph (event-driven serverless APIs billed per call). For a personal site, OBS hosting costs almost nothing; for anything with a backend, the real choice is between a small ECS and CCI.
One thing that did not work today
The task list also asks for starring a HarmonyOS case repository on GitCode. I tried for harmony-practice-center/HarmonyOS-APP-OBSCloudAlbum, but the Huawei ID authorization step shows a slider puzzle, and after many careful attempts it kept being rejected, so I stopped rather than forcing it. I will come back to it another day.
Closing
Points I have seen credited so far today: check-in +10 and case browsing +10. The AI DevSpace visit and this article are still to be confirmed in the points history. Small steps, but the habit is the point: one case read, one tool tried, one note written.
- 点赞
- 收藏
- 关注作者
评论(0)