protected void onResume() {
super.onResume();
xTextView = findViewById(R.id.xValue);
double a= Double.parseDouble (xTextView.getText ().toString ());
a=0;
xTextView.setText (String.valueOf (a));
manager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_UI);
}
onResumeのアクティビティで手前までのライフサイクルで出力された値を再開時に0にリセット出来るようにプログラムしたいのですが、Logcatに
Process: com.example.cr.myapplication, PID: 18942
java.lang.RuntimeException: Unable to resume activity {com.example.cr.myapplication/com.example.cr.myapplication.MainActivity}: java.lang.NumberFormatException: For input string: "X軸の値"
というエラーメッセージが出てデバック出来ません。
アドバイスお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/23 08:37