Beacon admin interface

I created the web admin interface for Beacon management wherein user can enter their Majorid & Minorid with respective information (metadata). Please have a look at the JSON


So, can i use parsing the data from JSON and send to the user if they enter the beacon region. Am i right?

I tried using parsing but i didn't get any metadata if i entered the beacon region.

Hey Raj -- I'm not sure I understand what's wrong. The way you code your backend and the communication between it and the device is entirely up to you, Estimote SDK doesn't interfere here. Is it beacon region monitoring not getting triggered?

we have 3 beacon with diff major & minor . So, i used manual value like below

region1 = new Region("region1", ESTIMOTEPROXIMITYUUID, 60518, 62835);

region2 = new Region("region2", ESTIMOTEPROXIMITYUUID, 7952, 42086);

region3 = new Region("region3", ESTIMOTE_PROXIMITY_UUID, 7632, 54047); 

Then in the monitoring region triggered i used below

beaconManager.setMonitoringListener(new MonitoringListener() {
public void onEnteredRegion(final Region region, List<Beacon> beacons) {

if (region.getIdentifier().equals("region1")) {


}else if (region.getIdentifier().equals("region2")) {


}else if (region.getIdentifier().equals("region3")) {



Like above i used known values and its not dynamic....if i need to add or enter one more beacon region means i need to add i used webservice json confusing to add region from json values..So please give some suggestion on this.

Hey raj—you should be able to simply iterate over your JSON array and create a set of beacon regions, which you can also store in some array.

You can read more about parsing JSON in Java here:

Hi Piotr, I'm getting the JSON value from URL what i mentioned in the question. But how can i create the set of region for different beacons. Still confusing to create the region for different beacon, because beacon will add from server backend.

String jsonStr = sh.makeServiceCall(url, ServiceHandler.GET);

        Log.d("Response: ", "> " + jsonStr);

        if (jsonStr != null) {
            try {

                 JSONArray jarray = new JSONArray(jsonStr);                          

                  for (int i = 0; i < jarray.length(); i++) {

                        jObject = jarray.getJSONObject(i);

                        Log.d("jsonObj_Response: ", "> " + jObject);

                        String id = jObject.getString(TAG_UUID);

                        String major_id= jObject.getString(TAG_major_id);
                        String minor_id= jObject.getString(TAG_minor_id);
                        String gender = jObject.getString(TAG_notification);

                        // tmp hashmap for single contact
                        HashMap<String, String> contact = new HashMap<String, String>();

                        // adding each child node to HashMap key => value
                        contact.put(TAG_ID, id);

                        contact.put(TAG_major_id, major_id
                        contact.put(TAG_minor_id, minor_id

                        // adding contact to contact list

                        Log.d("jsonObj_Response: ", "> " + jObject);


It seems you have a NullPointerException somewhere in your code:

10-29 00:15:10.684: E/AndroidRuntime(22444): Caused by: java.lang.NullPointerException
10-29 00:15:10.684: E/AndroidRuntime(22444): at com.estimote.examples.demos.NotifyDemoActivity$GetContacts.doInBackground(

Sorry, i'm getting the majorid & minorid values from server and when pass to region it's checking only last value coming. How can i pass the array to region major & minorid and check all the values then match the major & minorid



majorid= Integer.parseInt(jObject.getString("majorid")) ;

                     minor_id= Integer.parseInt(jObject.getString("minor_id")) ;

regionserver = new Region("regionserver", uuid, majorid, minorid); //creating region

public void onEnteredRegion(final Region region, List<Beacon> beacons) {

 if (region.getIdentifier().equals("region_server")) { 



If i have majorid & minorid

majorid: 23695 minorid=46901

majorid:42583 minorid:41170
It's checking last last major & minor_id values of 42583 & 41170 only