Android Question Caller Phone Number when app is run during call

LMASTER

Member
Licensed User
Longtime User
Hi, I have read the posts that follow...
https://www.b4x.com/android/forum/threads/android-permissions.77304/#content
call.zip

https://www.b4x.com/android/forum/threads/incomingnumber-in-the-background.43543/
caller ID.zip

https://www.b4x.com/android/forum/threads/get-the-number-of-the-current-caller.11960/#post-581116
(missing Main type)

The first one lists the last phone number, but not the current one.
The second List the calling number if the call occurs while the app is running.
The third I have not been able to run (not sure how to get Main type)

What I am hoping to find out, is how to get a process in the following case...

Phone Rings, during the call the app is opened to enter information, and the
phone number and caller ID if any are already there in a text box.
Please let me know if this is possible, and if anyone has a sample.

Thanks for your help, I am an old VB6 programmer, trying out B4a
as an alternative to trying to learn something else.
 

LMASTER

Member
Licensed User
Longtime User
Hi Guys
Thanks for all your help, at least we are thinking of solutions...
I modified the detectincomingph app to write the text file I mentioned above, and it works!
When my app runs it can read that file and start up with the correct number.
The issue that keeps me bugging you is the app stops and I need to convert it to a service and a sticky one at that
I have made a few failed attempts, so I am posting the converted working app, hoping you can tell me what changes to make.
Thank you !
 

Attachments

  • incomingph.zip
    471.4 KB · Views: 346
Upvote 0
Top