event.phase problem in native.newTextField()

this is a basic form of native.newTextField i took from documentation,

it runs good in corona simulator

BUT, in my real nexus 4. the tekk.text wont follow event.phase after first submission

is it bug or? i already searching anywhere regarding this :frowning:

[lua] --main.lua

local defaultField

tekk = display.newText( “event.phase : ?”,display.contentWidth/2,20,nil,14 ) 

local function textListener( event )

tekk.text = "event.phase : "…event.phase

    if ( event.phase == “began” ) then

        – user begins editing text field

        print( event.text )

    elseif ( event.phase == “ended” ) then

        – text field loses focus

    elseif ( event.phase == “ended” or event.phase == “submitted” ) then

        – do something with defaultField’s text

    elseif ( event.phase == “editing” ) then

        print( event.newCharacters )

        print( event.oldText )

        print( event.startPosition )

        print( event.text )

    end

end

– Create text field

defaultField = native.newTextField( 150, 150, 180, 30 )

defaultField:addEventListener( “userInput”, textListener )

[/lua]

Hi @sukmaa,

Are you getting any error reports in the debug log from your device? Which build # of Corona SDK are you using?

Best regards,

Brent

P.S. - please see this guide (“Debugging” section) for information on how to check the console log:

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Hi Brent, thanks for the reply!

my build is  2013.2100

im reading the debugging part again, as im not geting there :smiley:

Hi @sukmaa,

This build (#2100) is one previous to the current public build (#2189), so the issue may have been fixed in the current version(s). Can you please download and test in #2189 and see if the issue remains?

Thanks,

Brent

YES!, it work in build (#2189!

thanks Brent ! wow !!

Hi @sukmaa,

Are you getting any error reports in the debug log from your device? Which build # of Corona SDK are you using?

Best regards,

Brent

P.S. - please see this guide (“Debugging” section) for information on how to check the console log:

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Hi Brent, thanks for the reply!

my build is  2013.2100

im reading the debugging part again, as im not geting there :smiley:

Hi @sukmaa,

This build (#2100) is one previous to the current public build (#2189), so the issue may have been fixed in the current version(s). Can you please download and test in #2189 and see if the issue remains?

Thanks,

Brent

YES!, it work in build (#2189!

thanks Brent ! wow !!