我将 Android Emulator 的语言环境更改为阿拉伯语,以测试我的应用程序的阿拉伯语版本。日期选择器如下图所示,
尽管 DatePicker 在我的应用程序的英文版中运行良好,但现在 t 给了我以下错误。
07-08 11:13:44.544: E/AndroidRuntime(696): FATAL EXCEPTION: main
07-08 11:13:44.544: E/AndroidRuntime(696): java.lang.NullPointerException
07-08 11:13:44.544: E/AndroidRuntime(696): at org.digitalhealthagency.elaj.gui.AppointmentReservationActivity$DoctorWorkingDaysTask.access$2(AppointmentReservationActivity.java:927)
07-08 11:13:44.544: E/AndroidRuntime(696): at org.digitalhealthagency.elaj.gui.AppointmentReservationActivity$5.onDateSet(AppointmentReservationActivity.java:454)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.app.DatePickerDialog.tryNotifyDateSet(DatePickerDialog.java:148)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.app.DatePickerDialog.onStop(DatePickerDialog.java:155)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.app.Dialog.dismissDialog(Dialog.java:326)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.app.Dialog.dismiss(Dialog.java:302)
07-08 11:13:44.544: E/AndroidRuntime(696): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:170)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.os.Handler.dispatchMessage(Handler.java:99)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.os.Looper.loop(Looper.java:137)
07-08 11:13:44.544: E/AndroidRuntime(696): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-08 11:13:44.544: E/AndroidRuntime(696): at java.lang.reflect.Method.invokeNative(Native Method)
07-08 11:13:44.544: E/AndroidRuntime(696): at java.lang.reflect.Method.invoke(Method.java:511)
07-08 11:13:44.544: E/AndroidRuntime(696): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-08 11:13:44.544: E/AndroidRuntime(696): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-08 11:13:44.544: E/AndroidRuntime(696): at dalvik.system.NativeStart.main(Native Met
hod)
我错过了我应该为阿拉伯语版本做的事情吗?