1# Creating an Application Multi-Instance 2Multi-instance allows an application to run on multiple pages so that a user can log in multiple accounts and run the application at the same time without affecting each other. For example, a user can run several social accounts, or primary and secondary game accounts simultaneously without frequent log-in and log-out. 3 4Multiple application process pages on the home screen are independent in terms of the running, notification, and more. Instances share data with each other and can be switched using accounts. 5 6Relationship between multiple application instances: 7- The application icons of multiple instances are the same. 8- Instances share data and can be switched using accounts. 9 10## Constraints 11 12Application multi-instance can run on only 2-in-1 devices. 13 14## How to Develop 151. Configure the multi-instance. 16 17 Configure the [multiAppMode](app-configuration-file.md#multiappmode) field in the **App/app.json5** configuration file in the project. The code snippet is as follows: 18 ```json 19 { 20 "app": { 21 "multiAppMode": { 22 "multiAppModeType": "multiInstance", 23 "maxCount": 5 24 } 25 } 26 } 27 ``` 28 292. Create a multi-instance. 30 31- Build and package the configured project and install it on the device. 32- Right-click an application icon on the home screen to open an application process. Then right-click the application icon again and choose **Open**. 33In this case, two application process pages of a same application are displayed on the home screen. 34