Comments (1)
- I close the app from the task manager
By closing application from the task manager you kill the process the application is running on. There is no way to bring the applicatoin back until you do it manually by launching it.
- I need the service to continue scanning on the background even if the app is killed.
If you hide your application scanning in search of BLE devices to the background, there is a high probability that the OS will kill your application. You can read more about it here: http://stackoverflow.com/questions/31169434/application-startup-lifecycle/31170603#31170603
However, you can prevent it from doing that by:
2.1 giving your application "foreground priority" by starting from your service notification via [Service.startForeground()](http://developer.android.com/reference/android/app/Service.html#startForeground%28int, android.app.Notification%29)
2.2 Starting your service by returning Service.START_STICKY parameter. WHen your app is killed and the OS finds some resources your service will be launched again and you can enable scanning once again.
from kontakt-android-sdk.
Related Issues (20)
- VerifyError exception HOT 4
- Contribution HOT 2
- Diagnostic property code 0x06 HOT 3
- Delete the permission check HOT 3
- Improve logging API HOT 4
- ScanStatusListener.onScanError() improvements HOT 2
- Does't work on Android 12 HOT 2
- New dependency required when updating to version 7.0.2 HOT 8
- BeaconProScanning not working HOT 5
- does not recognize Beacons Pro equipment HOT 14
- Add Battery Level variable in Device class HOT 3
- ErrorCode in KontaktDeviceConnection.ConnectionListener's onErrorOccured HOT 2
- Can't Apply Configuration to a Beacon in Android 13 HOT 2
- regression- startScan failure on Android < 8 HOT 2
- typo in log: "D/SDK: : Stopping monitoring" HOT 3
- Candidate for NPE in InternalProximityManager HOT 1
- Is it possible to detect iOS and Android devices advertising as iBeacons? HOT 1
- IBeaconUniqueIdCachehas nothing to resolve
- Missing OkHttp method when initialising ProximityManager HOT 1
- the sdk crashed on Android 14 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kontakt-android-sdk.