This would make for a good support library annotation!

public @interface RequiresPermission {
  String[] value();
}

Then libraries would be able to get this functionality on
conditionally-used APIs.
On Mar 5, 2015 3:59 AM, "Kiran Rao" <[email protected]> wrote:

> I often find myself finding out that an API that I used requires the app
> to hold a particular permission only after the app crashes at runtime.
>
> Would it be feasible to include a Lint check for this (at least to alert
> me about standard permissions)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to