[Q] Android > create Telephone app that keeps focus on outgoing & incoming phoneCall - General Questions and Answers

[Q] Android > create Telephone app that keeps focus on outgoing & incoming phoneCall
Using this simple example to create a PhoneCall application that dials out a hard coded # and monitors phone state.
http://www.mkyong.com/android/how-to-make-a-phone-call-in-android/
Unfortunately, on making the phone call, we always switch to the actual built -in phone application.
I want to avoid this, or at the very least hide the dialer pad button. The user SHOULD NOT have the option to enter a phone#.
Does anyone know of a way to achieve this? i.e. keep the actual built-in phone application in the background (I would need to add buttons for speaker, and end call in the primary application)
OR
alternatively, hide just the dial pad button in the native, built-in phone application?

Related

Best Phone/Ringtone App

What is the best, most full featured Phone/Ringtone app out for Windows Mobile in people's opinions?
I'm looking for something that has the features of Lightwav (http://www.toysoft.ca/lightwav.html)
Specifically I'm looking for:
1) The ability to set unique ringtones (MP3) for by either caller ID or phone number (or contact info)
2) Full screen picture caller ID (either JPEG or GIF)
3) Support for Cover Up Sounds (meaning you can make it sound like you are somewhere else (a bar, work, airport, etc., and the caller hears these sounds in the background during the call).
4) The ability to set different things to happen depending on what mode your phone is in (normal, silent, vibrate, etc.) so that if will automatically send to voicemail or send an SMS if you're on silent mode.
5) Announce incoming calls.
Anyway, please let me know what Windows Mobile apps might fit the bill for some or all of this.
Thank you.

Programmatic volume control

I was wondering if anyone has any experience with controlling the ringer programmatically.
I've got a program where I want to turn off the ringer but if high priority calls come in allow the phone to ring. I've got the code working that changes the volume properly (using waveOutSetVolume) and have the code to identify the incomming call [SystemState.GetValue(SystemProperty.PhoneIncomingCallerNumber)]. The problem I'm having is that when I get the call and turn on the volume (can see the icon change from mute to enabled), the phone still doesn't ring. I assume it's because the phone app was in silent mode at the time.
I could play the sound myself (assuming I can find the current ring tone), but I don't want to have to manage them answering the phone and stopping it. So, is there a way to have the phone app actually ring correctly.
Thanks in advance
I'm not sure why this was moved from Development and Hacking to General Questions. I'll try to give a little more detail.
I'm writing a .NET Compact Framework application. This application is controlling the volume of the phone (HTC Touch Pro right now, but will expand to others). I am currently using the waveOutSetVolume function (via P/Invoke) to set the phone to silent (Volume = 0). However, if certain high priority calls are identified, I am setting the volume back to the original settings.
The problem is that even though I have restored the volume (and can verify that the volume has been set), the phone does not begin ringing since the call is already ringing. My assumption is that some system event has been missed or ignored. I would really like to reissue that system event so that all of the "work" is still performed by the phone application and not by my application. If the system is managing the ringing, I won't have to worry about whether they answered it or ignored it, just that I let it ring through.
Pseudocode (only relevant pieces):
Main:
CurrentVolume = waveOutGetVolume()
waveOutSetVolume(0)
SystemState.PhoneCallIncomming.Changed += IncommingCall_Handler
IncommingCall_Handler:
IncommingCall = SystemState.GetValue(SystemProperty.PhoneIncommingCallerNumber)
if(IncommingCall.Equals(@"1 (888) 555-1212")
{
waveOutSetVolume(CurrentVolume); //This line should make the phone ring but it doesn't.
}

[Q] Identify phone ringing is put on silent in Android

I am creating an app which will speak the caller name when the phone rings. I am using TTS for this. Everything is working smooth except in one situation. When the phone rings at time user press the Volume / Turn off button to put the ringing on silent though incoming call continues. I am unable to handle this situation. I have one UI (Activity) for app settings, One BroadCast reciever to handle calls, One PhoneStateListener to check the incoming call and one Service to execute the TTS. How and where to handle this trigger when the user puts the ringing of the phone in silent.

[Q] Tasker - AutoSMS incoming callers

All,
I am trying to configure Tasker to send an autoSMS to incoming callers when I place the phone face down. This is what I have so far:
New profile (Named Silence Mode)-> Phone State > Call Incoming + Orientation Face Down
New Task (Named Silence Ringer) -> 1. Ringer Volume set to Level 0 (silent) -> 2. Send SMS ->Number Field set to %SMSRB (checked box for Store in Messaging App) -> Message: I am currently busy at the moment. I will get back to you asap.
Are these the right settings? I am unsure of the Number field (%SMSRB).
Javeline4 said:
All,
I am trying to configure Tasker to send an autoSMS to incoming callers when I place the phone face down. This is what I have so far:
New profile (Named Silence Mode)-> Phone State > Call Incoming + Orientation Face Down
New Task (Named Silence Ringer) -> 1. Ringer Volume set to Level 0 (silent) -> 2. Send SMS ->Number Field set to %SMSRB (checked box for Store in Messaging App) -> Message: I am currently busy at the moment. I will get back to you asap.
Are these the right settings? I am unsure of the Number field (%SMSRB).
Click to expand...
Click to collapse
Use this thread for Tasker questions. Read the opening as well. Lots of good information.
http://forum.xda-developers.com/showthread.php?t=1110775
Sent from my Nexus 5 using Tapatalk

Incoming calls should not open telephone app in full screen mode

Whenever I am using my navigation app and a call is coming in, the telephone app is hijacking the screen, and I loose the navigation as long as the call lasts. This can make you miss a turn or two.
Could the phone app be modified to not open in full screen mode when a call is coming in? Could it be set to automatically start a split screen mode, occupying only as much space as it really needs to display the name and/or the number of the caller?

Categories

Resources