最終更新:2016-02-26 (金) 15:58:42 (2975d)
UsbManager.requestPermission
Top / UsbManager.requestPermission
デバイスに接続するための許可を求めるダイアログがユーザに表示される
オーバーロード
void | requestPermission(UsbAccessory accessory, PendingIntent pi) | Requests temporary permission for the given package to access the accessory. |
void | requestPermission(UsbDevice device, PendingIntent pi) | Requests temporary permission for the given package to access the device. |
メモ
- ユーザーがダイアログに返答すると、broadcast receiver は答えを表す boolean の EXTRA_PERMISSION_GRANTED extra を含む intent を受信