I need your suggestions. I'm making a game and I want to have "life" is added every hour (like Candy Crush, Farm Hero etc...) I'm confusing and not sure how to do this. I'm thinking of using service module and StartServiceAt. But, what happens if my app is killed by the phone or by task killer app, the service also stops? am I right?
And, if I want to transfer this "life" value to display it as a label text in my Activity, what should I do? What is the difference if my activity is running and if my app is closed.
Please advice. If possible, can post a simple code to do this. I read through the tutorial and the Twiter example but not very understanding Thanks a lot.
And, if I want to transfer this "life" value to display it as a label text in my Activity, what should I do? What is the difference if my activity is running and if my app is closed.
Please advice. If possible, can post a simple code to do this. I read through the tutorial and the Twiter example but not very understanding Thanks a lot.