I an extending my Application class in my android app and using my SmartFoxClient as a static variable to share the connection between applications activities in my app. All users join and enter the same main room.... there is a list that has multiple rooms to join for games. When you click on one it opens a new activity in which you join the new room. However, it appears that the event listeners in both activities are firing for when a user enter either room.

For example user A starts a game, lands in the main room. They then continue to the game room and wait for another player to join.

User B starts and enters in the main room. When they enter the room, my game room also registers that they joined and it shows in that room too.

What can I do to solve this? Is it as simple as setting a room variable to distinguish the other room and use that in a conditional statement before adding them to an array?