how to make my phonegap android app crash?

前端 未结 9 1480
萌比男神i
萌比男神i 2021-02-05 03:27

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\"

9条回答
  •  没有蜡笔的小新
    2021-02-05 03:35

    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.

提交回复
热议问题