Androidのパーミッションは、アプリが機密リソース(カメラ、位置情報、連絡先、ストレージ)へのアクセスを制御します。アプリはパーミッションを宣言し、危険なものについては実行時にリクエストする必要があります — これはユーザーのプライバシーとセキュリティを保護します。
なぜ重要なのか
Apps need user PERMISSION to access sensitive resources/data:
→ protects PRIVACY and security — apps can't silently access your camera, location,
contacts, microphone, etc.
→ the user decides whether to grant access
パーミッションの宣言とリクエスト
1. DECLARE in AndroidManifest.xml (all permissions the app may use):
<uses-permission android:name="android.permission.CAMERA" />
2. NORMAL permissions (low-risk, e.g. internet) → granted automatically at install
3. DANGEROUS permissions (camera, location, contacts, etc.) → must be REQUESTED at
RUNTIME (the user sees a dialog and grants/denies)
