I am trying to make a decentralized android application. It is an online two player Tic-Tac-Toe game. I have implemented the back-end with solidity and a part of the front-end in android studio. More specifically, I got a wrapper class for my contract using solc and web3j, then included it in the android studio project. So I can call different functions of this wrapper class. Right now, a user can create an account and log in and create a game with this front-end. When a second player joins a created game, my contract emits an event to inform the creator that some player has joined the game. Besides, during a game, whenever a player makes a move, an event is emitted to let the other player know.
Now, the difficulty is that I don't know how to catch this event using Java. I have searched a lot about this, but did not find anything useful. Could anybody please explain how to do this or provide a link containing some example?