MrKim Well-Known Member Licensed User Longtime User Sep 29, 2012 #1 Well I found this which is part of what I need and it works perfectly: B4X: AddPermission(android.permission.RECEIVE_SMS) AddReceiverText(DoNotification, <intent-filter> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter>) What I can't figure out how to do is the same thing with READ_PHONE_STATE. Tried this: B4X: AddPermission(android.permission.READ_PHONE_STATE) AddReceiverText(DoNotification, <intent-filter> <action android:name="android.provider.PhoneEventsActivity.READ_PHONE_STATE" /> </intent-filter>) 'End of default text. Along with many other guesses. But no go. Is there somewhere that spells out what the available options are? Thanks, Kim
Well I found this which is part of what I need and it works perfectly: B4X: AddPermission(android.permission.RECEIVE_SMS) AddReceiverText(DoNotification, <intent-filter> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter>) What I can't figure out how to do is the same thing with READ_PHONE_STATE. Tried this: B4X: AddPermission(android.permission.READ_PHONE_STATE) AddReceiverText(DoNotification, <intent-filter> <action android:name="android.provider.PhoneEventsActivity.READ_PHONE_STATE" /> </intent-filter>) 'End of default text. Along with many other guesses. But no go. Is there somewhere that spells out what the available options are? Thanks, Kim
MrKim Well-Known Member Licensed User Longtime User Sep 29, 2012 #2 Never Mind Found the answer! B4X: AddPermission(android.permission.READ_PHONE_STATE) AddReceiverText(DoNotification, <intent-filter> <action android:name="android.intent.action.PHONE_STATE" /> </intent-filter>) 'End of default text. Upvote 0
Never Mind Found the answer! B4X: AddPermission(android.permission.READ_PHONE_STATE) AddReceiverText(DoNotification, <intent-filter> <action android:name="android.intent.action.PHONE_STATE" /> </intent-filter>) 'End of default text.