Sample app crash when using LocationProvider instead of minor
See original GitHub issueHello,
if someone use the LocationProvider to get the location from api or based on the mac address ( and not from the minor ) the sample app will crash when pressing the chart button because he may get a negative value of minor and he cannot get a color from the materialDesignXColors array.
@ColorInt
public static int getBeaconColor(Beacon beacon, @ColorUtil.ColoringMode int coloringMode, int beaconIndex) {
int colorIndex = 0;
switch (coloringMode) {
case ColorUtil.COLORING_MODE_INSTANCES: {
if (beacon instanceof IBeacon) {
colorIndex = ((IBeacon) beacon).getMinor();
} else {
colorIndex = beaconIndex;
}
break;
}
...
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Android Java App crashes when using location listener and ...
my android app crashes when I am trying to get the current location in java. I've watched many tutorials and tried like everything....
Read more >Preview Crashes when using @FetchRequest
I'm trying to load items from the database into a list, it works fine on device and simulator but Preview will always crash...
Read more >Changelog - lockito-app.com
Fix some bugs and crashes in edge-cases · Fix input speed being handle as m/s instead of km/h · Fix import with incomplete...
Read more >Activity - Android Developers
If a child activity fails for any reason (such as crashing), the parent activity will receive a result with the code RESULT_CANCELED.
Read more >App crashes at runtime when accessing a Kotlin class ...
The sample demonstrates how an application shrunk with R8 crashes when accessing a ... if that is a nested child class inheriting from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This should be fixed in PR #88. I’ve added your advertising data to the IBeaconTest.
Sure here you go