I have to programmatically retrieve permissions from the manifest.xml of an android application and I don\'t know how to do it.
I read the post here but I am not ent
You can used this function:
public boolean hasPermission(Context ctx,String permission){ return ctx.getPackageManager().checkPermission(permission, ctx.getPackageName()) == PackageManager.PERMISSION_GRANTED); }
Usage:
hasPermission(this,Manifest.permission.GET_ACCOUNTS);