-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added ScanStatusListner to BeaconManager. This allows to find you w…
…hen scanning really started and when it stopped. User may switch the Bluetooth off and then turn it on when application is running. This listener allows to track this events and react properly to them (eg. gray out device list). See ListBeaconsActivity to see sample code. ```java beaconManager.setScanStatusListener(new BeaconManager.ScanStatusListener() { @OverRide public void onScanStart() { // Unlock UI list.setEnabled(true); list.setAlpha(1.0f); } @OverRide public void onScanStop() { // Lock UI list.setEnabled(false); list.setAlpha(0.5f); } }); ``` - Fixed (#134): java.lang.NullPointerException when using SDK on Emulator
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="error_no_location_permission">To use this app you need to grant location permission</string> | ||
<string name="requesting_location_access">Requesting location access</string> | ||
<string name="requesting_location_access_rationale"> | ||
Detecting beacons requires Location to be enabled. We\'ll never access your GPS location without your knowledge. | ||
</string> | ||
<string name="requesting_location_permission">Requesting location permission</string> | ||
<string name="requesting_location_permission_rationale"> | ||
Detecting beacons requires Location permission. Please "Allow" so app can detect beacons. | ||
</string> | ||
<string name="requesting_location_access_cancel">I don\'t want to do this now</string> | ||
<string name="requesting_location_access_ok">Go to settings to enable</string> | ||
</resources> |
Binary file not shown.
Binary file not shown.