Skip to content

请问一下,分区存储中,getExternalCacheDir()不能用了 #4

Description

@roybill

这个是被另外的哪个api代替了吗?我这样写会报错:
String path = context.getExternalCacheDir().getAbsolutePath();
String displayName = fileName + System.currentTimeMillis() + ".png";
Resources res = context.getResources();
final ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.RELATIVE_PATH, path); //这样写会报错

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions