Sometimes I can start BlackBerryEdit, but sometimes I crash.
And the log of error when launched BlackBerry Edit by above code (AppKinetics)
Process: com.blackberry.docstogo.gdapp, PID: 20982
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.artifex.sonui.editor.NUIView.endDocSession(boolean)' on a null object reference
at com.artifex.sonui.editor.NUIActivity.onNewIntent(Unknown Source:51)
at com.artifex.sonui.AppNUIActivity.onNewIntent(Unknown Source:56)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1315)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1327)
at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3108)
at android.app.ActivityThread.performNewIntents(ActivityThread.java:3123)
at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3139)
at android.app.ActivityThread.-wrap15(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1775)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
and the log which i used GDServiceError to throw error message "Enterprise user number does not match"
Questions » Recent Q&A » BlackBerry Edit will crash when transfer file via AppKinetics
BlackBerry Edit will crash when transfer file via AppKinetics
I refered this document :
https://developer.blackberry.com/devzone/files/blackberry-dynamics/android/namespacecom_1_1good_1_1gd_1_1icc.html
My code used to transfer file to BlackBerry Edit via AppKinetics :
// Uses BlackBerry Dynamics AppKinetics service to securely send the file to BlackBerry Bridge.
com.good.gd.file.File srcFile = new com.good.gd.file.File(relativePathToContainerRoot);
Vector<GDServiceProvider> providers = GDAndroid.getInstance().getServiceProvidersFor(
EDIT_FILE_SERVICE,
SERVICE_VERSION,
GDServiceType.GD_SERVICE_TYPE_APPLICATION);
Log.i(TAG, parseServiceDetails(providers));
try {
GDServiceClient.sendTo(targetAppName,
EDIT_FILE_SERVICE,
SERVICE_VERSION,
SERVICE_METHOD,
null,
new String[]{srcFile.getAbsolutePath()},
GDICCForegroundOptions.NoForegroundPreference);
} catch (final GDServiceException gdServiceException) {
Log.e(TAG, "CopyInterContainer failed ", gdServiceException);
}
Sometimes I can start BlackBerryEdit, but sometimes I crash.
And the log of error when launched BlackBerry Edit by above code (AppKinetics)
Process: com.blackberry.docstogo.gdapp, PID: 20982
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.artifex.sonui.editor.NUIView.endDocSession(boolean)' on a null object reference
at com.artifex.sonui.editor.NUIActivity.onNewIntent(Unknown Source:51)
at com.artifex.sonui.AppNUIActivity.onNewIntent(Unknown Source:56)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1315)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1327)
at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3108)
at android.app.ActivityThread.performNewIntents(ActivityThread.java:3123)
at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3139)
at android.app.ActivityThread.-wrap15(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1775)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
and the log which i used GDServiceError to throw error message "Enterprise user number does not match"