package ca.knoblauch.dialog;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

/**
 * Created by Dev on 2016-01-31.
 */
public class pacingController extends Activity {

    private TextView actualSPMVal;
    private TextView ActualTimeTV;
    private TextView TargetTimeTV;


    private String convertSecondsFormat(int secs){
        int mins = (int) secs/60;
        int seconds = (int) secs %60;
        if (seconds <10 ){
            return "" +mins + ": 0" + seconds;

        } else {
            return "" +mins + ": 0" + seconds;

        }
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pacingview);
        speechModel sm = speechModel.getInstance();


        actualSPMVal = (TextView) findViewById(R.id.spmVal);


        TargetTimeTV = (TextView) findViewById((R.id.targTimeVal));
        ActualTimeTV = (TextView) findViewById((R.id.actTimeVal));


        int wpm = sm.getActualPacing();
        actualSPMVal.setText(""+wpm);

        int targSeconds = sm.getTargetTime();
        int actualSeconds = sm.getActualTime();

        TargetTimeTV.setText(convertSecondsFormat(targSeconds));

        ActualTimeTV.setText(convertSecondsFormat(actualSeconds));
    }
}

@@ -579,33 +579,32 @@
 n %22%22 +mins + %22: 
-0
 %22 + seconds;%0A%0A  

work please