Skip to content

Add Permission Checks #971

Open
Open
@javaman97

Description

@javaman97

Description

OnStart() method requests Bluetooth On/Off Permission which may be rejected or accepted by the user and similarly ensureDiscoverable() method requests Bluetooth discoverable permission, so we need to check permission if user has alloted or not.

Branch

develop( OBDSimulator.java )

Solution

We can explicitly import check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException

check_permission_2
check_permission_1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions