diff --git a/en/application-dev/dfx/apprecovery-guidelines.md b/en/application-dev/dfx/apprecovery-guidelines.md index b2992e7c9958f0a1ffd87db9e4549bf0187bad78..1863eac4f5c21bc0ab62c86a9aeef84b5e24018e 100644 --- a/en/application-dev/dfx/apprecovery-guidelines.md +++ b/en/application-dev/dfx/apprecovery-guidelines.md @@ -88,9 +88,9 @@ The following is an example of **MainAbility**: #### Importing the Service Package ```ts -import errorManager from '@ohos.app.ability.errorManager' -import appRecovery from '@ohos.app.ability.appRecovery' -import AbilityConstant from '@ohos.app.ability.AbilityConstant' +import errorManager from '@ohos.app.ability.errorManager'; +import appRecovery from '@ohos.app.ability.appRecovery'; +import AbilityConstant from '@ohos.app.ability.AbilityConstant'; ``` #### Actively Saving Status and Restoring Data diff --git a/en/application-dev/dfx/errormanager-guidelines.md b/en/application-dev/dfx/errormanager-guidelines.md index 631445b862097d5aa71320ff154d6e235660a95e..83f7067f4e9017171da233aee6dffa421907bfc5 100644 --- a/en/application-dev/dfx/errormanager-guidelines.md +++ b/en/application-dev/dfx/errormanager-guidelines.md @@ -36,8 +36,8 @@ When an asynchronous callback is used, the return value can be processed directl ## Development Example ```ts -import Ability from '@ohos.application.Ability' -import errorManager from '@ohos.application.errorManager' +import UIAbility from '@ohos.app.ability.UIAbility'; +import errorManager from '@ohos.app.ability.errorManager'; var registerId = -1; var callback = { diff --git a/en/application-dev/reference/apis/js-apis-system-location.md b/en/application-dev/reference/apis/js-apis-system-location.md index 1226519b952822aca6d4dc25973af9ca6019783e..140e3bd3d317eefd941515144c1439f8f43bf8d6 100644 --- a/en/application-dev/reference/apis/js-apis-system-location.md +++ b/en/application-dev/reference/apis/js-apis-system-location.md @@ -85,7 +85,7 @@ getLocationType(Object): void Obtains the supported location types. > **NOTE** -> This API is deprecated since API version 9. The location subsystem supports only two location types: GNSS positioning and network positioning. No APIs will be provided to query the supported location types. +> This API is deprecated since API version 9. The location subsystem supports only two location types: GPS positioning and network positioning. No APIs will be provided to query the supported location types. **System capability**: SystemCapability.Location.Location.Lite @@ -101,7 +101,7 @@ Obtains the supported location types. | Name| Type| Description| | -------- | -------- | -------- | -| types | Array<string> | Available location types, ['gnss', 'network']| +| types | Array<string> | Available location types, ['gps', 'network']| **Example**