Open jvidalgz opened 8 years ago
This looks like a duplicate of #289. Can you please tell me your phone model and exact OS version and build string to confirm? Also, the pastebin link in the issue is private, so can you please update it to be public?
OK.
I'm using a Huawei Y625 smartphone with Android 4.4.4. Pastebin link is now public. By build string , you mean 'kernel version' or not? I'm a lost
You can get the build number string from Settings -> Abut phone -> Build number.
It would be helpful to see a log except that:
Here is my new pastebin file (with no filters)
Just for testing purposes, I was counting the numbers of advertising packes stored in the ArrayList. I hit 652 'ibeacons' (from the same fisical device - (adafruit BLE shield)) but then nothing, the scan stop.
In line 1 of the pastebin file I got 651 ibeacons and the last one in the line 81. The line 1533 show 'This is not Android 5.0. We are using old scanning APIs', is that relevant or not?
Here is a screenshot from About phone section: http://postimg.org/image/4zvxbm6oz/
I found this commit from android.googlesource.com: https://android.googlesource.com/platform/system/bt/+/ed1563b and I think is relate to this issue.
In the most recent referenced log. I see an app crashed at the referenced lines below. Is this your app or a different app? It appears no BLE detections happen after this.
``03-12 11:26:53.905 3317-3323/cl.qualitat.blepluginalt I/AndroidRuntime: VM exiting with result code 1, cleanup skipped. 03-12 11:26:53.925 838-1305/? I/WindowState: WIN DEATH: Window{42acce20 u0 cl.qualitat.blepluginalt/cl.qualitat.blepluginalt.MainActivity} 03-12 11:26:53.925 838-1276/? I/ActivityManager: Process cl.qualitat.blepluginalt (pid 3317) has died.
Yes, that is my app.
Is there any tricky solution that I can do? maybe disable and enable the BluetoothAdapter after a while or destroy and re-create the app?
Any thoughts?
Thanks!
Actually I do see subsequent detections in the log after the app starts back up:
03-12 11:26:54.305 2062-2072/? D/BtGatt.GattService: registerClient() - UUID=3a7ba67d-bcf3-402c-a6aa-1a51a34464f5
You sure the end of this log captures a case where beacons are not detected?
Also, I see several log events related to WiFi going up and down. Do you see your problem with WiFi disabled?
Hello, I am working with a simple code, that scan iBeacons, then I store them in a ArrayList, but after a couple minutes the scan stop and I can't use the bluetooth, even anothers ibeacon scanner applications dont work. If I reboot smarthphone this is fixed.
`package cl.qualitat.blepluginalt;
import android.app.Activity; import android.os.Bundle; import android.os.RemoteException; import android.util.Log;
import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconConsumer; import org.altbeacon.beacon.BeaconManager; import org.altbeacon.beacon.BeaconParser; import org.altbeacon.beacon.RangeNotifier; import org.altbeacon.beacon.Region;
import java.util.ArrayList; import java.util.Collection;
public class MainActivity extends Activity implements BeaconConsumer { protected static final String TAG = "MonitoringActivity"; private BeaconManager beaconManager; ArrayList mBeaconsStorage = new ArrayList<>();
} `
http://pastebin.com/gFhwinYY, in the first line I got the last ibeacon, then nothing.
Can someone help me?