私はリストビューを持っています。チェックするとチェックボックスが表示されます。 しかし、私はアプリケーションを再起動すると同じステータスを取得したいと思います。それを行う方法があれば、私に返答してください。 私は本当にアンドロイドに新しいです。 私のコードは次のとおりです:アンドロイドでアプリケーションを再起動すると、チェックボックスのステータスが同じになる
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
//I am getting status of check box here. If I click on file check box is appearing to me. //I want to be store always for true.
String keyword = value[position];
mediaPlayer.reset();
try
{
mediaPlayer.setDataSource("/sdcard/"+keyword+".mp4");
mediaPlayer.prepare();
mediaPlayer.start();
}
catch(Exception e)
{
e.printStackTrace();
}
}
ありがとうございました。
http://developer.android.com/guide/topics/data/data-storage.html#prefあなたの貴重な答えを – ingsaurabh