Start a new topic
Text
Hello Olivier,
We have an implementation of setting configuration dynamically. that's working fine.
Now when When restarting the screen, it fails. As the package isn't closed properly.
I've gone through this: https://developer-support.myscript.com/support/discussions/topics/16000027345
and added waitForIdle() function. but it isn't working.
below code is of onDestroy() function of the fragment. where myScript is used.
(Note. its a fragment. not an activity.)
Can you help to resolve this issue? and provide the proper order for disposing objects.
Regards,
Mitesh
Dear Mitesh,
Thank you for contacting us.
Currently, as explained in the "Objects lifecycle" part of the documentation, all references shall be released: https://developer.myscript.com/docs/interactive-ink/1.3/android/fundamentals/interactive-ink-runtime/#objects-lifecycle.
In your case, can you please try to add "editor.setPart(null);" before closing the contentPackage? This should help.
Best regards,
Olivier
Mitesh Nandpal
Hello Olivier,
We have an implementation of setting configuration dynamically. that's working fine.
Now when When restarting the screen, it fails. As the package isn't closed properly.
I've gone through this: https://developer-support.myscript.com/support/discussions/topics/16000027345
and added waitForIdle() function. but it isn't working.
below code is of onDestroy() function of the fragment. where myScript is used.
(Note. its a fragment. not an activity.)
Can you help to resolve this issue? and provide the proper order for disposing objects.
Regards,
Mitesh
Dear Mitesh,
Thank you for contacting us.
Currently, as explained in the "Objects lifecycle" part of the documentation, all references shall be released: https://developer.myscript.com/docs/interactive-ink/1.3/android/fundamentals/interactive-ink-runtime/#objects-lifecycle.
In your case, can you please try to add "editor.setPart(null);" before closing the contentPackage? This should help.
Best regards,
Olivier
Olivier @MyScript
Dear Mitesh,
Thank you for contacting us.
Currently, as explained in the "Objects lifecycle" part of the documentation, all references shall be released: https://developer.myscript.com/docs/interactive-ink/1.3/android/fundamentals/interactive-ink-runtime/#objects-lifecycle.
In your case, can you please try to add "editor.setPart(null);" before closing the contentPackage? This should help.
Best regards,
Olivier