How do I implement my own Android service?

I need to implement a service entirely from C / C ++ using the NDK, but there seems to be no NativeService equivalent for the supported NativeActivity. It is my understanding due to the fact that the Binder class is not exposed through the NDK, and would appreciate if someone can explain why this is preventing the Native Service from working on Android and if there are any workarounds other than unacceptable use of the unsupported class / library.

One of the schemas that comes up for me is to just write a NativeActivity and access it essentially by writing only service parts in Java for the standard Android SDK. Can anyone see something wrong with this approach? This has the advantage of avoiding using JNI at least ...

Thank,

+3
c ++ android android-ndk service


source to share


No one has answered this question yet

See similar questions:

8
How do I create my own android service and use a binder to communicate with it?

or similar:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
1643
Why templates can only be implemented in a header file?
890
How to check if a service is running on Android?



All Articles
Loading...
X
Show
Funny
Dev
Pics