i need to write simple android application that run on the background and read any sms message that comes – and do some change on the massage that come from phone number XXXX .
This application dont need any GUI – so i dont need to use any Activity.
I started a new project on Eclipse and there is no option to define that the project will be service – just define it as activity.
How can i start a project to be a service ?
Add to AndroidManifest.xml:
Create class AutoStart.java:
The OS will call your AutoStart.onReceive() method when the device is booted. Note that this may be before the SD card is mounted. When you install the apk, the system will look at your manifest and your app will be registered with the system for you to start on boot.