# CustomActivityOnCrash **Repository Path**: HarmonyOS-tpc/CustomActivityOnCrash ## Basic Information - **Project Name**: CustomActivityOnCrash - **Description**: CustomActivityOnCrash is an OHOS library allows launching a custom activity when the app crashes, instead of showing the hated "Unfortunately, X has stopped" dialog. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-04-15 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: harmonyos-advanced **Tags**: None ## README # CustomActivityOnCrash CustomActivityOnCrash : CustomActivityOnCrash is an OHOS library allows launching a **custom activity when the app crashes**, instead of showing the hated "Unfortunately, X has stopped" dialog. # CustomActivityOnCrash includes : * Launch custom error ability when the app crashes in Main & background thread. * Launch default error ability, if custom error ability is not configured. # Usage Instructions A sample project which provides runnable code examples that demonstrate uses of the classes in this project is available in the entity/ folder. ### Launch custom error ability when the app crashes Create custom view in layout as shown below : ```