URI Beacon example for Android L

Agree. Wait until the spec is released.

On Mon, Oct 6, 2014 at 11:34 AM, Don Coleman <notifications@github.com>
wrote:

> In firmware/android/app/src/main/java/com/megster/uribeacon/UriBeacon.java:
>
> > +        setContentView(R.layout.activity_uri_beacon);
> > +
> > +        setupBluetooth();
> > +    }
> > +
> > +    private void advertiseUriBeacon() {
> > +
> > +        BluetoothLeAdvertiser bluetoothLeAdvertiser = bluetoothAdapter.getBluetoothLeAdvertiser();
> > +
> > +        AdvertisementData advertisementData = getAdvertisementData();
> > +        AdvertiseSettings advertiseSettings = getAdvertiseSettings();
> > +
> > +        bluetoothLeAdvertiser.startAdvertising(advertiseSettings, advertisementData, advertiseCallback);
> > +    }
> > +
> > +    private AdvertisementData getAdvertisementData() {
>
> Building/shortening the URI should be handled by a library. Has that code
> been released yet?
>
> Has the spec been released yet?
>
> I figured I'd start with a real simple example and possibly enhance later.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/google/physical-web/pull/40/files#r18475734>.
>