Hi all,
I am developing an app for Tizen TV 4 using Xamarin and I want to check if user has permission to access external storage.
My code is the standard one:
CheckResult result = PrivacyPrivilegeManager.CheckPermission(permissionname);
switch (result)
{
case CheckResult.Allow:
break;
case CheckResult.Deny:
break;
case CheckResult.Ask:
PrivacyPrivilegeManager.RequestPermission(permissionname);
break;
}
(where permissionname is the mediastorage one)
However when CheckPermission is called I have the following exception:
System.DllNotFoundException: Unable to load shared library 'libcapi-privacy-privilege-manager.so.0' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcapi-privacy-privilege-manager.so.0: cannot open shared object file: No such file or directory
at Interop.PrivacyPrivilegeManager.CheckPermission(String privilege, CheckResult& result)
at Tizen.Security.PrivacyPrivilegeManager.CheckPermission(String privilege)
[...]
Same exception happens if I try to call RequestPermission.
I also added the permission in the manifest file but I still have the same issue.
Can someone help me?
Thanks