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
0
votes
1 answer

Can't run app on Huawei lite wearable (GT2 PRO): API error when installing on device

I am trying to write an app for my GT2 Pro but when I try to install my app with Huawei DevEco Assistant, it gives me the following error: Installation failed: 47. Invalid value entered for app.apiVersion Here is the steps I did: I created a…
0
votes
1 answer

How Much Resuablility can we have from Flutter (Dart Base Code) for Huawei- Harmony OS

I am working on Flutter with targets Android and iOS platform. There is also requests coming in for Harmony OS. Is it possible if we can reuse the Flutter Code to publish *.app file or can we utilize as wrapper to build solution separately for…
0
votes
1 answer

How to change language in DevEcoStudio IDE to english?

How to change the IDE language from Chinese to English in DevEcoStudio IDE?
ajith m
  • 31
  • 3
0
votes
1 answer

Checkstyle-IDEA Plugin incompatible with DevEcoStudio

I am trying to configure the Checkstyle-IDEA plugin With the latest version of DevEcoStudio but seems it is incompatible with the same. Steps I have performed in DevEcoStudio - Main Menu -> File->Settings->Plugins->Search Checkstyle, results in…
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
0
votes
1 answer

DevEcoStudio: DOWNLOAD_SDK_ERROR after upgrading to SDK 6

I have another issue after related question DevEcoStudio Version: 2.1 Release and 3.0 Beta 1 SDK: 6 Already updated compileSDKVersion version in project level and module level build.gradle files ohos { compileSdkVersion 6 defaultConfig { …
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
0
votes
2 answers

Can multiple directional layouts be created?

Using DevEco Studio can one directional layout be created in another directional layout ? If Yes how can we do that ?
0
votes
1 answer

Alternative for android callback function onSizeChanged()

Is there any alternative function for the function onSizeChanged() in android. It Is being used when the dimensions of the layout are changed.
0
votes
1 answer

How to set ACCELERATE interpolator for AnimatorValue object in harmonyOS?

I am porting one open sources library from Android to HarmonyOS where I have to set ACCELERATE interpolator for AnimatorValue object. The same thing in android using ValueAnimator object is done as below ValueAnimator animator = new…
0
votes
1 answer

How to add image inside a tab as a icon while developing Harmony application?

I want to add an image inside the tab and I have Image Resource Id but tab.setIconElement(Element) takes element. currently, I am trying like this tabList = (TabList) findComponentById(ResourceTable.Id_TabList); TabList.Tab tab = tabList.new…
0
votes
1 answer

How to add a component like a button, programmatically from the java code instead of adding it from XML?

I want to add a button programmatically from the java code rather than adding it from the XML file. How can I do that?
0
votes
1 answer

What is the alternative in harmony OS for Matrix.MTRANS_X or Matrix.MSCALE_X enums in android?

In Android for Matrix few enums are predefined such as MSCALE_X, MSCALE_Y, MTRANS_X, MTRANS_Y, MSCEW_X, MSCEW_Y. Do we have any such alternatives in Harmony OS?
0
votes
1 answer

How much 1px is with respect to fp in Harmony OS?

Can anyone tell px:fp ratio or code to convert fp to px. I am building a HarmonyOS application and I want to set the width of a component to 20fp but setWidth​(int width) takes width in px. Button button = new…
0
votes
1 answer

How to access the resources like string defined in string.json under element folder from the java code?

I have defined a string name and value in the string.json under the element folder. How to access those values in the java code?
0
votes
1 answer

What is the alternative in Harmony OS for TypedArray in Android?

In my project I want to retrieve the color value for the custom attributes at index. Like in android we have the TypedArray to do this functionality. final TypedArray typedArray = mContext.obtainStyledAttributes(attrs,…
0
votes
1 answer

What is the alternative method in HarmonyOS for imageview.getImageMatrix( ) in AndroidOS

In Android we will use getImageMatrix( ) method on imageView which returns view's optional matrix. This is applied to the view's drawable when it is drawn. If there is no matrix, this method will return an identity matrix. In Android: Matrix matrix…
1 2 3
8
9