Reputation: 133
I try to implement Aviary SDK in my Android app however everytime i try to run Aviary Intent i get following error:
Intent imageEditorIntent = new AdobeImageIntent.Builder(this)
.setData(imageUri)
.build();
startActivityForResult(imageEditorIntent, 12233);
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/com.adobe.creativesdk.aviary.AdobeImageEditorActivity}: java.lang.ClassCastException: com.xxx.XXXX cannot be cast to com.adobe.creativesdk.aviary.IAviaryClientCredentials
I found these article, and i've changed implemented interface but it dont help me. enter link description here How can i fix it? I follow documentation instruction but without success. Maybe there is some sample project with SDK and image editor ui?
Upvotes: 1
Views: 672
Reputation: 6795
In my case , I did not add android:name=".PACKAGE_NAME.MainApplication"
inside <application>
tag in AndroidManifest.xml
.
MainApplication.java
contains Aviary Client Credentials like below :
Upvotes: 0
Reputation: 1481
As a preliminary answer to your question, there is a sample project on GitHub that you can fork, clone, and run.
Instructions for using it are in the readme
.
build.gradle
app/build.gradle
app/src/main/AndroidManifest.xml
app/src/main/java/com/adobe/imageeditorui/MainApplication.java
Upvotes: 1