Last active
February 3, 2016 00:41
-
-
Save arturgaleno/c9b7e5ba970478cabc96 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 { | |
private BeaconManager beaconManager; | |
@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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment