So I'm working on a simple Server/Client Android application where the Android app takes a picture and then sends it to a server.
After that the server has some backend code that will do some sort of processing to the image and generate a new image.
I currently have everything up to here working.
What I now need is a way for the server to let the client(android app) know when the image is ready.
Can somebody point me in the direction of the proper way of doing this? I was thinking something simple like a boolean value of whether or not the new image exists yet. My issue is that the processing may take a second or two so if I were to just simply do a GET there is a good chance the new image is not ready yet/does not exist.
Ultimately I want to display the new processed image in the android app. My current method is just to wait 1 second or two before doing the GET but that seems like a bad a way to do this.