Created
August 30, 2018 02:56
-
-
Save diewland/a56436e49c00905fcf6b98bf5de997a2 to your computer and use it in GitHub Desktop.
Eddystone URL Demo
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
| /* | |
| https://github.com/adriancretu/beacons-android | |
| */ | |
| package com.diewland.fake_beacons; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import com.uriio.beacons.Beacons; | |
| import com.uriio.beacons.model.EddystoneURL; | |
| public class MainActivity extends Activity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| String url = "https://goo.gl/dNj9cS"; // poco phone | |
| Beacons.initialize(this); | |
| new EddystoneURL(url).start(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment