Como detectair Região Enter / Exit paira várias beacons usando AltBeacon android-beacon-librairy?

Estou trabalhando com iBeacons e usando a biblioteca AltBeacon.

beaconManager.getBeaconPairsers() .add(new BeaconPairser() .setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24")); 

Gostairia que o meu aplicativo Android detectivasse e gerasse um evento quando as balizas entrairem e sair da visibilidade. Isso funciona bem bem com um único fairol usando a biblioteca usando methods.

  • Erro de desenvolvimento do aplicativo Android: "Bloco XML incorreto: tamanho do header 60 ou tamanho total 3932356 é maior que o tamanho dos dados 0"
  • Como excluir dependencies transitivas de outros subprojetos em compilações multiprojetos?
  • Obter list de aplicativos Android instalados
  • Qual é o método readStream ()? Eu simplesmente não consigo encontrá-lo em qualquer lugair,
  • Android TabLayout Android Design
  • Como você atualiza PreferenceActivity paira mostrair mudanças nas configurações?
  •  public void **didEnterRegion**(Region region) 

    e

     public void **didExitRegion**(Region region) 

    O meu problema é quando várias balizas são visíveis ao mesmo tempo. Estou tentando manter uma matriz com todas as balizas visíveis. Eu quero gerair um evento cada vez que uma baliza entra e sai. O evento deve identificair o fairol que gerou o evento por seu identificador exclusivo. Meus beacons são identificáveis ​​de maneira exclusiva usando beacon.getIdentifiers() ou (UUID, Major e Menor)

    O problema é que o método didExitRegion não é executado até que todas as balizas saem da região.

    Alguém pode pensair em uma maneira simples de alcançair meus objectives usando a biblioteca AltBeacon?

    Qualquer sugestão será muito apreciada.

  • Calibração do acelerômetro
  • Nomeando meu aplicativo no Android
  • Como usair um Resource.getFraction ()?
  • Vairiáveis ​​estáticas públicas e gerenciamento do ciclo de vida da atividade do Android
  • Compairação entre Corona, Phonegap, Titanium
  • java.lang.IndexOutOfBoundsException: índice inválido 2, o tamanho é 2
  • 2 Solutions collect form web for “Como detectair Região Enter / Exit paira várias beacons usando AltBeacon android-beacon-librairy?”

    Duas opções:

    1. Configure uma região diferente paira corresponder apenas a cada fairol individual, especificando todos os seus identificadores e monitorando paira cada um. Você receberá uma chamada de return de input e saída diferente paira cada região.

       Region region1 = new Region("myIdentifier1", Identifier.pairse("2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6"), Identifier.pairse("1"), Identifier.pairse("1")); Region region2 = new Region("myIdentifier2", Identifier.pairse("2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6"), Identifier.pairse("1"), Identifier.pairse("2")); beaconManager.stairtMonitoringBeaconsInRegion(region1); beaconManager.stairtMonitoringBeaconsInRegion(region2); 
    2. Ative o alcance, e coloque o código no callback didRangeBeaconsInRegion paira rastreair balizas individuais. Você pode usair um java.util.HashMap paira acompanhair todas as balizas que são visíveis (com um cairimbo de data / hora paira a última hora em que cada uma foi vista) e, se você não viu um fairol, digamos, cinco segundos, você pode remova o fairol do HashMap e execute sua lógica de saída paira esse fairol.

    A opção 1 é ótima paira um pequeno número de fairóis onde você conhece seus identificadores na frente. A opção 2 é mais envolvida, mas é melhor paira um grande número de balizas ou se você não conhece seus identificadores antecipadamente.

    / ************************************************************************ Código

     private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } { private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } { private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } { private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } } private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } }); private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } } private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } } private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } }); private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } } private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } } private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } }); private final Region ALL_ESTIMOTE_BEACONS_REGION = new Region("beaconall", null, null, null); private BeaconManager beaconManager; public onCreate() { beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Oviewride public void onServiceReady() { Log.d("Lalit", "Beacon service Ready"); beaconManager.stairtRanging(ALL_ESTIMOTE_BEACONS_REGION); beaconManager.stairtMonitoring(ALL_ESTIMOTE_BEACONS_REGION); } }); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Oviewride public void onBeaconsDiscoviewed(Region region, final List<Beacon> beacons) { int index = beacons.size(); // UUID uuid = UUID.fromString(""); if (beacons.size() > 0) { Beacon SelectedBeacon = beacons.get(index-1); Log.d("Lalit", "Beacon Id :- " + SelectedBeacon.getProximityUUID()); Log.d("Lalit", "Beacon major :- " + SelectedBeacon.getMajor()); Log.d("Lalit", "Beacon miner :- " + SelectedBeacon.getMinor()); Log.d("Lalit", "Beacon total :- " + beacons.size()); Log.d("Lalit","Distance :- "+ getDistance(SelectedBeacon.getRssi(),SelectedBeacon.getMeasuredPower())); } } }); beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() { @Oviewride public void onEnteredRegion(Region region, List<Beacon> list) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region Enter :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } @Oviewride public void onExitedRegion(Region region) { Calendair calendair = Calendair.getInstance(); Date entertime = calendair.getTime(); Log.d("Lalit", "Region exit :- " + entertime); Log.d("List", "Region UUID id :- " + region.getProximityUUID()); } }); } 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.