sensoro / sdk-android Goto Github PK
View Code? Open in Web Editor NEWSBK Demo Android
SBK Demo Android
HI, I've just oredered the Yunzi beacon. It says on your website that it supports eddystone protocol but in this repo's readme it says it support iBeacon implemantation.
Does this sdk also support eddystone?
10x!
Why the status of onWriteProximityUUID() always return 1 but not 0, I do not know the reason, so, has any one met this problem?
And this problem also happened when onWriteMajorMinor() was invoked
Is there any suitable/equivalent of BeaconProcessService type available in sensorobeaconkit-4.1.0.jar?
I am using SENSORO library for my android application. In my application, onGoneBeacon() calls immediately after onNewBeacon() though beacon is in range. and entered once again after 3-4 seconds though I am not moving my android device and beacon device. That means entered and exit event continuously coming without any movement. Please help me out. Thanks in advance
Sometimes I'm getting this crash, I had observed it few times when I'm in the app and somebody is calling me.
Looks like this is due to poor handling of background services on Android 7 and up.
Here is explanation https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten
Fatal Exception: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.oitchau/com.sensoro.beacon.kit.IntentProcessorService (has extras) }: app is in background uid UidRecord{8439724 u0a123 CAC bg:+2m33s457ms idle procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1520)
at android.app.ContextImpl.startService(ContextImpl.java:1476)
at android.content.ContextWrapper.startService(ContextWrapper.java:644)
at com.sensoro.beacon.kit.BeaconService.updateBeacons(BeaconService.java:152)
at com.sensoro.beacon.kit.BeaconService.processScanCycleBeacons(BeaconService.java:117)
at com.sensoro.beacon.kit.BeaconService.onScanCycleFinish(BeaconService.java:88)
at com.android.scanner.BLEScanner.scanCycleFinish(BLEScanner.java:144)
at com.android.scanner.BLEScanner.access$100(BLEScanner.java:15)
at com.android.scanner.BLEScanner$2.run(BLEScanner.java:166)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6673)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)
E/AndroidRuntime(14739): FATAL EXCEPTION: main
E/AndroidRuntime(14739): Process: com.test:remote, PID: 14739
E/AndroidRuntime(14739): java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.sensoro.beacon.kit.BeaconService$BeaconServiceV4Binder
E/AndroidRuntime(14739): at com.sensoro.beacon.kit.SensoroBeaconManager$2.onServiceConnected(SourceFile:271)
E/AndroidRuntime(14739): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1107)
E/AndroidRuntime(14739): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1124)
E/AndroidRuntime(14739): at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime(14739): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(14739): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(14739): at android.app.ActivityThread.main(ActivityThread.java:5032)
E/AndroidRuntime(14739): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(14739): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(14739): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime(14739): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime(14739): at dalvik.system.NativeStart.main(Native Method)
Hi,
Is that possible to remove the gson an greenrobot from your jar file for sensorocloud-4.1.1.jar as it create conflicts in android studio and I have to remove it manually. It's annoying because we can import it outside.
Please, provide a way to disable the logs on sdk.
I keep receiving this several times a second and it's really annoying.
D/BLEScannerForLollipop: onScanResult
D/ScanRecord: parseFromBytes
D/ScanRecord: first manudata for manu ID
Hi,
I have tried the latest Android SDK you provided here. But no luck.
After the app has been launched once, user killed app from task manager.
Then the beacon won't be found by app.
Any suggestion?
Expected behavior
No Crash
Actual behavior
Crashing when app is in background.
Cause of the issue
start services is not handled
Excepted Solution
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
context.startForegroundService(new Intent(context, ServedService.class));
} else {
context.startService(new Intent(context, ServedService.class));
}
Mobile device model and OS version
Android 9 and 10
Android Beacon Library version
Latest.
Crash Report
Fatal Exception: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.pixilapps.TheAvenues/com.sensoro.beacon.kit.IntentProcessorService (has extras) }: app is in background uid UidRecord{a97093 u0a210 TRNB bg:+3m6s960ms idle change:uncached procs:1 seq(382,382,382)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1720)
at android.app.ContextImpl.startService(ContextImpl.java:1675)
at android.content.ContextWrapper.startService(ContextWrapper.java:669)
at com.sensoro.beacon.kit.BeaconService.updateBeacons(BeaconService.java:152)
at com.sensoro.beacon.kit.BeaconService.processScanCycleBeacons(BeaconService.java:117)
at com.sensoro.beacon.kit.BeaconService.onScanCycleFinish(BeaconService.java:88)
at com.android.scanner.BLEScanner.scanCycleFinish(BLEScanner.java:144)
at com.android.scanner.BLEScanner.access$100(BLEScanner.java:15)
at com.android.scanner.BLEScanner$2.run(BLEScanner.java:166)
at android.os.Handler.handleCallback(Handler.java:888)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:8178)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
如题。。。 为啥老大选中了这家的产品。。。
I have read the doc.
In BeaconManagerListener, it said onUpdateBeacon will be call between assigned interval.
The interval can be set by SensoroBeaconManager.setUpdateBeaconPeriod(long)
This method is not found
Hii
I tried both of the sample apps in Moto G3, Nexus 5 and other several devices. None of them are actually connected to sensero pro smart beacon -4AA.
Can you please guide me in which device i should connect and get the data.
Thanks
There is no problem when using old version 3.2.2 but it throws exception after upgrade to newest SDK 4.1.0
Android 7.0 only permits to scan a beacon 5 times in 30 seconds, but SDK by default exceed this limit, so in 7.0 ForegroundScanPeriod need to be 6000ms, this change would "solve the problem" but now the sdk would detect constantly that beacons are out of range and then would detect they again, and that would be a loop, so variable OUT_OF_RANGE_DELAY need to be changed from 8000L to a higher value
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.