当我关闭后退按钮应用程序上的窗口时,强制关闭,仅在Android 7.0.0上会发生此问题。
$.Win.addEventListener('android:back', function(e) { if ($.Win != null && $.Win != undefined) { $.Win.close(); } });
04-10 11:52:07.964: E/AndroidRuntime(18067): FATAL EXCEPTION: main
04-10 11:52:07.964: E/AndroidRuntime(18067): Process: com.getattendantapp, PID: 18067
04-10 11:52:07.964: E/AndroidRuntime(18067): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
04-10 11:52:07.964: E/AndroidRuntime(18067): at android.view.ViewConfiguration.get(ViewConfiguration.java:468)
04-10 11:52:07.964: E/AndroidRuntime(18067): at android.view.View.<init>(View.java:4841)