Linking and connecting an android service outside of an activity

I would like to link and connect the service, but not within the android framework. Is there a class that can be extended to have the context needed for binding?

What I'm trying to do is provide a simple java library using the android service. My library does not use user interface. I only need to bind and connect my service inside the class, which requires the application context needed to bind

thank

+5
source share
2 answers

. getApplication. .

, - , , BroadcastReceiver, , , .

+2

. . .

.

0

All Articles