Re: [android-developers] Re: sending DTMF tones on active calls in android

2012-06-01 Thread Kristopher Micinski
That's not really true, if I'm understanding what you want to do
correctly, the answer is no, I believe the phone app is using a hook
into the RIL:

http://en.wikipedia.org/wiki/Radio_Interface_Layer

kris

On Thu, May 31, 2012 at 10:36 PM, lbendlin  wrote:
> yes. The  phone app does it.
>
>
> On Thursday, May 31, 2012 2:26:12 AM UTC-4, hardik joshi wrote:
>>
>> I want to know first in android it is possible to send DTMF tones in
>> active calls?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: sending DTMF tones on active calls in android

2012-05-31 Thread lbendlin
yes. The  phone app does it.

On Thursday, May 31, 2012 2:26:12 AM UTC-4, hardik joshi wrote:
>
> I want to know first in android it is possible to send DTMF tones in 
> active calls?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: sending DTMF tones on active calls in android

2012-05-31 Thread hardik joshi
I want to know first in android it is possible to send DTMF tones in
active calls?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: sending DTMF tones on active calls in android

2012-05-30 Thread lbendlin
Get the Android source code and see how the phone application does it.

On Wednesday, May 30, 2012 1:17:48 AM UTC-4, hardik joshi wrote:
>
> I want to do following in android. Is it possible ?
>
> 1) call +xx xxx
>
> 2) wait to the first tone to end
>
> 3) insert pass: 
>
> 4) wait for the short high tone to end
>
> 5) press 1 till you hear specific sound.
>
> Here tones are DTMF tones and I tried to do it with call intent but how 
> can i enter pass in ongoing call using code?
>
> Can anybody guide me ?
>
> Thanks in advance !
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Sending DTMF

2008-12-02 Thread legerb

Hi Dave,
I do want to generate DTMF tones on the far end, and I've been looking
for a while for a way to do that.

> If you want to generate DTMF tones on the far end, you need to use the
> PhoneManager API.

Unless I'm missing something, PhoneManager API is not included in SDK
1.0...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-12-01 Thread Dave Sparks

The documentation for the ToneGenerator class clearly states that it
is for the purpose of generating tones on the near end. This is so the
user hears the tones when they push the digits on the keypad.

If you want to generate DTMF tones on the far end, you need to use the
PhoneManager API.

On Nov 30, 5:12 am, legerb <[EMAIL PROTECTED]> wrote:
> This actually didn't work on the real device.
> The tones can be heard playing on the handset, but not at the
> destination end.
> Using STREAM_VOICE_CALL did sound logic, but it doesn't work, and in
> that case i don't understand the purpose of it.
>
> On Nov 6, 12:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Did this actually work ?
>
> > Did you try this on a real device ?
> > (we dont have access to G1 devices here in Israel)
>
> > TIA
>
> > On Oct 5, 2:36 pm, legerb <[EMAIL PROTECTED]> wrote:
>
> > > I'm trying to send DTMF tones during outgoing call this way in my
> > > PhoneStateListener.
> > > Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
> > > Also i want to send the DTMF sequence after the call is answered, so
> > > CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
> > > appropriate state for sending?
>
> > > public void onCallStateChanged(int state, String incomingNumber) {
> > > // TODO Auto-generated method stub
> > > super.onCallStateChanged(state, incomingNumber);
>
> > > switch (state)
> > > {
> > > case TelephonyManager.CALL_STATE_OFFHOOK:
>
> > > ToneGenerator toneGenerator = new
> > > ToneGenerator(AudioManager.STREAM_VOICE_CALL,
> > > ToneGenerator.MAX_VOLUME>>1);
> > > 
> > > toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
> > > toneGenerator.stopTone();
> > > 
> > > toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
> > > toneGenerator.stopTone();
> > > break;
> > > }
>
> > > }
>
> > > On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
>
> > > > Is it possible to make a call and then send DTMF sequence in android
> > > > sdk 1.0?
> > > > I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
> > > > find an option of sending DTMF...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-11-30 Thread legerb

