Create a Java Utility class based on Android Manifest.permission Webpage
$10-30 USD
完了済み
投稿日: 8年以上前
$10-30 USD
完了時にお支払い
I'd like a very simple java utility class that converts an android permission constant value (as String) into a class that contains: the description as well as the "permission level" (part of an enum) from here: [login to view URL]
This is how I want the code to look:
public static AndroidPermissionInfo getPermissionInfo(String permissionConstant) {
//TODO
}
class AndroidPermissionInfo {
public enum ProtectionLevel {
NORMAL, DANGEROUS, SIGNATURE, //TODO
}
public String description;
public ProtectionLevel level;
}