How to make an implicit intent explicit?
问题 I have two applications, A and B, which use a android library C. B has a service A wants to use via C, e.g. <service android:name="my.package.in.a.service.ConnectorService" android:exported="true"> <intent-filter> <action android:name="my.package.in.a.action.START_A"/> </intent-filter> </service> In my library there is a class which tries to bind it to the service, e.g. Intent intent = new Intent("my.package.in.a.service.ConnectorService"); /** establish a connection with the service. */