How to declare an intent-filter for a Receiver class which is present in an external library.
问题 I've created a library one of whose class is public class SmsReceiver extends BroadcastReceiver{...} Now since this class extends BroadcaseReceiver so I need to declare intent-filter like this: <receiver android:name="SmsReceiver"> <intent-filter> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> </receiver> But, now since the SmsReceiver class is a part of external library so, if I declare the intent-filter like above in the application (application package