[Nexus 4 Android Development] PsyGik:
Crash on Lockscreen Wallpaper

[MENTION=5330727]andersonaragao[/MENTION],

Hey I see you implemented lockscreen wallpaper settings. But when choosing any image settings gives FC..log.. [edit..it happens when choosing image from QuickPic, gallery app works fine, but the crop area is in landscape.I think maybe it should come in portrait]

java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=201, result=-1, data=Intent { flg=0x1 }} to activity {com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:3392)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3435)
at android.app.ActivityThread.access$1300(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5088)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.content.ContentResolver.openInputStream(ContentResolver.java:613)
at android.provider.MediaStore$Images$Media.getBitmap(MediaStore.java:803)
at com.android.settings.cyanogenmod.LockscreenInterface.onActivityResult(LockscreenInterface.java:399)
at android.app.Activity.dispatchActivityResult(Activity.java:5513)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3388)
************at android.app.ActivityThread.handleSendResult(ActivityThread.java:3435)
************at android.app.ActivityThread.access$1300(ActivityThread.java:145)
************at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)
************at android.os.Handler.dispatchMessage(Handler.java:102)
************at android.os.Looper.loop(Looper.java:136)
************at android.app.ActivityThread.main(ActivityThread.java:5088)
************at java.lang.reflect.Method.invokeNative(Native Method)
************at java.lang.reflect.Method.invoke(Method.java:515)
************at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
************at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
************at dalvik.system.NativeStart.main(Native Method)

Do take a look into it. Thanks

Edit..when choosing Init.d Controller menu, settings FC..log..

java.lang.NullPointerException
at com.android.settings.n5x.InitD.saveAllPrefs(InitD.java:188)
at com.android.settings.n5x.InitD.access$600(InitD.java:35)
at com.android.settings.n5x.InitD$4.handleMessage(InitD.java:117)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5088)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
03-06 15:04:03.857 2894-4503/system_process E/InputDispatcher﹕ channel '42396aa0 com.android.settings/com.android.settings.Settings (server)' ~ Channel is unrecoverably broken and will be disposed!
03-06 15:04:03.857 2894-4503/system_process E/InputDispatcher﹕ channel '42396f88 Init.d Controller (server)' ~ Channel is unrecoverably broken and will be disposed!
03-06 15:04:03.857 2894-4503/system_process E/InputDispatcher﹕ channel '423971a8 com.android.settings/com.android.settings.SubSettings (server)' ~ Channel is unrecoverably broken and will be disposed!