In my current code i'm getting the width of the screen and using it in my breakText as the maxWidth.
Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
int width = size.x;
Paint p = new Paint();
p.setTextSize(60);
p.setSubpixelText(true);
endChar = p.breakText(fullText, 0, endText, true, width, null);
This code isn't giving me the desired answers, it is giving more characters than needed, but i guess I'm using the maxWidth wrongly. Can someone explain what should be entered in maxWidth?