Trouble changing input text colour for newTextField

I am having problems customizing the colour of my input text when using native.newTextField. I can’t seem to change text colour from the default colour black to any colour of my choice. I’m using the object:setTextColor API to set the text colour but regardless of which colour I specify, it always comes out as black. Here is my sample code:

name\_in = native.newTextField( xMid + xMid\*0.1, h\*0.3, w\*0.3, h\*0.08 ) name\_in.inputType = "alphabet" name\_in.size = 20 name\_in.text = "Player Name" name\_in.align = "center" name\_in.hasBackground = false name\_in:setTextColor (0.5, 0.3, 0.8) screenGroup:insert( name\_in )

Kindly give suggestions as to what I may be doing wrong.

When I run this in the simulator I get a purplish color.

Can you tell me what version of Corona SDK you’re using?

What operating system are you building on?

Are you testing this only in the sim or on a device?

If a device, what device?

Have you looked in your console log to see if you’re getting an error?  Don’t know how to do this? This tutorial will be helpful:
 

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Rob

Thanks very much for the reply Rob. To answer your questions:

Can you tell me what version of Corona SDK you’re using?

 

Starter V2013.2100

 

What operating system are you building on?

 

Windows 8

 

Are you testing this only in the sim or on a device?

 

I am testing on a device ( Samsung Galaxy S3). The text field functionality does not work on the sim so I have no option but to test on a device.

 

Have you looked in your console log to see if you’re getting an error? Don’t know how to do this?

I always have console logs running while testing on device. On this occasion, I am not getting any error. 

Can you try with build 2014.2189?  I think there were some fixes around text colors.

I just built with V2014.2189 and it is working fine now. Thanks very much for your help Rob.

When I run this in the simulator I get a purplish color.

Can you tell me what version of Corona SDK you’re using?

What operating system are you building on?

Are you testing this only in the sim or on a device?

If a device, what device?

Have you looked in your console log to see if you’re getting an error?  Don’t know how to do this? This tutorial will be helpful:
 

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Rob

Thanks very much for the reply Rob. To answer your questions:

Can you tell me what version of Corona SDK you’re using?

 

Starter V2013.2100

 

What operating system are you building on?

 

Windows 8

 

Are you testing this only in the sim or on a device?

 

I am testing on a device ( Samsung Galaxy S3). The text field functionality does not work on the sim so I have no option but to test on a device.

 

Have you looked in your console log to see if you’re getting an error? Don’t know how to do this?

I always have console logs running while testing on device. On this occasion, I am not getting any error. 

Can you try with build 2014.2189?  I think there were some fixes around text colors.

I just built with V2014.2189 and it is working fine now. Thanks very much for your help Rob.