title: Is this the correct layout to detect iBeacons with AltBeacon's Android Beacon Library?
body: <p>I have successfully modified the <a href="https://github.com/AltBeacon/android-beacon-library-reference" rel="noreferrer">reference implementation app</a> of the <a href="https://github.com/AltBeacon/android-beacon-library" rel="noreferrer">Android Beacon Library</a> using the following <a href="https://github.com/AltBeacon/android-beacon-library/blob/master/src/main/java/org/altbeacon/beacon/BeaconParser.java#L61" rel="noreferrer">beacon layout</a>, so that it detects an iBeacon device that I have at hand:</p>
  <pre class="lang-java prettyprint-override"><code>public class MainActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this);
          beaconManager.getBeaconParsers().add(new BeaconParser().
                 setBeaconLayout(&quot;m:0-3=4c000215,i:4-19,i:20-21,i:22-23,p:24-24&quot;));
          beaconManager.bind(this);
      }
  }
  </code></pre>
  <p>Being new to the internals of BLE packets, I'm not sure if this is the correct layout to use. The library endorses the <a href="http://altbeacon.org/" rel="noreferrer">AltBeacon</a> standard and its documentation does not mention how to detect iBeacon devices.</p>
  <ul>
  <li>Will this code detect <em>all</em> iBeacon devices? i.e. is the <code>m:</code> prefix too restrictive or is it the right byte sequence that matches the iBeacon spec?</li>
  <li>Similarly, does the rest of the layout exactly match the iBeacon spec?</li>
  </ul>
  <p>Reference:</p>
  <ul>
  <li><a href="https://stackoverflow.com/a/19040616/20226">Example of an iBeacon packet seen on SO</a></li>
  </ul>