¡@

Home 

2014/10/16 ¤W¤È 08:12:31

android Programming Glossary: displayfiles

How can I get a directory listing of resources from my Android app?

http://stackoverflow.com/questions/1495585/how-can-i-get-a-directory-listing-of-resources-from-my-android-app

method to print out the assets directory tree. void displayFiles AssetManager mgr String path try String list mgr.list path if.. for int i 0 i list.length i Log.v Assets path list i displayFiles mgr path list i catch IOException e Log.v List error can't.. method I do the following final AssetManager mgr getAssets displayFiles mgr assets displayFiles mgr . assets displayFiles mgr displayFiles..

How can I get a directory listing of resources from my Android app?

http://stackoverflow.com/questions/1495585/how-can-i-get-a-directory-listing-of-resources-from-my-android-app

or is there a better way to do this And I am using the following method to print out the assets directory tree. void displayFiles AssetManager mgr String path try String list mgr.list path if list null for int i 0 i list.length i Log.v Assets path.. mgr String path try String list mgr.list path if list null for int i 0 i list.length i Log.v Assets path list i displayFiles mgr path list i catch IOException e Log.v List error can't list path From my Activity's onCreate method I do the following.. List error can't list path From my Activity's onCreate method I do the following final AssetManager mgr getAssets displayFiles mgr assets displayFiles mgr . assets displayFiles mgr displayFiles mgr . Which gives me the following output 09 29 20 08..