This actually didn't work on the real device.
The tones can be heard playing on the handset, but not at the
destination end.
Using STREAM_VOICE_CALL did sound logic, but it doesn't work, and in
that case i don't understand the purpose of it.


On Nov 6, 12:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Did this actually work ?
>
> Did you try this on a real device ?
> (we dont have access to G1 devices here in Israel)
>
> TIA
>
> On Oct 5, 2:36 pm, legerb <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to send DTMF tones during outgoing call this way in my
> > PhoneStateListener.
> > Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
> > Also i want to send the DTMF sequence after the call is answered, so
> > CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
> > appropriate state for sending?
>
> >         public void onCallStateChanged(int state, String incomingNumber) {
> >                 // TODO Auto-generated method stub
> >                 super.onCallStateChanged(state, incomingNumber);
>
> >                 switch (state)
> >                 {
> >                         case TelephonyManager.CALL_STATE_OFFHOOK:
>
> >                         ToneGenerator toneGenerator = new
> > ToneGenerator(AudioManager.STREAM_VOICE_CALL,
> > ToneGenerator.MAX_VOLUME>>1);
> >                         toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
> >                         toneGenerator.stopTone();
> >                         toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
> >                         toneGenerator.stopTone();
> >                                 break;
> >                 }
>
> >         }
>
> > On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
>
> > > Is it possible to make a call and then send DTMF sequence in android
> > > sdk 1.0?
> > > I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
> > > find an option of sending DTMF...
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-11-18 Thread Adrian A

It looks like may be used to play DTMF sounds to the user of the
device (for example, the android Phone app plays the DTMF sound when
pressing a key)

On Oct 27, 4:20 pm, Adrian A <[EMAIL PROTECTED]> wrote:
> Then what is the point of this class?
>
> On Oct 6, 9:46 pm, j <[EMAIL PROTECTED]> wrote:
>
> > I assume you are trying to generate tones for uplink audio path.
>
> > TheToneGeneratorAPI states that:
>
> > "This API is not for generating tones over the uplink audio path. "
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-11-06 Thread [EMAIL PROTECTED]

Hi,

Did this actually work ?

Did you try this on a real device ?
(we dont have access to G1 devices here in Israel)

TIA


On Oct 5, 2:36 pm, legerb <[EMAIL PROTECTED]> wrote:
> I'm trying to send DTMF tones during outgoing call this way in my
> PhoneStateListener.
> Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
> Also i want to send the DTMF sequence after the call is answered, so
> CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
> appropriate state for sending?
>
>         public void onCallStateChanged(int state, String incomingNumber) {
>                 // TODO Auto-generated method stub
>                 super.onCallStateChanged(state, incomingNumber);
>
>                 switch (state)
>                 {
>                         case TelephonyManager.CALL_STATE_OFFHOOK:
>
>                         ToneGenerator toneGenerator = new
> ToneGenerator(AudioManager.STREAM_VOICE_CALL,
> ToneGenerator.MAX_VOLUME>>1);
>                         toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
>                         toneGenerator.stopTone();
>                         toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
>                         toneGenerator.stopTone();
>                                 break;
>                 }
>
>         }
>
> On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
>
> > Is it possible to make a call and then send DTMF sequence in android
> > sdk 1.0?
> > I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
> > find an option of sending DTMF...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-10-28 Thread Adrian A

Then what is the point of this class?

On Oct 6, 9:46 pm, j <[EMAIL PROTECTED]> wrote:
> I assume you are trying to generate tones for uplink audio path.
>
> TheToneGeneratorAPI states that:
>
> "This API is not for generating tones over the uplink audio path. "

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-10-07 Thread Rimma Sukhovsky
I'm trying to generate tones for sending information like pin number.

On Tue, Oct 7, 2008 at 4:46 AM, j <[EMAIL PROTECTED]> wrote:

