Home > Mobile >  The Android Java. Lang. IllegalArgumentException: column & # x27; 2:11 & # x27; Does not exist
The Android Java. Lang. IllegalArgumentException: column & # x27; 2:11 & # x27; Does not exist

Time:09-27

At run time has been the error: Java lang. IllegalArgumentException: the column 'and' does not exist
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:

reference 1st floor Sun Shiwei response:
duration can determine to the value you want?

Is duration can be taken to the value

CodePudding user response:

In time the value of the column can not find, look at your rules right

CodePudding user response:

Ok, thanks, it is the rules of the time value is wrong, I changed
  • Related