I am creating a text field with text in it (login field) in my app, and the cursor appears at the end of the text string… (android 4.3, latest SDK)…
It works for me in my app.
Can you post your new test code, or your actual app code that failed when setting the text first?
EDIT: Also, my field creation sets a field called “isEditable”, as below
[lua]
editTextField = native.newTextField( tempX, tempY, tempW, tempH, keyboardHandlerEditText)
editTextField.font = native.newFont( native.systemFont, tempSize )
editTextField.inputType = keyboardType
editTextField.align = ‘left’;
editTextField.text = editText – Passed in text argument
editTextField.isEditable = true – allow user to edit
editTextField:setTextColor( 0,0,0 ) – Native field apparently still uses setTextColor, not setFillColor after g2.0 release…
editTextField.hasBackground = false – true – use true for debugging position of field
editTextField.isSecure = isSecure
native.setKeyboardFocus( editTextField ) – Get the keyboard coming onscreen…
print(" editTextField created – textSize ==", tempSize)
print(" x,y == ", editTextField.x, editTextField.y)
[/lua]