Hi,

not sure about the app dir, but for accessing e.g. the shared_prefs
directory, you would do something
like this (in an Activity or Service):

        PackageManager pm = getPackageManager();
        ApplicationInfo appInfo = pm.getApplicationInfo(getPackageName
(), 0);

        File sharedPrefsDir = new File(appInfo.dataDir + "/
shared_prefs");

        FileFilter filter = new FileFilter() {
            public boolean accept(File pathname) {
               // in case you must filter files...
               [...]
            }
        };
        File[] prefFiles = sharedPrefsDir.listFiles(filter);
        for (File f : prefFiles) {
            [...]
        }
    }

HTH.

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

Reply via email to