How to use stopMonitoring


#1

Hi, I am a newbie of Android. I am taking a first try with sticker. I changed my default packet into iBeacon for using monitor.
My app did work on the “startMonitoring”, however, it couldn’t stop monitoring the sticker. In fact, I had no idea what parameter should give to this method. Hope someone else can tell me! Below are the codes. Thanks a lot!


#2

Hi @Jaz,

you have to passe the region ID to your stopMonitoring() method (see the JavaDoc).
This is the ID you gave to your region when created.

In your example, it’s “Mint beacon”.


#3

Thanks @Ximun ! I am on a trip now. I’ll try what you said as soon as l can.