On Device: native.newTextField() is flashing little white rectangle when I load multiple Textfields

I am loading multiple TextFields so users can enter  Name, address, phone, email etc…  If I just have one TextFields it is fine but when I have multiple TextFields when the page loads there will be a random flashing of a white rectangle in a random area.  

This rectangle looks like the default white rectangle background Corona provides with native.newTextField().   However I turn off this background though the call " emailText.hasBackground = false".   So there should be none of these white rectangles on the page at all.  This only happens on device.  Any advice on this matter is much appreciated, thank you!

Generally white or black rectangles are cause when you exceed the maxTextureSize for the device. If you are running Corona on the Mac you won’t see this but it can show up on some lower-end devices. I wouldn’t think this would happen for native.newTextFields unless you are adding large background images. The NativeKeyboard sample exercises multiple native text fields so you should test that on your device. You can use system.getInfo( “maxTextureSize” ) to find the max texture width or height value.

Thank you for reply,  I did this test=system.getInfo( “maxTextureSize” )

print(test)

and i got:  8192.   What does that number mean?

also I am testing on new samsung galaxy  tablet

Also I tried loading the TextFields on timers and this diminished the rectangles from showing.   Would this mean this is a bug with native.newTextFields?  It seems if you load them all at once it will flash these rectangles.  

Does it happen with our sample app:  CoronaSDK/SampleCode/Interface/NativeKeyboard/ ???

Rob

“maxTextureSize” returns the maximum texture width or height supported by the device. So in your case the maximum image that device supports is 8192 x 8192.

You need to see if NativeKeyboard sample shows the same problem, otherwise look at what you are doing in your code that may be causing problems. Also, check adb logcat for any errors or warning messages. This should be the first place you look when things are not as expected.

Posting an screenshot of what you’re seeing would be good. Are the rectangles were you expect the native text fields to be?

Generally white or black rectangles are cause when you exceed the maxTextureSize for the device. If you are running Corona on the Mac you won’t see this but it can show up on some lower-end devices. I wouldn’t think this would happen for native.newTextFields unless you are adding large background images. The NativeKeyboard sample exercises multiple native text fields so you should test that on your device. You can use system.getInfo( “maxTextureSize” ) to find the max texture width or height value.

Thank you for reply,  I did this test=system.getInfo( “maxTextureSize” )

print(test)

and i got:  8192.   What does that number mean?

also I am testing on new samsung galaxy  tablet

Also I tried loading the TextFields on timers and this diminished the rectangles from showing.   Would this mean this is a bug with native.newTextFields?  It seems if you load them all at once it will flash these rectangles.  

Does it happen with our sample app:  CoronaSDK/SampleCode/Interface/NativeKeyboard/ ???

Rob

“maxTextureSize” returns the maximum texture width or height supported by the device. So in your case the maximum image that device supports is 8192 x 8192.

You need to see if NativeKeyboard sample shows the same problem, otherwise look at what you are doing in your code that may be causing problems. Also, check adb logcat for any errors or warning messages. This should be the first place you look when things are not as expected.

Posting an screenshot of what you’re seeing would be good. Are the rectangles were you expect the native text fields to be?