[Xperia Z2 Android Development] Knutselmaaster:
Thank you, that certainly is a lot more practical.

Here is the log:

06-04 13:25:58.280 E/QCOM PowerHAL( 2664): Failed to acquire lock.
06-04 13:25:58.280 E/QCOM PowerHAL( 2664): Failed to acquire lock.
06-04 13:25:58.516 E/AndroidRuntime(19643): FATAL EXCEPTION: main
06-04 13:25:58.516 E/AndroidRuntime(19643): Process: com.sonymobile.calendar, PID: 19643
06-04 13:25:58.516 E/AndroidRuntime(19643): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sonymobile.calendar/com.sonymobile.calendar.EventInfoActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.ComponentName.getPackageName()' on a null object reference
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2464)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.ActivityThread.access$900(ActivityThread.java:154)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.os.Handler.dispatchMessage(Handler.java:102)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.os.Looper.loop(Looper.java:234)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.ActivityThread.main(ActivityThread.java:5526)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at java.lang.reflect.Method.invoke(Native Method)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-04 13:25:58.516 E/AndroidRuntime(19643): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.ComponentName.getPackageName()' on a null object reference
06-04 13:25:58.516 E/AndroidRuntime(19643):	at com.sonymobile.calendar.utils.PermissionUtils.isSendSomcEmailGranted(PermissionUtils.java:115)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at com.sonymobile.calendar.EventInfoFragment.initAccountType(EventInfoFragment.java:553)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at com.sonymobile.calendar.EventInfoFragment.init(EventInfoFragment.java:739)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at com.sonymobile.calendar.EventInfoFragment.onCreateView(EventInfoFragment.java:464)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.Fragment.performCreateView(Fragment.java:2220)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1953)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:152)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.Activity.performCreateCommon(Activity.java:6279)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.Activity.performCreate(Activity.java:6287)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
06-04 13:25:58.516 E/AndroidRuntime(19643):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
06-04 13:25:58.516 E/AndroidRuntime(19643):	... 9 more

And 1 question:

When I charge with the magnetic cable the screen won't remain off, when I press power it goes off but turns back on right away. Is that a setting, a feature or a bug?

Thanks