Skip to content

Instantly share code, notes, and snippets.

Artur Galeno arturgaleno

  • Geofusion
  • Campinas, São Paulo, Brazil
Block or report user

Report or block arturgaleno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AltBeaconApplication_version4.java
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;
View AltBeaconApplication_version3.java
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);
View AltBeaconApplication_version2.java
public class AltBeaconApplication extends Application implements BeaconConsumer {
private BeaconManager beaconManager;
@Override
public void onCreate() {
super.onCreate();
beaconManager = BeaconManager.getInstanceForApplication(this);
beaconManager.bind(this);
View altbeacon_beaconformat.xml
<string name="beaconformat.ibeacon">m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24</string>
View AltBeaconApplication_version1.java
public class AltBeaconApplication extends Application implements BeaconConsumer {
private BeaconManager beaconManager;
@Override
public void onCreate() {
super.onCreate();
beaconManager = BeaconManager.getInstanceForApplication(this);
beaconManager.bind(this);
}
View altbeacon_permissions.xml
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
@arturgaleno
arturgaleno / TintFloatingActionButton.java
Last active Oct 22, 2015
Workarround for FloatingActionButton bug on design library - version 23.0.0.
View TintFloatingActionButton.java
package com.materialcontentoverflow;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.view.TintableBackgroundView;
import android.support.v7.internal.widget.TintInfo;
You can’t perform that action at this time.