Problem opening the content interface in beacon proximity with a button

Good afternoon community;

I am developing an application with beacon proximity, but I have a problem when trying to open the content interface using a button as shown in the image.

The idea is that when you press the “Go to Beacon” button, the interface that the beacon scans opens and shows the content of the beacon.

If anyone can help me, I really appreciate it.

I am not very expert on the subject, but I am learning.

Thanks so mucht.

Hi, I already managed to fix it.

Nothing else was the instance to the MainActivity from a StartActivity.

You can see it here: https://github.com/KevDelg/UdlaTelecomBeacon/

But when I go back to the beginning and press the “Go to beacon” button again, it no longer shows me the content, it rarely shows me but it takes a long time and I don’t understand why, maybe someone can help me please.

@pober