我上传照片到facebook的应用程序已停止工作,现在正在关闭。下面是强制关闭发生时的logcat。我无法深入解决问题所在。非常感谢任何帮助或指导。谢谢!
可以在https://github.com/adamwhiles/EasyPhotoUpload
查看完整代码**更新**我恢复了我的应用程序的早期版本,我知道其中一个正在运行但仍然遇到同样的问题。我想也许Facebook改变了一些东西。我使用其他不依赖于SSO的Facebook应用程序,但它们似乎仍然有效。
07-15 14:33:13.262: W/dalvikvm(636): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
07-15 14:33:13.323: E/AndroidRuntime(636): FATAL EXCEPTION: main
07-15 14:33:13.323: E/AndroidRuntime(636): java.lang.NullPointerException
07-15 14:33:13.323: E/AndroidRuntime(636): at libcore.net.UriCodec.decode(UriCodec.java:149)
07-15 14:33:13.323: E/AndroidRuntime(636): at java.net.URLDecoder.decode(URLDecoder.java:45)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.facebook.android.Util.openUrl(Util.java:182)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.facebook.android.Facebook.request(Facebook.java:751)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.adamwhiles.easyphotoupload.EasyPhotoUpload.uploadImage(EasyPhotoUpload.java:239)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.adamwhiles.easyphotoupload.EasyPhotoUpload.access$5(EasyPhotoUpload.java:233)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.adamwhiles.easyphotoupload.EasyPhotoUpload$2.onClick(EasyPhotoUpload.java:132)
07-15 14:33:13.323: E/AndroidRuntime(636): at android.view.View.performClick(View.java:3511)
07-15 14:33:13.323: E/AndroidRuntime(636): at android.view.View$PerformClick.run(View.java:14105)
07-15 14:33:13.323: E/AndroidRuntime(636): at android.os.Handler.handleCallback(Handler.java:605)
07-15 14:33:13.323: E/AndroidRuntime(636): at android.os.Handler.dispatchMessage(Handler.java:92)
07-15 14:33:13.323: E/AndroidRuntime(636): at android.os.Looper.loop(Looper.java:137)
07-15 14:33:13.323: E/AndroidRuntime(636): at android.app.ActivityThread.main(ActivityThread.java:4424)
07-15 14:33:13.323: E/AndroidRuntime(636): at java.lang.reflect.Method.invokeNative(Native Method)
07-15 14:33:13.323: E/AndroidRuntime(636): at java.lang.reflect.Method.invoke(Method.java:511)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-15 14:33:13.323: E/AndroidRuntime(636): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-15 14:33:13.323: E/AndroidRuntime(636): at dalvik.system.NativeStart.main(Native Method)
07-15 14:33:14.092: I/dalvikvm(636): threadid=3: reacting to signal 3
07-15 14:33:14.252: I/dalvikvm(636): Wrote stack traces to '/data/anr/traces.txt'