Another problem with multiline text

Hi…i contact you because i have some problems with widget multiline text, again. I’ve finished my app for android. There are four scenes with multiline text in a scrollview. I tested it in my device and it’s all ok. I tested in a device of my friend and it’s ok.

But when i tested it in other devices the text of the first scene didn’t apper on the screen. Background and button yes, but the text no. How is possible? I tested my app with corona and android studio and run correctely. Here a list of real devices that i tested my app.

Samsung galaxy note 2 (android 4.4,2) = ok
Samsung s4 (android 4.4.2) = ok
Samsung k zoom (4.2.1) = ok
Samsung s5 (android 4.4.2) = no
Asus transformer pad tf300t (android 4.2.1) = no

Tomorrow i’ll test it on hawei with version android 4.3.3.

Note : the problem is only the first scene. Other scenes with multiline text are ok…

What you are likely running into is an issue with the maximum texture size.   We wrote a tutorial that covers this:

http://coronalabs.com/blog/2014/06/17/tutorial-working-with-large-blocks-of-text/

But to summarize, display.newText() creates an image that has the text in it.  If this image’s texture size exceeds the device’s maximum texture size (which on some Android devices can be as low as 1024 pixels on the long side.   If your multi-line text exceeds this boundary you get a block of solid color, usually white.

The tutorial suggests says of managing long blocks of text.

Rob

thanks so much…i didn’t see tha tutorial. Thanks again :slight_smile:

What you are likely running into is an issue with the maximum texture size.   We wrote a tutorial that covers this:

http://coronalabs.com/blog/2014/06/17/tutorial-working-with-large-blocks-of-text/

But to summarize, display.newText() creates an image that has the text in it.  If this image’s texture size exceeds the device’s maximum texture size (which on some Android devices can be as low as 1024 pixels on the long side.   If your multi-line text exceeds this boundary you get a block of solid color, usually white.

The tutorial suggests says of managing long blocks of text.

Rob

thanks so much…i didn’t see tha tutorial. Thanks again :slight_smile: