Indeed, at first sight, I do not see anything wrong in your code. When you say "it never show me "after waitForIdle"", do you mean the reocgnition still runs? Indeed, it has to be remembered that the recognition is a very demanding process, and can take a lot of time. The lower the hardware, the slower recognition will be? Did you try adding only few strokes? Did you wait long enough?
Indeed, at first sight, I do not see anything wrong in your code. When you say "it never show me "after waitForIdle"", do you mean the reocgnition still runs? Indeed, it has to be remembered that the recognition is a very demanding process, and can take a lot of time. The lower the hardware, the slower recognition will be? Did you try adding only few strokes? Did you wait long enough?
Herman Han
Hi
when I use Android studio 3.6.1, gradle 3.6.1, and I use iink batch to convert text, it will stuck on waitForIdle, please see my following code:
( this function is the same as before, and it work well before, when I change to new Android studio and gradle, it failed. )
please check the log waitForIdle, it will show "before waitForIdle" and never show me "after waitForIdle"
I have a try:
Dear Herman,
thank you for your question.
Currently, we have an Android batch sample that runs out of the box. Can you please try to run it? https://github.com/MyScript/interactive-ink-additional-examples-android/blob/master/java/samples/batch-mode/src/main/java/com/myscript/iink/samples/batchmode/MainActivity.java
Indeed, at first sight, I do not see anything wrong in your code. When you say "it never show me "after waitForIdle"", do you mean the reocgnition still runs? Indeed, it has to be remembered that the recognition is a very demanding process, and can take a lot of time. The lower the hardware, the slower recognition will be? Did you try adding only few strokes? Did you wait long enough?
Best regards,
Olivier
Olivier @MyScript
Dear Herman,
thank you for your question.
Currently, we have an Android batch sample that runs out of the box. Can you please try to run it? https://github.com/MyScript/interactive-ink-additional-examples-android/blob/master/java/samples/batch-mode/src/main/java/com/myscript/iink/samples/batchmode/MainActivity.java
Indeed, at first sight, I do not see anything wrong in your code. When you say "it never show me "after waitForIdle"", do you mean the reocgnition still runs? Indeed, it has to be remembered that the recognition is a very demanding process, and can take a lot of time. The lower the hardware, the slower recognition will be? Did you try adding only few strokes? Did you wait long enough?
Best regards,
Olivier