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
1
vote
1 answer
What is the other local host server for sonar, since local 9000 is not working?
What is the other local host server for sonar, since local 9000 is not working? Should the command prompt be running in the background while using the local host? Since whenever I try to open start sonar the command prompt automatically closes.

Sai Kumari
- 21
- 1
1
vote
1 answer
when setting up devecostudio freshers need to register as a huawei developer?its showing "age requirement not met while registering ,what to do now?
While setting up DevEco Environment, do we freshers also need to register as Huawei Developer? It's showing "age requirement not met" while registering, What to do now?

divya
- 21
- 1
1
vote
2 answers
Change language of texts in Previewer in DevEco
How do we change the language of the texts in the previewer ? Its Chinese for me at present and if I try to change it by Preview -> Language -> Select Language (eng_US) then I find a timeout error each time. PLease help me here.
Error Code after i…

rohangupta8756
- 55
- 4
1
vote
2 answers
GooglePlayServices's api isUserResolvableError return true also when is not a resolvable error?
At starting of my app I check if there are the playservices.
To complete the job I wrote a code like the following:
private fun checkPlayServices(): Boolean {
val apiAvailability = GoogleApiAvailability.getInstance()
val resultCode =…

aeroxr1
- 1,014
- 1
- 14
- 36
1
vote
1 answer
HUAWEI MatePad Pro runs 8G memory, and the system only runs one App. The App crashes when running less than 1G?
Operating environment:
Device information: HUAWEI MatePad Pro
Machine model: MRR-W29
System version: HarmonyOS 2.0.0
Problem: Running our app, using AndroidStudio, it crashed before 1GB of memory was available.
Crash log information:
Could not…

严学文
- 11
- 2
1
vote
3 answers
How to move from a AbilitySlice to a Ability in HarmonyOS?
I am trying to move from an AbilitySlice to an Ability. I tried the below code,
But was it not working as expected.
Operation systemOperation = new Intent.OperationBuilder()
.withBundleName(getBundleName())
…

Sahana G R
- 31
- 1
1
vote
2 answers
How to override the onDraw() function in Component for Harmony OS?
I can't find the onDraw() method in Component. Can someone explain to me how to override the onDraw method for Component in Harmony OS?

Shrey Shrivastava
- 51
- 3
1
vote
1 answer
What is the alternative in harmony OS for TableRow in android?
What can be used in place of TableRow in harmony OS?
It is a part of widget package in android.

yashrajgupta
- 21
- 1
1
vote
1 answer
How to change the animation of transition from one AbilitySlice to another AbilitySlice in HarmonyOS?
In Android, we can add the following statement to the onBackPressed() function to modify the animation of going back to the MainActivity from some other activity.
overridePendingTransition(android.R.anim.slide_in_left,…

OxO
- 27
- 3
1
vote
1 answer
How to save the state of the Custom Dialog?
In my project, I have created a custom dialog inside which, I have a color palette that is initialized with a particular color(say Yellow) already checked. If I click on any color(say Blue), a tick image will come on top of the Blue color and the…

anshulgoel72
- 61
- 1
1
vote
1 answer
How to transfer the display visuals of a component to a temporary canvas in Harmony OS?
In my project, I want to store the currently displayed component in a temporary canvas which I can later reuse. How can I achieve this in Harmony OS?

Shrey Shrivastava
- 51
- 3
1
vote
2 answers
Why creating Popup dialog with custom component passed in constructor showing blank Dialog when .show() is called?
I am developing a Harmony application where I want to create a popup dialog with a custom component.
I tried this
Component customComponent = LayoutScatter.getInstance(context)
.parse(ResourceTable.Layout_custom_dialog, null,…

alpesh kaushal
- 51
- 5
1
vote
1 answer
How to access Plurals in Java code for Harmony OS?
I have defined some strings which I can access using Resource Table. How can I define and use Plurals similarly?

Shrey Shrivastava
- 51
- 3
1
vote
1 answer
How can we Customize the title to the dialog?
I have created a custom dialog which is inflating a layout file in which I can add the components according to my need. I was wondering if I can also customize the dialog title. Like, I want to add some images along with the title. How can I do…

anshulgoel72
- 61
- 1
1
vote
1 answer
Is there any alternative for setWindowAnimations(Android) in Harmony OS?
I am developing a Harmony application and I want to animate the Dialog window
this code is from android and this type of animation I want to add
Window dialogWindow =…

alpesh kaushal
- 51
- 5