I have a code which displays list of media files in list view. When I click
them its playing and check box checking. But I want to live this check box
status after I re-start the program.
i.e Once check box status live it should not change at any point of time.
I am really new to android and I am trying to solve this problem since long
time. Can any one help me to solve this problem.
my code is as follows
@Override
protected void onListItemClick(ListView l, View v, int position, long
id) {
super.onListItemClick(l, v, position, id);
getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
String keyword = value[position];
mediaPlayer.reset();
try
{
mediaPlayer.setDataSource("/sdcard/"+keyword+".mp4");
mediaPlayer.prepare();
mediaPlayer.start();
}
catch(Exception e)
{
e.printStackTrace();
}
}
thanks in advance
--
Shekharkothmirkar.
Have a nice day.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en