Hi,
I am new to this android application development.
I have a audio files in a particular directory. I want to list the those audio files in a listView.
please tell me how to do this activity.
Hi,
I am new to this android application development.
I have a audio files in a particular directory. I want to list the those audio files in a listView.
please tell me how to do this activity.
Create a File object representing your directory on the SDcard and call appropriate File#list() variant to get list of all the files in that directory. You will get names of the files in a String[].
Create an Adapter class and pass this String array to it. Make a ListView and back it up by this custom Adapter.You can refer examples in API demos or this tutorial for the same