Last active
February 3, 2016 00:49
-
-
Save arturgaleno/f443591be2609d175b10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AltBeaconApplication extends Application implements BeaconConsumer, BootstrapNotifier { | |
private BeaconManager beaconManager; | |
private RegionBootstrap regionBootstrap; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
beaconManager = BeaconManager.getInstanceForApplication(this); | |
beaconManager.bind(this); | |
BeaconParser beaconParser = new BeaconParser(); | |
beaconParser.setBeaconLayout(getResources().getString(R.string.beaconformat_ibeacon)); | |
beaconManager.getBeaconParsers().add(beaconParser); | |
BeaconRepositoryFacade beaconRepositoryFacade = new BeaconRepositoryFacade(); | |
regionBootstrap = new RegionBootstrap(this, beaconRepositoryFacade.getAvaibleRegions()); | |
} | |
@Override | |
public void didEnterRegion(Region region) { | |
} | |
@Override | |
public void didExitRegion(Region region) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment