CrazYmonkeY159
Expert Member
So I'm making an Android app which functions (on an architectural level) similarly to Twitter or WhatsApp.
The App basically consists of 2 parts. A login screen (or Intent) and a background process (or Service)
The user will enter his user name and password into the login screen when the program is first started, the intent then logs the user into the service and then if the credentials are valid, a background process is spawned which checks various things and pushes notifications to the user.
In a similar way to WhatsApp this service must be restarted whenever the phone is rebooted or powered up.
So far my thoughts is to have a MainActivity which listens to the powerup broadcast and spawns the service (process) whenever the powerup/reboot event is fired. The service polls various things on a network and pushes notifications if things are being too wierd or broken. I can't use Google Cloud Messenger because I do not have access to the servers.
This is my first real try at this and I'm wondering if my planning at least doesnt sound bad?
The App basically consists of 2 parts. A login screen (or Intent) and a background process (or Service)
The user will enter his user name and password into the login screen when the program is first started, the intent then logs the user into the service and then if the credentials are valid, a background process is spawned which checks various things and pushes notifications to the user.
In a similar way to WhatsApp this service must be restarted whenever the phone is rebooted or powered up.
So far my thoughts is to have a MainActivity which listens to the powerup broadcast and spawns the service (process) whenever the powerup/reboot event is fired. The service polls various things on a network and pushes notifications if things are being too wierd or broken. I can't use Google Cloud Messenger because I do not have access to the servers.
This is my first real try at this and I'm wondering if my planning at least doesnt sound bad?