Vinians2006 Active Member Licensed User Longtime User Apr 25, 2021 #1 I want to know if is possible to answer a call, get the number, close the call and send a SMS to the caller ?
I want to know if is possible to answer a call, get the number, close the call and send a SMS to the caller ?
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2021 #2 If it is a non-Google Play app then you can intercept incoming calls and send a SMS message. Answering phone calls is more difficult. Google Play: https://www.b4x.com/android/forum/t...og-permissions-are-no-longer-available.98100/ Upvote 0
If it is a non-Google Play app then you can intercept incoming calls and send a SMS message. Answering phone calls is more difficult. Google Play: https://www.b4x.com/android/forum/t...og-permissions-are-no-longer-available.98100/
Vinians2006 Active Member Licensed User Longtime User Apr 26, 2021 #3 Thank you Erel. This app is for myself. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2021 #4 Check PhoneEvents and PhoneSMS. Note that for PhoneEvents to work in the background, you need a foreground service. Better to create a static intent filter. Upvote 0
Check PhoneEvents and PhoneSMS. Note that for PhoneEvents to work in the background, you need a foreground service. Better to create a static intent filter.
Vinians2006 Active Member Licensed User Longtime User Apr 26, 2021 #5 Did you have an example I can check ? I never used foreground services..... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 27, 2021 #6 See this tutorial about static intent filters: https://www.b4x.com/android/forum/threads/20103/#content The action should be: android.intent.action.PHONE_STATE You also need to add this permission: B4X: AddPermission(android.permission.READ_PHONE_STATE) And request it at runtime. Upvote 0
See this tutorial about static intent filters: https://www.b4x.com/android/forum/threads/20103/#content The action should be: android.intent.action.PHONE_STATE You also need to add this permission: B4X: AddPermission(android.permission.READ_PHONE_STATE) And request it at runtime.