---
title: "How to get correct BeaconLayout?"  
description: "How to get correct BeaconLayout?"  
author: "Barbara Jones"  
published: 2014-11-19  
updated: 2014-11-19  
canonical: https://www.mindstick.com/forum/12639/how-to-get-correct-beaconlayout  
category: "android"  
tags: ["java"]  
reading_time: 1 minute  

---

# How to get correct BeaconLayout?

I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to use AltBeacon to [detect](https://www.mindstick.com/forum/1906/detect-when-cd-drive-was-closed) RadiusNetwork beacons. I am aware that i need to use setBeaconLayout() to get beacons(other than AltBeacons) detected. But, I am not sure how to get the [Layout](https://www.mindstick.com/articles/12853/android-layout-and-its-type) for the beacons that i want to use. I am pretty new to beacons.

[Right now](https://answers.mindstick.com/qa/36863/what-would-happen-if-gravity-became-5-percent-stronger-right-now) i have RadiusNetwork [beacon](https://yourviews.mindstick.com/view/81149/what-is-an-iot-beacon-innovation), with ID "2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6" (for example), how do i get the Layout for this? I tried googling, but didn't get much help. Is there a way to get the layout [pattern](https://www.mindstick.com/forum/2314/what-is-the-mvp-and-mvc-pattern) for [devices](https://www.mindstick.com/blog/301912/how-smart-devices-are-changing-our-lives)? If at a later stage, i want to use some other [device](https://www.mindstick.com/blog/149/retriving-network-device-information-in-c-sharp), how do i find the layout for that device?

Will this work?

```
mAllBeaconsRegion = new Region("RadBeacon USB",                Identifier.parse("2345454-AF9V-0Z0T-RQCS-45454DFDFF45"),                Identifier.parse("1"), Identifier.parse("1"));
```

## Replies

### Reply by Anonymous User

I have used the following code below for RadBeacon. I am still not sure on how to get the correct BeaconLayout for a beacon, but the following worked for me.

```
    mBeaconManager            .getBeaconParsers()            .add(new BeaconParser()                    .setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25"));     mAllBeaconsRegion =new Region("RadBeacon",            Identifier.parse("2345454-AF9V-0Z0T-RQCS-45454DFDFF45"),            Identifier.parse("1"),
Identifier.parse("1"));
```


---

Original Source: https://www.mindstick.com/forum/12639/how-to-get-correct-beaconlayout

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
