HarmonyOS is a family of operating systems developed by Huawei to developer as part of the initiatives for the all-scenario strategy, adaptable to mobile office, fitness and health, social communication, and media entertainment, to name a few. HarmonyOS is built on a distributed architecture designed based on a set of system capabilities. It is able to run on a wide range of device forms, including mobile phones, tablets, wearables, smart TVs, head units.
Questions tagged [harmonyos]
131 questions
0
votes
1 answer
What is the HarmonyOS equivalent of android.graphics.Typeface in Android?
I am working on a project creating custom fonts using .ttf files. Android uses Typeface class to specify the intrinsic style of a font.
What is the HarmonyOS alternative for this?

OxO
- 27
- 3
0
votes
2 answers
How to add image to emulator's gallery in HarmonyOS?
I am testing a HarmonyOS application and want to add an image to the emulator's gallery.
In Android Studio, we can send any file into the android emulator via drag-n-drop action,
but drag-n-drop isn't working here.
What is the alternative for this…

Jaswanth
- 31
- 7
0
votes
2 answers
when I use unit(i.e. vp, fp, px) with value in xml file then respective attribute not working ? (HarmonyOS)
I am creating a custom component in HarmonyOS using Java SDK, where I created some attributes for my custom component.
Now the problem is "whenever I am trying to set any value in attribute with unit(i.e. vp, fp, px)" then, Respective attribute is…

C2C
- 85
- 6
0
votes
1 answer
What is the alternative in HarmonyOS for valueAnimator.removeAllUpdateListeners() in Android OS?
In Android while finishing an animation on valueAnimator, we do the following:
void end() {
// Code for final state of the animation
valueAnimator.removeAllUpdateListeners();
}
What is the alternative for the above code snippet in…

Narla Komal Kalyan
- 37
- 4
0
votes
2 answers
How to change Element color in HarmonyOS?
I am creating a custom component in HarmonyOS using Java SDK, Where I need to change Element color at runtime.
In Android we have setTint() api to change color of drawable at runtime.
for ex:
drawable.setTint(Color.BLUE); //Require Api level…

C2C
- 85
- 6
0
votes
1 answer
How to automatically slide the pages in page slider HarmonyOS?
I have implemented a custom page slider indicator inspired by ArcPageIndicator in HarmonyOS and to test that I wanted to slide the pages using the page slider automatically. How Can I do that in HarmonyOS?

YOGESH SANKU
- 51
- 5
0
votes
1 answer
How to set the color of a text in TextField for Harmony OS?
How to set the color of a text in TextField? For example, set the "Harmony" font in the "Hello Harmony" field to red The Android code is implemented as follows:
SpannableStringBuilder ssb = new SpannableStringBuilder(); ssb.setSpan(new…

Zinna
- 1,947
- 2
- 5
- 20
-1
votes
1 answer
DevEcoStudio - Huawei Login: Failed to sign the Agreement
Hello Huawei Developers,
While trying to run a simulator for a HarmoyOS project in DevEcoStudio, I need to do a Huawei login and sign in with Huawei developer credentials.
Ideally, it should log in with the username/password passed and show the list…

Kanak Sony
- 1,570
- 1
- 21
- 37
-1
votes
3 answers
Not able to start SonarQube server after running StartSonar.bat file
I tried running StartSonar.bat file, but it would stop or close abruptly.
Below is the snapshot of sonarqube server error:

Vidya Akbar
- 37
- 1
- 5
-2
votes
1 answer
Does HarmonyOS video support URL playback and how to develop?
I am interested in Huawei HarmonyOS, after reading some online documents of HarmonyOS, I am still not clear whether the OS supports online URL playback. If it is supported, how to develop it. Can someone help?

Zinna
- 1,947
- 2
- 5
- 20
-3
votes
1 answer
Can anyone work in HarmonyOS lib development?
I am a fresher who only knows only java. can I work on HarmonyOS lib development or else I should know the android development to work on HarmonyOS. Can anyone explain it, please?
Where I can learn?

MobPsycho
- 47
- 3