Dividir texto grande em páginas no alternador de texto Android ou exibir flipper

Estou no processo de desenvolvimento de um aplicativo de leitor de e-book para tablets Android 3.0. Para começar, tenho um grande pedaço de dados String. Eu quero dividir / quebrar essa String em páginas com base no tamanho da tela do dispositivo [estou planejando usar o comutador de texto ou exibir o flipper]. Embora eu tenha tentado usar o método getWindowManager (), não consegui os resultados preferido

No segmento a seguir, é mencionado que o Text Switcher quebra automaticamente o texto de acordo com o tamanho da tela. Mas eu não acho.Gerenciar texto no aplicativo Android como em um eBook

Esta é a lógica que eu usei:

    // retreiving the flipper       
    flipper = (ViewFlipper) findViewById(R.id.new_view_flipper);        

    // obtaining screen dimensions      
    Display display = getWindowManager().getDefaultDisplay(); 
    int screenWidth = display.getWidth();
    int screenHeight = display.getHeight();

    // contentString is the whole string of the book

    while (contentString != null && contentString.length() != 0) 
    {
        totalPages ++;

        // creating new textviews for every page
        TextView contentTextView = new TextView(this);
        contentTextView.setWidth(ViewGroup.LayoutParams.FILL_PARENT);
        contentTextView.setHeight(ViewGroup.LayoutParams.FILL_PARENT);
        contentTextView.setMaxHeight(screenHeight);
        contentTextView.setMaxWidth(screenWidth);

        float textSize = contentTextView.getTextSize();
        Paint paint = new Paint();
        paint.setTextSize(textSize);

        int numChars = 0;
        int lineCount = 0;
        int maxLineCount = screenHeight/contentTextView.getLineHeight();
        contentTextView.setLines(maxLineCount);

        while ((lineCount < maxLineCount) && (numChars < contentString.length())) {
            numChars = numChars + paint.breakText(contentString.substring(numChars), true, screenWidth, null);
            lineCount ++;
        }

        // retrieve the String to be displayed in the current textbox
        String toBeDisplayed = contentString.substring(0, numChars);
        contentString = contentString.substring(numChars);
        contentTextView.setText(toBeDisplayed);
        flipper.addView(contentTextView);


        numChars = 0;
        lineCount = 0;
    }

questionAnswers(1)

yourAnswerToTheQuestion