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
package br.com.altbeacontest1; | |
import android.app.Application; | |
import android.os.RemoteException; | |
import android.support.v4.app.NotificationCompat; | |
import android.support.v4.app.NotificationManagerCompat; | |
import android.util.Log; | |
import org.altbeacon.beacon.Beacon; | |
import org.altbeacon.beacon.BeaconConsumer; |
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); |
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); | |
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
<string name="beaconformat.ibeacon">m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24</string> |
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); | |
} |
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
<uses-permission android:name="android.permission.BLUETOOTH"/> | |
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> |