Intent and Serialization in DevEco

91 Views Asked by At

While creating a user info card in DevEco Studio we need to begin with empty ability or anything else ? If we begin with empty ability , there's already an intent present, creating a new one shows error !

2

There are 2 best solutions below

0
On BEST ANSWER

You could follow this official documentation to develop service widget.

enter image description here

If the problem persists, please provide error logs during service widget creation for us to check.

1
On

All applications start with main Ability and the UI is handled in Ability Slice. Also refer these developer links for more information, if you have more concerns, lets have a call and discuss

https://developer.harmonyos.com/en/docs/documentation/doc-guides/ability-ability-overview-0000000000029852 https://developer.harmonyos.com/en/docs/documentation/doc-guides/ui-java-overview-0000000000500404

Reference as answered: https://github.com/applibgroup/HarmonyOS-Knowledgebase/issues/79