>
> I assume you are trying to generate tones for uplink audio path.
>
> The ToneGenerator API states that:
>
> "This API is not for generating tones over the uplink audio path. "
>
>
>
> On Oct 5, 5:36 am, legerb <[EMAIL PROTECTED]> wrote:
> > I'm trying to send DTMF tones during outgoing call this way in my
> > PhoneStateListener.
> > Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
> > Also i want to send the DTMF sequence after the call is answered, so
> > CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
> > appropriate state for sending?
> >
> > public void onCallStateChanged(int state, String incomingNumber)
> {
> > // TODO Auto-generated method stub
> > super.onCallStateChanged(state, incomingNumber);
> >
> > switch (state)
> > {
> > case TelephonyManager.CALL_STATE_OFFHOOK:
> >
> >ToneGeneratortoneGenerator=
> newToneGenerator(AudioManager.STREAM_VOICE_CALL,ToneGenerator.MAX_VOLUME>>1);
> >
>  toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
> >toneGenerator.stopTone();
> >
>  toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
> >toneGenerator.stopTone();
> > break;
> > }
> >
> > }
> >
> > On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
> >
> > > Is it possible to make a call and then send DTMF sequence in android
> > > sdk 1.0?
> > > I've seen theToneGeneratorand PhoneNumberUtils classes, but couldn't
> > > find an option of sending DTMF...
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-10-06 Thread j

I assume you are trying to generate tones for uplink audio path.

The ToneGenerator API states that:

"This API is not for generating tones over the uplink audio path. "



On Oct 5, 5:36 am, legerb <[EMAIL PROTECTED]> wrote:
> I'm trying to send DTMF tones during outgoing call this way in my
> PhoneStateListener.
> Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
> Also i want to send the DTMF sequence after the call is answered, so
> CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
> appropriate state for sending?
>
>         public void onCallStateChanged(int state, String incomingNumber) {
>                 // TODO Auto-generated method stub
>                 super.onCallStateChanged(state, incomingNumber);
>
>                 switch (state)
>                 {
>                         case TelephonyManager.CALL_STATE_OFFHOOK:
>
>                        ToneGeneratortoneGenerator= 
> newToneGenerator(AudioManager.STREAM_VOICE_CALL,ToneGenerator.MAX_VOLUME>>1);
>                        toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
>                        toneGenerator.stopTone();
>                        toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
>                        toneGenerator.stopTone();
>                                 break;
>                 }
>
>         }
>
> On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
>
> > Is it possible to make a call and then send DTMF sequence in android
> > sdk 1.0?
> > I've seen theToneGeneratorand PhoneNumberUtils classes, but couldn't
> > find an option of sending DTMF...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-10-05 Thread legerb

I'm trying to send DTMF tones during outgoing call this way in my
PhoneStateListener.
Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
Also i want to send the DTMF sequence after the call is answered, so
CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
appropriate state for sending?

public void onCallStateChanged(int state, String incomingNumber) {
// TODO Auto-generated method stub
super.onCallStateChanged(state, incomingNumber);

switch (state)
{
case TelephonyManager.CALL_STATE_OFFHOOK:

ToneGenerator toneGenerator = new
ToneGenerator(AudioManager.STREAM_VOICE_CALL,
ToneGenerator.MAX_VOLUME>>1);
toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
toneGenerator.stopTone();
toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
toneGenerator.stopTone();
break;
}

}


On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
> Is it possible to make a call and then send DTMF sequence in android
> sdk 1.0?
> I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
> find an option of sending DTMF...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending DTMF

2008-10-05 Thread legerb

In
public void onCallStateChanged(int state, String incomingNumber) {
// TODO Auto-generated method stub
super.onCallStateChanged(state, incomingNumber);

switch (state)
{

case TelephonyManager.CALL_STATE_OFFHOOK:
ToneGenerator toneGenerator = new
ToneGenerator(AudioManager.STREAM_VOICE_CALL,
ToneGenerator.MAX_VOLUME>>1);
toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
toneGenerator.stopTone();
toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
toneGenerator.stopTone();
break;
}

}


On Oct 2, 11:02 am, legerb <[EMAIL PROTECTED]> wrote:
> Is it possible to make a call and then send DTMF sequence in android
> sdk 1.0?
> I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
> find an option of sending DTMF...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---