Aviary SDK在startActivityForResult上崩溃

时间:2014-11-10 13:19:13

标签: android aviary

我已在我的应用程序中集成了用于照片编辑的Aviary SDK。但是当我开始意图结果时,应用程序每次都崩溃了。 请提供任何解决方案。

以下是代码。

Intent newIntent = new Intent(thisContext, FeatherActivity.class );
newIntent.setData( Uri.parse(image_path));
newIntent.putExtra( Constants.EXTRA_IN_API_KEY_SECRET, api_secret_key );
startActivityForResult( newIntent, 1 );


11-10 18:01:05.681: E/AndroidRuntime(18797): FATAL EXCEPTION: main
11-10 18:01:05.681: E/AndroidRuntime(18797): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fourspan.ecoviate/com.aviary.android.feather.FeatherActivity}: java.lang.NullPointerException
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.ActivityThread.access$800(ActivityThread.java:139)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.os.Handler.dispatchMessage(Handler.java:102)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.os.Looper.loop(Looper.java:136)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.ActivityThread.main(ActivityThread.java:5086)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at java.lang.reflect.Method.invokeNative(Native Method)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at java.lang.reflect.Method.invoke(Method.java:515)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
11-10 18:01:05.681: E/AndroidRuntime(18797): Caused by: java.lang.NullPointerException
11-10 18:01:05.681: E/AndroidRuntime(18797):    at com.aviary.android.feather.FeatherActivity.onContentChanged(FeatherActivity.java:916)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:293)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.Activity.setContentView(Activity.java:1937)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at com.aviary.android.feather.FeatherActivity.onCreate(FeatherActivity.java:556)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.Activity.performCreate(Activity.java:5248)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at   android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
11-10 18:01:05.681: E/AndroidRuntime(18797):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)

由于

0 个答案:

没有答案