java - Work easier with list for create playlist of music player android -


i new in java , need make music player in android. need best practice have playlist queue handle simple function next track, last song of album or shuffle play. mean there concept in android handle these stuff easier?

i think looking cursor. interface returns collection of query data. following methods available in cursor interface iterate through cursor, setting cursor pointer desired position:

  • movetofirst()
  • movetolast()
  • movetonext()
  • movetoprevious()
  • movetoposition(position)

for more info cursor methods visit create cursor list of object can use matrixcursor bellow:

string[] columns = new string[] { "_id", "item", "description" };  matrixcursor matrixcursor = new matrixcursor(columns );   (jsonelement mus : musics) {            matrixcursor.addrow(new object[] { 1, "item a", "...." });  } 

you can find more data here.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -