I am developing a crash reporter plugin for phonegap android apps. For the testing purpose, I have to make my application crash & \"Unfortunately, application has stopped\"
You can make your cordova/ phonegap application crash by removing the permissions from the AndroindManifest.xml
file but still using them inside the app, these kind of exceptions mostly crash your application.
please note that (depending on your project structure) modifying the AndroindManifest.xml
file itself, it may be regenerated and change back to its correct state so you're gonna need to remove permission lines and then change the Androind.json
file in the plugins
folder befor build, appropriately to make your changes take effect.
I tested this process and it definitely works! :D
hope it helps, mim ;)