• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Adding Service in Android Platform

krishnan

Newbie
Hello All.
I am trying to have a service (running all the time). This service would also have some C/C++ JNI code to access(get info) few other components in the platform and also need to access HAL. We also need to store data (in some kind of storage DB, file, etc). We have some other app need access to this data from this Service. In symbolic way here is what I am aiming for
Android App -> System Service -> JNI (native) library -> HAL/Device Driver.
My Questions:=
  1. Can we do this as a regular Android Service (the way all downloadable app/services are written) or it must be included in System Services ?
  2. How can i make sure my service is alive all the time and starts on bootup or platform up ?
  3. If it has to be in System services how to do that ?
  4. Can downloadable apps access this System service ?
Krishna​
 
Back
Top Bottom