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
5
votes
2 answers
What is the equivalent of view.postDelayed(Runnable action, long delayMillis) in harmonyos?
I am creating a custom component in HarmonyOS using Java SDK, Where I have to perform some task after some delay with Component instance.
In Android, we have postDelayed(Runnable action, long delayMillis) method in View class. So we can achieve…

Shivam Jamaiwar
- 524
- 1
- 4
- 14
5
votes
2 answers
What google services are banned in Harmony OS (here is a list that I have used in my android app.)
I need to upload my android apk file in harmony os and as google services are banned in this platform, I would have to use the alternative platform. Here is a list of google services that I have used. Please help me to distinguish what google…

viper
- 1,836
- 4
- 25
- 41
4
votes
0 answers
How to start the "Users & accounts" settings page?
I'd like to show the sync settings for an AccountManager / SyncAdapter account - and the account is even created by the app which tries to show it (the content authorities would also match). But how to indirectly start the…

Martin Zeitler
- 1
- 19
- 155
- 216
4
votes
1 answer
Generate HarmonyOS (Huawei) build from Flutter project
I am working on one Flutter project. In which, We want to generate builds of Android, iOS, and HarmonyOS (Huawei). But I am not sure does Flutter supports this OS or not. I went through some of the stuff on the internet but was unable to figure out…

Jayesh
- 41
- 1
- 3
4
votes
1 answer
One app for mobile devices and TV's in Huawei AppGallery
My app is released in Huawei AppGallery for mobile devices and tablets.
But my app has both interfaces for mobile and TV.
I see that it's not possible to release one app for all device types like it is working on Google Play Store.
I tried to create…

Andrey M.
- 41
- 4
4
votes
2 answers
How to detect double-tap in custom component in HarmonyOS?
I am creating a custom component in HarmonyOS using Java SDK, Where I have to perform some task on double-tap. But I am not able to detect double-tap event.
In Android, with the help of GestureDetector class we can detect double-tap event as…

Shivam Jamaiwar
- 524
- 1
- 4
- 14
4
votes
1 answer
HarmonyOS wearable vibrator not activating
I'm creating a HarmonyOS Wearable app using the JS Framework and I want to use the vibrator. The watch definitely has a vibrator because I can feel it when I use the scroll weel in the settings app.
So I requested the system_grant…

Daniel
- 611
- 8
- 20
3
votes
1 answer
RxJava observeOn Main Thread in Android/HarmonyOS
I am developing Huawei HarmonyOS app, and I am trying to implement a base class for background tasks with RxJava. My problem is that I don't know how to observe on the main thread.
On regular Android I would use AndroidSchedulers.mainThread().
But…

Maros Zelo
- 53
- 7
3
votes
1 answer
Is it possible to send push notification from OneSignal to Harmony OS?
We will make an application which will run on Harmony OS devices, so is it possible to send push notifications from OneSignal to any Harmony OS devices.

Sevket Denek
- 33
- 3
3
votes
1 answer
How to get External and Internal storage directory path
I need to get External and Internal storage directory path to find it's size and I am not able to get the path. In android we have
android.os.Enviroment.getExternalStorageDirectory()

Raj Bhagat
- 81
- 5
3
votes
1 answer
Not able to set the HarmonyOS SDK location. What to do?
After installed DevEco studio. I have to setting up a new project but, Showing following error
Here I am not able to set the HarmonyOS SDK location, How to set sdk location?

Shivam Jamaiwar
- 524
- 1
- 4
- 14
3
votes
2 answers
What is the alternative class in Harmony OS for AccelerateInterpolator and OvershootInterpolator in Android OS?
I am writing a class in JAVA to port a library from Android to Harmony OS.
In the Android code given below for the method onSelectedY(boolean, float, int), it requires a constructor of the class AccelerateInterpolator to be added to a method
private…

Subham Karmakar
- 73
- 3
3
votes
1 answer
How to get the custom ROM/Android OS Name from Android programatically
I wish to receive the custom ROM/Android OS name from device e.g. Let’s say if device is:
Oppo -> ColorOS
OnePlus -> OxygenOS
Huawei -> HarmonyOS
I've used the following methods also, but no success.
Build.DISPLAY -> ONEPLUS…

Waqar UlHaq
- 6,144
- 2
- 34
- 42
2
votes
1 answer
Firebase AppCheck custom provider
Currently I'm trying to use a custom provider for AppCheck and according to documentation, this implementation can be used to verify other platforms than currently allowed, more specific:
You want to verify devices using platforms other than…

Cătălin Florescu
- 5,012
- 1
- 25
- 36
2
votes
2 answers
DevEcoStudio: No SDK file downloaded on installing DevEcoStudio
I have an issue in downloading SDK file in version 3.0.0.800. After I installed DevEcoStudio I realized that SDK file did not get installed with it. So when I go to "Configure-> Settings-> HarmonyOS Legacy SDK" it shoes error as "Network connection…

Muskan Khowala
- 49
- 3