0

I hope to add a background service in Android. I know how to do this by developing an app and starting the service from the app.

However, I want to include the service in the rom. Since no UI is needed, I don't want to write an app for it and include the app. Instead, I want to add the stand alone app.

Also, this is not a system service, as it won't expose any interface to other apps. It just does some performance measurements in the background.

I hope to know how I can implement this and where I should put the code in the framework. Thank you!

scunliffe
  • 62,582
  • 25
  • 126
  • 161
Aiken
  • 88
  • 5

1 Answers1

0

I figure out how to do this. I just need to write this as an app without any activity. Further details can be checked at [1] and [2].

[1] https://groups.google.com/forum/#!topic/android-developers/PFEnMXldvB8 [2] Launch Android application without main Activity and start Service on launching application

Community
  • 1
  • 1
Aiken
  • 88
  • 5