INTRODUCTION
Mobile app development is not a new fad. But with growing popularity of android mobile operating system mobile app development is reaching to more and more developers. Earlier in one of my blog I had developed a mobile application for Windows based mobiles [ iMateBuddy ]. Though professionally I'm working on Microsoft Technologies, but I wanted to try my hand at android application development using java. So as soon as I bought my first android mobile I was very eager to develop my own android app.
SAWACE Android App powered by sawinfotech.com
| App settings page to set url to hit. | Start button starts the service. |
| Website UP notification. | Notification detail page. |
| click the images to enlarge + | |
The Idea Behind
Home Class
Above class handles the initial loading of the Settings page and the event handlers for Starting and Stopping the service.
Service Class

This class is the heart of the app which runs as a service which is invoked periodically. The function of the service is to hit the configured URL of my site sawinfotech.com to check if the site is up.
Notification Class

The Notification class is used to generate the notification to show the user if the service return of success message in case the website is up or a failure message if the site is down.
AndroidManifest.xml
Manifest file is configuration file similar to web.config of asp.net. Here we list all the Activity classes (screens), Service classes, user permission etc. For this app I have used permission for internet access. One more thing we can configure is here is to set which Activity/Screen is the loaded at startup of app.
Code is quite self explanatory. If any queries please add comments and I'll try to answer to best of my knowledge.
Just FYI, my blog is not sponsored by Samsung :)






