android starting a service
<p>I have read what I can find on here but I am still not really clear.
I write a package that has a main activity with a layout that just says what it is.<br>
This calls startService().<br>
In the service oncreate() an alarm intent is setup.<br>
In the service onstart the intent is used in Alarm.setrepeating().
There is an AlarmReceiver, when the alarm is triggered it calls startService().</p>

<p>I install on Android phone and an icon is installed on the phone desktop.
Touch the icon and the layout appears and the service starts and establishes the alarm.</p>

<p>Now the bit that puzzles me.
How can I have the layout go away so that the desktop is usable while the service is running or waiting between alarms?   As far as I can tell if I use the back button the service is cancelled.</p>
