Trying to identify the event which gets fired in Android or Xamarin Android right after the call (incoming/outgoing/missed) ends?
Please read about it here and here. In the 2nd link they have used telephony api for the same purpose, go through it, hopefully you will find it helpful.
Related
Recently I've started to write my own assistant, but encountered with a problem. I need to listen Push to Talk (physical) button event even when my app is on background. I know button listeners are not available within Service's, but I wonder how come Google Assistant can be triggered when there is another app on foreground ? Does anyone know what is different on that ?
Thanks
It seems it is very possible to do it, IF you have chance to compile your own Android version. For reference you can try imitate following class and implementations around it.
Although, this is not only implementation and change, it also requires changes in HAL layer.
Also I couldn't find how Google handles this. But my best guess would be either something like this or something like this.
I've just read about the Android APIs called Assist and VoiceInteraction.
What I'm trying to achieve is an app like NowOnTap. For this, I need an access to the screen's content before the user long presses the home button.
First, I tried using a normal activity with the android.intent.action.ASSIST action.
Digging more into this, I found out that in order to access a screenshot before opening the apps, I need to implement VoiceInteractionSession and its methods onCreateContentView and onHandleScreenshot.
I wasn't able to create UI by using onCreateContentView and, according to my logs, it doesn't even gets called. Anyone with experience using this APIs?
I want to capture the incoming call event using Phonegap. I want to detect if there is any event of incoming call occured and pause my media files from playing. So far I have found about startcallbutton & *endcallbutton*events. But I want to detect the call from the moment of ringing. Searched in Phonegap google group but not finding any solution that could work for me.
I'm new to phonegap. Am I missing something? Can anyone please help me that how can I detect the incoming call and take action after that? Is that solution device independent?
Maybe this plugin solves it for you? https://github.com/renanoliveira/cordova-phone-call-trap
Do note that you will always require a plugin, since Phonegap/Cordova has no API to detect calls. And plugins are platform specific, but since you tagged your question Android I suppose you only target Android?
as I as I could remember, you should set up intent filter for calling event, and get action from that event...and handle it.
reading the following material will help you to understand~
Retrieve incoming call's phone number in Android
http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_RESPOND_VIA_MESSAGE
How to detect incoming calls, in an Android device?
OK I want to be able test internal phone systems in an automated fashion using an Android app, the requirements are asking for an app which can initiate a call programatically. If this is possible then when the call starts they wish to be able to send key presses, like imagine the phone menu says "press 5 to get to the X menu".. can we send that keypress from code? This way the whole system could be tested with a series of waits, and keypresses sent to the dialler.
I'm not sure how to find out if this is actually possible.. I saw PROCESS_OUTGOING_CALLS, but I havent been able to find any resources or examples on doing this, does anyone have any information? I actually got in touch with a freelancer who ended up saying it was definitely not possible (he's pretty good and he simply said 'pressing dialpad during call was impossible'), but my client is telling me apps already exist to do this, so any tips would be helpful!..
You can definitely make a call from code. See:
How to make a phone call programmatically?
You can invoke key presses from code as well:
Invoke keypress event in android?
As for doing it during a call, I haven't tried this, But you can try it using the methods from the links. Good luck!
I have to do an Android application which should listen for miss call event. Is it possible to simulate this in Android emulator? Please help
Open DDMS ,there you will get a tab called Emulator Control .In the textbox called Incoming Number input the number from you want to call by clicking on the Call button...Then call the Hang Up button...ie. the call is missed.
Hope it helps you.