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\"
how I can make my app crash by making exception in javascript level ?
You cannot handle js errors that causes the "Unfortunately, application has stopped" message, because they don't exist and are not javascript-related but Webview/plugin-related.
If yous see this kind of message after a js call, then it comes from the web view's javascript implementation, AKA Chrome's one or the plugin's native part. Javascript is sandboxed and should not produce such behaviours.