better error message in case of AccessDenied
removed compilation error in case of sdk < 11 (honeycomb)