As for playing a ringtone in an alert dialog - yes, see http://developer.android.com/reference/android/media/RingtoneManager.html and http://developer.android.com/reference/android/media/Ringtone.html, the first has a static method to get the Ringtone, which you then use to play. You can do this from the event method that opens the dialog or in the click events triggered when you select an item in the list. If your intent is to make a tool to let users select a Ringtone, you might consider looking up the Ringtone Picker (you can call it using an intent to the RingtoneManager.ACTION_RINGTONE_PICKER uri, it will show a standard dialog picker and provide results. There are numerous examples around the web including how to add your own ringtones to the list and how to store the selected result as the default ringer...)
Thanks for answer.
I have checked API guide and i didn't understand anything.
Sometimes i am really missing PHP manual page. It is so easy to read, well explained and clear samples.
I don't know why but i found Java/Android API guide just useless.
Anyway, I think i misled you i forgot to mention that all of fonts, thumbnail icons... etc are located in the assets folder.
So, what i am trying to do is play ringtone in the assets folder when user click the Play icon in the Alertdialog.
Right. So, you should put your custom Font(s) in the assets folder and use Typeface to import it. Then when you make the layouts for the ListView items (see the API guide I provided earlier) you set the View's typeface using the one you loaded from assets.
Icons can be stored in the res/drawables/ folder. Read http://developer.android.com/training/multiscreen/screendensities.html, after which you should understand you should provide multiple versions of the icons to work on different screen densities. It is possible to load the icons from the assets folder, but not optimal so you should avoid it - put them where they belong in the res/drawables folder(s).