Application Tool Kit

How can I convert the whole sentence at once?

I'm using SingleLineWidget of ATK2.2,  

and when I pass the stroke of written long sentence to convert it, I only could get the first word.

for example ...

This is a pen => This

Is there any way that I can get all of the recognized letters at once?

Dear Takuya Okamoto San,

Thank you for contacting us.

Currently, how do you call the addstroke function. Indeed, if all strokes are properly added, the whole sentence should be recognized?

Also, the onRecognitioEnd function may be called several times. Can you ensure your are getting the result in the last call of the function (e.g. wait for few seconds to get the result)?

Best regards,


Dear Olivier.

Thank you for your reply.

I have added all strokes to the addStroke function.

However, the whole sentence does not seem to be recognized.

Apparently it seems to be trying to recognize it as one word.


My code is ...

List<CaptureInfo> points = new ArrayList<>();


for (MotionEvent event : motionEventList) {

    final CaptureInfo captureInfo = new CaptureInfo();










try {


} catch (InterruptedException e) {



return this.api.getWordCandidates(0);

 Dear Takuya Okamoto San,

In your code, you are asking for the first word candidate, it is therefore the reason you have such behavior: this.api.getWordCandidates(0);

Instead, you should use the getText function, which will return with the whole line.

Best regards,


Dear Olivier,


I change it to use the getText function.

Thank you very much.