android


Android Bluetooth Le scanner stops after a time


I am runnning an app or service with a active Bluetooth LE scanner and showing scan results on Log console. If I lock the phone in a table and not touching anymore. After a time it stops, and it doesn't give me more scan results.
If I press power button and the screen wake up it gives me more scan results. If i lock again the screen or wait to lock automatically it stops and not give me more scan results.
I test with service and an app that give me more results by Log and see the app is running but scanner LE stops and no give me more results while the screen is lock.
I have the app in "no optimized battery" for doze mode. I test forcing by command introducing the phone en doze mode and work fine it give me scan results.
In my Nexus 5 with Android 7.1.1 pass when running APP and lock the screen and not touch anymore the phone. The time is 30 minutes. The phone is in a table alone, only connected with microusb to see the log in android studio.
In other Moto G2 with android 7.1 pass exactly but the time is between 20 minutes and 40 minutes, it is more aleatory. The phone is in a table alone, only connected with microusb to see the log in android studio.
For have running well again, I need to force close the app manually and restart, otherwise only works when screen is active and no give me more results when screen is locked.
This is used for beacon results, first I use Android Beacon Library for this purpose and the result was the same.
I think it is a problem of android bluetooth component, because I have the same result with the Android Beacon Library or if I implement my own BLE Scanner, but I don't know how to solve this.
Are any form to use Bluetooth Scanner LE always running in Android when the phone is much time in lock state??
Thanks in advance.
Best regards.

Related Links

Why do I get a opening file for writing error while installing Android Studio?
HCE not working on other phones than Nexus 5
ScrollView with LinearLayout
Android-App log in to website
onUpdate() not getting called for a widget?
How to merge two AndroidManifest file in Unity3d?
Play video using videoview in Listview
how to create Default Media Player in android
Jenkins android emulator plugin fails to find AVD path
How to add a border to a cell when a button is clicked?
How do i change the picture/emblem of my android game ? - libGDX [duplicate]
Reading RGB images with an ImageReader
LinearLayout weights not filling parent
How to get user's id for openning a facebook-profile-page? (Android)
How to set the right fragment to replace.
How to add background text to Pie chart in android?

Categories

HOME
fabricjs
gridview
adal
android-studio-2.2
r-googlesheets
replace
xbee
vxml
emscripten
ado.net
dkim
activecollab
line
pybossa
internationalization
glyphicons
easyphp
jersey-1.0
symfony-console
apache2.4
google-maps-autocomplete
symbols
named-entity-recognition
pchart
exploit
interpreter
siri
fractions
linked-data
paperjs
subclass
failover
mql
scrollview
panoramas
send
mustache
utorrent
arduino-ide
yowsup
batching
magento-1.9.2.4
google-knowledge-graph
demo
cin
google-data-api
escpos
dbnull
microsoft-metro
drupal-theming
dynamic-linq
dbcontext
activeperl
podscms
payara-micro
opengl-4
google-photos
jtree
shinobi
android-instrumentation
parfor
spring-cloud-feign
windows-azure-queues
vorpal.js
jclouds
pre-build-event
cfchart
nio2
toast
crouton-os
jnlua
maybe
file-move
android-launcher
sql-server-data-tools
graphics2d
botan
zend-currency
j-security-check
variadic-templates
machine-instruction
gii
lambda-architecture
build-script
ios8-extension
gae-quotas
c++builder-xe5
mongohq
pclzip
font-awesome-4.0.0
onmousemove
pstack
rmiregistry
josql
koken
entitydatasource
multiplatform
metaweblog
timertask
message-passing
cldc
todos

Resources

Encrypt Message