File function ( Context arg0 , File arg1 , String arg2 ) { sStoragePath . setLength ( 0 ) ; sStoragePath . append ( EXT_STORAGE_ROOT_PREFIX ) ; sStoragePath . append ( arg0 . getPackageName ( ) ) ; sStoragePath . append ( EXT_STORAGE_ROOT_SUFFIX ) ; sStoragePath . append ( arg2 ) ; return new File ( arg1 , sStoragePath . toString ( ) ) ; }
use older android apis to put data in the same relative directory location as the 2.2 api . when device upgrades to 2.2 , data will auto-delete with app uninstall . concode_field_sep StringBuilder sStoragePath concode_elem_sep String ALTERNATE_SDCARD_MOUNTS[] concode_elem_sep String EXT_STORAGE_ROOT_PREFIX concode_elem_sep String EXT_STORAGE_ROOT_SUFFIX concode_elem_sep String TAG concode_field_sep void clearSDCache concode_elem_sep File getSDCacheDir