I need to do a little in app chat for Android application. I'm using the aSmack lib, and I can get that working good. Here's my problem, I need to be able to switch to other bits of my app, but still receive and store new messages and get notified.
What is the best way to do this ?
I've had a look at the Service class but don't really get if it's what I need.
EDIT: also I can have more than one chat open at a time so when I'm talking to somone, messages to from the others must be saved too.
Thanks.