Questions tagged [harmonyos]

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.

131 questions
2
votes
1 answer

DevEcoStudio: Error after upgrading from SDK 5 to SDK6

I have upgraded HarmonyOS SDK from 5 to 6 in DevEcoStudio. I see SDK6 only under 'File -> Settings -> Appearance & Behavior -> System Settings -> HarmonyOS SDK' Now, when I try to open a project with SDK 5, DevEco asks me the following - After…
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
2
votes
2 answers

What is the alternative packages for R(android) to HarmonyOs and Displaymetrics to harmonyOS and some constants?

what should I do with the constants which are causing some problem.? import static android.net.ConnectivityManager.TYPE_BLUETOOTH; import static android.net.ConnectivityManager.TYPE_DUMMY; import static…
2
votes
2 answers

How to find the alternative class/method for harmonyOS in androidOs?

I am a fresher who works on HarmonyOS where we have to map android imports to respected to HarmonyOs using an excel sheet, which consists of alternative imports but some are missing in that Excel. where can I find all the alternative methods?
2
votes
1 answer

Failed to create MD5 hash for file entry_debug_unsigned_entry.apk as it does not exist. in DevEco Studio HarmonyOS

I'm trying to build my HarmonyOS app. It was working fine when suddenly windows defender gave me a message that it had found a threat, and directly after I get an error message: Failed to create MD5 hash for file…
2
votes
1 answer

How to implement page sliding for Harmony OS?

How can I implement page sliding for GridView items in Harmony OS(JAVA)? Here's a sample of my code. public class GridView extends TableLayout { public GridView(Context context) { super(context); } public GridView(Context…
Jamil
  • 66
  • 1
  • 7
2
votes
2 answers

Is there a design option for .xml in DevEco Studio?

In android studio, we get 2 options when we click on a .xml file. 1)Design 2)Test Do we have similar features in DevEco studio? I did not find the design option when I click on any .xml file.
Dev
  • 41
  • 2
2
votes
2 answers

JS component installation failed: While installing the JS sdk in DevEco studio

While installing the JS sdk in DevEco Studio, JS component installation failed with following error How to solve above error?
2
votes
2 answers

Can anyone help me with proxy server set up in setting Dev Eco Environment?

I am newly setting up Dev Eco on my Mac. Can anyone help me with the proxy server set up in setting Dev Eco Environment? Is it an important step for setting up my environment or can I skip it?
2
votes
1 answer

App Launch: The Huawei Lite Simulator supports only Lite projects

When trying to run my test app on a HVD emulator, I get the following error message: App Launch: The Huawei Lite Simulator supports only Lite projects. Meanwhile I've realized, that currently one can only use hardware or a remote emulator for such…
Martin Zeitler
  • 1
  • 19
  • 155
  • 216
2
votes
1 answer

This device type does not match the module profile. Error while Deploying HAP

I've set up HUAWEI DevEco Studio with HarmonyOS SDK, but fail to launch a newly created project: I'd suppose, that this might be a phone module, but I have tablet hardware. How I can change that - or which modules are suitable for a "large screen"?
2
votes
2 answers

How to dynamically change size of dialog box with respect to animating component set inside it in Harmony App Development?

I am creating Harmony Application. Here I am creating a common dialog and setting a custom component and using component.createAnimatorProperty() to create animator property and staring it. When I start animation only the component animates with…
2
votes
2 answers

Is there any alternative for invalidateSelf(Android) in HarmonyOS?

In my project, I want to trigger the implementation in draw() that is present in Element class. In android, we have invalidateSelf to trigger the drawToCanvas(). What is the alternative in HarmonyOS? animator.addListener(new…
2
votes
3 answers

How to display grid of images (GridLayout) in Harmony OS?

I am trying to use TableLayoutManager, to display images in grid view, in ListContainer. But, it is not displaying in the form of a grid of images, but, is displaying a list of images. For Eg code used is added below, ListContainer listContainer =…
2
votes
1 answer

What is the alternative in HarmonyOS for postDelayed() in android?

I am working on an HarmonyOS library that prompts users to review the app on the app gallery. I want to display a prompt thanking the user after he/she reviews the app and the prompt should fade after "int thanksDisplayTimeMs". In Android, it is…
2
votes
1 answer

What is the alternative method in Harmony OS for setFirstDayOfWeek() in DatePicker in Android OS?

I am writing a custom component that allows users to choose a date from the calendar using JAVA SDK. I want to set a day as the first day of the week(e.g. MONDAY), which would then display the calendar with that day as the first day of the week(the…
1
2
3
8 9