hi Joseph,

i'm getting a security exception regarding the permissions regarding
the download manager or like that. any way the permission is not
listed in the manifest file. so after researching i found you need to
have android.permission.ACCOUNT_MANAGER in the manifest. don't know
whether thats the correct thing. but after that also i had the issue.

is this has something to do with application cache. even i tried to
clear application cache like this

        public void clearCache() {
                File dir = context.getCacheDir();
                Log.d("CACHE",
                                "Cached 
CLEAREDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
                if (dir != null && dir.isDirectory()) {
                        deleteDir(dir);
                }
        }

        public boolean deleteDir(File dir) {
                if (dir != null && dir.isDirectory()) {
                        String[] children = dir.list();
                        for (int i = 0; i < children.length; i++) {
                                boolean success = deleteDir(new File(dir, 
children[i]));
                                if (!success) {
                                        Log
                                                        .d("CACHE",
                                                                        "Cached 
CLEAREDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
                                        return false;
                                }
                        }
                }
                // The directory is now empty so delete it
                return dir.delete();
        }

that also didn't work.

so what do you think,
regards,
Mike

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to