Reputation: 15716
Suppose I have some Stinrg variable that contain some path.
Is it possible in Android to check is this a path is a app's cache path or is a private app's path?
Upvotes: 0
Views: 111
Reputation: 2938
You can compare the String
value against the value returned by
Context.getCacheDir()
getCacheDir() Returns the absolute path to the application specific cache directory on the filesystem.
Upvotes: 2