10-31-2012 05:07 AM
Solved! Go to Solution.
10-31-2012 05:10 AM
10-31-2012 07:58 AM
i have written a code to display all the files and folders in the SDCard in a list view ... but i dont know how to filter only .mp3 files and show it in listview pls help ...
the code goes here
public Listscreen()
{
super(MainScreen.VERTICAL_SCROLL|MainScreen.VERTI
try{
FileConnection fc = (FileConnection)Connector.open("file:///SDCard");
Enumeration file =fc.list();
while(file.hasMoreElements())
{
filevector.addElement(file.nextElement().toString
}
Dialog.alert(""+filevector.size());
}catch(Exception e)
{
}
mylist = new ListField();
mylist.setCallback(this);
mylist.setSize(filevector.size());
add(mylist);
}
10-31-2012 08:07 AM
Code in here might help you:
10-31-2012 08:48 AM
10-31-2012 11:47 PM