이미지를 저장하고 불러오기위해 저장후에 불러오기까진 했는데 이 이미지파일을 삭제하기위해선 소스상에서
어떻게 접근해애하나요?
public static void screen(Context context)
{
boolean isExternal = false;
File picturesDirectory = context.getExternalFilesDir(mDirName);
if (picturesDirectory != null)
{
cacheDir = picturesDirectory;
if (!cacheDir.exists())
{
isExternal = cacheDir.mkdirs();
}
else
{
// MemoryManagement.deleteRecursiveOnlyFile(cacheDir);//삭제
isExternal = true;
}
}
if (!isExternal)
{
cacheDir = picturesDirectory;
if (!cacheDir.exists())
{
cacheDir.mkdirs();
}
else
{
MemoryManagement.deleteRecursiveOnlyFile(cacheDir);
}
}
FileDir = cacheDir + File.separator + mFileName;
File imageDir = new File(FileDir);

아래처럼 해보세요. ^^
String path = "/data/data/어플패키지명/";
protected void deletePackageFolder(String path) {
File file = new File(parentPath);
if(file.exists()){
String[] fnameList = file.list();
if(fnameList != null && fnameList.length > 0){
int fCnt = fnameList.length;
String childPath = "";
for(int i = 0; i < fCnt; i++) {
childPath = parentPath+"/"+fnameList[i];
File f = new File(childPath);
if( ! f.isDirectory()) {
f.delete();
}
else {
deletePackageFolder(childPath);
}
}
}
File f = new File(parentPath);
f.delete();
}
}