Code is duration=cursor. Get int (cursor. GetColumnIndexOrThrow (MediaStore. Audio. Media. Duration));
String time=duration/1000/60 + ":" + duration 60/1000%;
Adapter=new SimpleCursorAdapter (MusicAction. This, R.l ayout. Show_list,
Cursor, new String [] {MediaStore. Audio. Media. The TITLE, MediaStore. Audio. Media. The ARTIST, the time},
New int [] {R.i which extview2, R.i which extview3, R.i which extview4});
A great god, and seek help, there make a mistake, ask what can not get the data
CodePudding user response:
Duration can determine to the value you want?CodePudding user response: