Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Creating new experiences with Beacons

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Creating new experiences with Beacons

Presentación sobre Beacones en el GDG Lima Summit 2016

Avatar for Luis Alonso Paulino Flores

Luis Alonso Paulino Flores

October 24, 2016
Tweet

More Decks by Luis Alonso Paulino Flores

Other Decks in Programming

Transcript

  1. ¿ Qué es un beacon ? 31 b Dave Smith,

    PE • NewCircle, Inc. Diapositivas brindadas por: José Manuel Ríos Vega
  2. Estimote API Importar módulo con : estimote-sdk.aar. repositories { mavenCentral()

    flatDir { dirs 'libs' } } permisos BLUETOOTH, BLUETOOTH_ADMIN e INTERNET dependencies { compile(name:'estimote-sdk', ext:'aar') } EstimoteSDK.initialize(applicationContext, appId, appToken); // Optional, debug logging. EstimoteSDK.enableDebugLogging(true); Diapositivas brindadas por: José Manuel Ríos Vega
  3. Estimote API beaconManager.setMonitoringListener(new MonitoringListener() { @Override public void onEnteredRegion(Region region,

    List<Beacon> beacons) { } @Override public void onExitedRegion(Region region) { } }); Diapositivas brindadas por: José Manuel Ríos Vega
  4. Estimote API Ejemplo private static final String ESTIMOTE_PROXIMITY_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D";

    private static final Region ALL_ESTIMOTE_BEACONS = new Region("regionId", ESTIMOTE_PROXIMITY_UUID, null, null); private BeaconManager beaconManager = new BeaconManager(context); beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Override public void onBeaconsDiscovered( Region region,List<Beacon> beacons) { Log.d(TAG, "Ranged beacons: " + beacons); } }); https://github.com/Estimote/Android-SDK Diapositivas brindadas por: José Manuel Ríos Vega
  5. Estimote API Ejemplo beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Override public void onServiceReady()

    { try { beaconManager.startRanging(ALL_ESTIMOTE_BEACONS); } catch (RemoteException e) { Log.e(TAG, "Cannot start ranging", e); } } }); // #onStop. try { beaconManager.stopRanging(ALL_ESTIMOTE_BEACONS); } catch (RemoteException e) { Log.e(TAG, "Cannot stop but it does not matter now", e); } // #onDestroy. beaconManager.disconnect(); https://github.com/Estimote/Android-SDK Diapositivas brindadas por: José Manuel Ríos Vega
  6. Gracias Colaborador: José Manuel Rios Vega @manuriosvega [email protected] https://pe.linkedin.com/in/joseriosvega Expositor:

    Luis Alonso Paulino Flores https://github.com/AlonsoPaulino https://pe.linkedin.com/in/alonsopaulino