i guess you can register an activity to get notification when boot completes, this will require permission in the manifest. so you can start your service from this registered activity.
regards, Sam On Tue, Apr 26, 2011 at 1:42 PM, chamith weerasinghe <[email protected]>wrote: > Hi, > > I want that service start at phone boot up.and activity when the user click > the icon. > can i do this when the both in same project. > if so please tell me how. > > thanks a lot for ur answers Mark. > > Thanks. > Chamith. > > On Mon, Apr 25, 2011 at 11:04 PM, Mark Murphy <[email protected]>wrote: > >> On Mon, Apr 25, 2011 at 1:13 PM, chamith weerasinghe <[email protected]> >> wrote: >> > Please tell me how should i do this. >> >> Step #1: Move the service and its related classes into the project >> that has the activity >> >> Step #2: Move the <service> element (and any other required elements) >> into the manifest of the project that has the activity >> >> Step #3: Delete the service-only project >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

