Skip to content

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

@roybill

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); //这样写会报错

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