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\"
I strongly believe infinite loops won't work in this case. When you use it with PhoneGap, javascript is only a (safe) script language that cannot generate system-driven exceptions.
The best method is to run some native codes (problematic codes) under the help of another PhoneGap plugin. For example, you can do division by zero in objective-c and java native codes.