user2355811
user2355811

Reputation: 25

Error on windows open

I have this simple code:

var win = Ti.UI.createWindow({
     title: 'aaa',
     width: '100%',
     height: '100%',
     backgroundColor: '#eff2d8'
 });
 win.orientationModes = [Ti.UI.PORTRAIT];
 win.open();

After the command Win.open I got this error:

SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

Can anyone help me ?

Upvotes: 1

Views: 58

Answers (2)

Venkatesh
Venkatesh

Reputation: 209

It's probably because you are using 3rd party keyboard instead of the native phone keyboard. This often happens with SwiftKey.

Android - SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

Upvotes: 1

Sebastian
Sebastian

Reputation: 625

Make it more simple

 var win = Ti.UI.createWindow({
     title: 'aaa',
     width: Ti.UI.FILL,
     height: Ti.UI.FILL,
     backgroundColor: '#eff2d8'
 });
 win.open();

Does this work for you?

Upvotes: 0

Related Questions