0
I’m a beginner on android and I’m developing a chat app in which I connect two people based on their preferences. When one of the two people ends the conversation and decides to go back to the queue by choosing the same option as before (example: help), it ends up being redirected to the same user as before. In my code I used Finish to finalize the chat screen when she chose to leave the conversation, but I don’t know exactly where I’m going wrong. Is there anything I can do before giving Finish that prevents my app from picking up the settings of the user he talked to when joining the queue again?
Class used:
Queuing(Here the user is waiting for someone): Pastebin
I tried to reload Activity before queuing up again using Recreation and opening a new Input for the same page. But my app hangs with it. I don’t know what to do. Thank you very much to anyone who can give me a light!