Alexei
Alexei

Reputation: 15716

How check is path is a app's cache path?

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

Answers (1)

Jorge E. Hernández
Jorge E. Hernández

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

Related Questions