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.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;

    public IBinder onBind(Intent intent) {
        return null;

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

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

        beaconManager.connect(new BeaconManager.ServiceReadyCallback() {
            public void onServiceReady() {


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

        beaconManager.setRangingListener(new BeaconManager.RangingListener() {

            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

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

                        if (beacon.getMinor() == 1) {

                            n = noti[0];
                                    "영화관에 입장하였습니다.");

                        else if (beacon.getMinor() == 2) {

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


                        else if (beacon.getMinor() == 3) {

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


        return START_STICKY;


    public void showNotification(String title, String message) {

        Notification notification = new Notification.Builder(this)

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

    //Service 종료
    public void onDestroy() {