-3
如何保存textView,以便在關閉並重新啓動文本仍在那裏的活動時保存該文本?如何保存textView
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_current_homework);
Intent intent = getIntent();
String message = intent.getStringExtra(AddNewHomework.EXTRA_MESSAGE);
TextView textView = (TextView) findViewById(R.id.textView99);
textView.setText(message);