私はTextView使用して時間を設定しています
Min_txtvw.setText(String.format(mTimeFormat, hour, min, sec));
今
average=distance*60*60/seconds//秒の平均を見つけるための私の関数は、Min_txtvwから時間を取得する必要があります。以下のように実行しましたがNumberformatException、
    try {
             String s = Min_txtvw.getText().toString();
             double d = Double.valueOf(s.trim()).doubleValue();
             System.out.println("average distance is"+d);
        } catch (Exception e) {
            // TODO: handle exception
            e.printStackTrace();
        }
TextViewその値を変換して double に変換するにはどうすればよいですか?