What is Android's one-time permission and how does it behave differently from "While using the app" permission?
- A.B) One-time permission grants permanent access for exactly one API call; after the first use (e.g., one location fix), the permission is revoked.
- B.A) A one-time permission grants access only for the current session: when the app is closed (process killed, not just backgrounded to the recent apps list) the permission is automatically revoked and must be re-requested next launch. "While using the app" persists until the user explicitly revokes it. One-time is more privacy-preserving for apps that only need occasional access without a standing grant.
- C.C) One-time permission is identical to "While using the app"; the difference is only in the dialog wording.
- D.D) One-time permissions are only available for location; camera and microphone do not offer one-time grants.
Why B is correct