Android: Add content provider support to File::FileInfo

This commit is contained in:
JosJuice 2020-11-05 19:47:23 +01:00
parent 99ffee9a0a
commit a7c05d7e84
7 changed files with 73 additions and 2 deletions

View file

@ -104,6 +104,14 @@ bool DeleteAndroidContent(const std::string& uri)
IDCache::GetContentHandlerDelete(), ToJString(env, uri));
}
jlong GetAndroidContentSizeAndIsDirectory(const std::string& uri)
{
JNIEnv* env = IDCache::GetEnvForThread();
return env->CallStaticLongMethod(IDCache::GetContentHandlerClass(),
IDCache::GetContentHandlerGetSizeAndIsDirectory(),
ToJString(env, uri));
}
int GetNetworkIpAddress()
{
JNIEnv* env = IDCache::GetEnvForThread();