How do I get an application to actually answer the phone?
Also, how can I enable the speakerphone when a call is in progress. I
have tried doing this:
AudioManager myaudiomanager=(AudioManager)
context.getSystemService(Context.AUDIO_SERVICE);
myaudiomanager.setSpeakerphoneOn(true);
Intent myintent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +
"8501111111"));
myintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(myintent);
myaudiomanager.setSpeakerphoneOn(true);
But, it doesn't work.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---