Beacon ranging and minor

We wrote beacon’s ranging code with android studio.
We want to receive minor’s information according to the location of the beacon using get.minor() code and we want to notify different message each other. But it didn’t work. What can I do?
This is our Service code. And our beacon’s minor code is set 1, 2, 3.

package com.example.ace.myapplication;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;

import com.estimote.sdk.Beacon;
import com.estimote.sdk.BeaconManager;
import com.estimote.sdk.Region;
import com.estimote.sdk.Utils;

import java.util.List;
import java.util.UUID;


public class FirePop extends Service {


    private BeaconManager beaconManager;
    protected Region region;


    private int[] noti = {1, 2, 3};
    private int n;


    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    //Service 초기화 과정 수행
    @Override
    public void onCreate() {
        super.onCreate();
        beaconManager = new BeaconManager(getApplicationContext());

        region = new Region("ranged region", UUID.fromString("B9407F30-F5F8-466E-AFF9-25556B57FE6D"), null, null);

        beaconManager.connect(new BeaconManager.ServiceReadyCallback() {
            @Override
            public void onServiceReady() {
                beaconManager.startRanging(region);
            }
        });



    }

    //원하는 Service 동작 수행
    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {


        beaconManager.setRangingListener(new BeaconManager.RangingListener() {

            @Override
            public void onBeaconsDiscovered(Region region, List<Beacon> beacons) {

                if (beacons.size()!=0) {

                    Beacon beacon = beacons.get(0);

                    //beaconRegion - BeaconRegion that was used for ranging
                    //beacons - List of beacons sorted by accuracy

                    //distance
                    if (Utils.computeAccuracy(beacon) < 0.2) {

                        //영화관입장
                        if (beacon.getMinor() == 1) {

                            n = noti[0];
                            showNotification(
                                    "환영합니다!",
                                    "영화관에 입장하였습니다.");
                        }

                        //상영관입장
                        else if (beacon.getMinor() == 2) {

                            n = noti[1];
                            showNotification(
                                    "즐거운 관람되세요!",
                                    "상영관에 입장하였습니다.");

                        }

                        //상영관퇴장
                        else if (beacon.getMinor() == 3) {

                            n = noti[2];
                            showNotification(
                                    "안녕히 가세요!",
                                    "상영관을 퇴장하셨습니다."
                            );

                        }


                    }
                }
            }
        });
        return START_STICKY;

    }




    public void showNotification(String title, String message) {

        Notification notification = new Notification.Builder(this)
                .setSmallIcon(android.R.drawable.ic_dialog_info)
                .setContentTitle(title)
                .setContentText(message)
                .setAutoCancel(true)
                .build();

        NotificationManager notificationManager =
                (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.notify(n, notification);
    }


    //Service 종료
    @Override
    public void onDestroy() {

        super.onDestroy();
        beaconManager.stopRanging(region);

    }
}