1

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 ?

Fokke Zandbergen
  • 3,866
  • 1
  • 11
  • 28

2 Answers2

1

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

Community
  • 1
  • 1
Venkatesh
  • 209
  • 2
  • 11
0

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?

Sebastian
  • 625
  • 3
  • 13