Android: Add content provider support to File::Delete
This commit is contained in:
1 parent
6e1e6d2311
commit
3805b84906
6 files changed
+49
-2
No files matched your search
@@ -58,3 +58,10 @@ int OpenAndroidContent(const std::string& uri, const std::string& mode)
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
bool DeleteAndroidContent(const std::string& uri)
|
||||
{
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
return env->CallStaticBooleanMethod(IDCache::GetContentHandlerClass(),
|
||||
IDCache::GetContentHandlerDelete(), ToJString(env, uri));
|
||||
}
|
||||
Reference in new issue
Block a user