Android how to do action based on the major & minor values

I can able to postNotification when enter the region. But all the beacons sending same notification. How to send notification with different beacon based on the Major, minor values?

You should create regions based on beacons' identifiers. That is for each beacon create separate region that matches uuid/major/minor.

How can i create? can you give any link to refer?

Declare region new Region("regionId", beaconProximityUUID, beaconMajor, beaconMinor) for each beacon you are interested in.

I have 3 beacon with following major & minor values, Major: 60158, 7952, 7632. Minor : 62835, 42086, 54047. And in NotifyDemoActivity region is region = new Region("regionId", ESTIMOTEPROXIMITYUUID,
null, null);

And notification:

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

postNotification("Welcome.");

}

But how can i display different notification for different major & minor value beacons?

Use three regions, one for each beacon:

Region region1 = new Region("region1", ESTIMOTE_PROXIMITY_UUID, 60158, 62835);
Region region2 = new Region("region2", ESTIMOTE_PROXIMITY_UUID, 7952, 42086);
Region region3 = new Region("region3", ESTIMOTE_PROXIMITY_UUID, 7632, 54047);

Then in onEnteredRegion you can determine which region triggered the event and react accordingly:

public void onEnteredRegion(Region region, List<Beacon> beacons) {
    if (region.getIdentifier().equals("region1")) { postNotification("Welcome.");
    if (region.getIdentifier().equals("region2")) { postNotification("Bonjour.");
    // ...
}