Questions tagged [android-phone-call]

91 questions
384
votes
21 answers

How to make a phone call using intent in Android?

I'm using the following code to make a call in Android but it is giving me security exception please help. posted_by = "111-333-222-4"; String uri = "tel:" + posted_by.trim() ; Intent intent = new Intent(Intent.ACTION_CALL); …
41
votes
4 answers

Android Recording Incoming and Outgoing Calls

I am trying to understand is there a way I can record calls incoming and outgoing on android phones 2.2 and above? A client wants to record calls of the agents they make to the clients so that it can be later used to fill out some material. Instead…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
13
votes
1 answer

Show Toast over PhoneScreen in LockState

Our goal is to show a toast when an incomming call happens. This won't work when the device is locked and an incomming call occures. Then the toast is visible behind the "locked fullscreen incomming call view". We tried different approches with like…
13
votes
1 answer

Media Recorder To record calls is sometime unable to Record other side voice

In my application there is a feature to record voice calls and it works perfectly well. But when tested on (Samsung s7, s8 ) it doesn’t work well. The application is able to record only callers voice not the voice from the other end. Below is my…
10
votes
2 answers

Android Device Monitor dependency on legacy Java SE 6 runtime

With Android Studio v2.2, the DDMS is deprecated in favor of Android Device Monitor. But when I try to open the Monitor, it doesn't open citing that it is dependant on legacy Java SE 6 runtime which in missing in my Mac Os Sierra. This is crazy,…
9
votes
0 answers

Phone not ringing after RequestInterruptionFilter was called

I'm currently working on an application which can change the ringmode of the device. For this I've created a NotificationListenerService and from my code I call requestInterruptionFilter to change between the ring modes. Everything here works…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
8
votes
2 answers

What is phonestateintentreceiver.notifyPhoneCallState used for?

Can anyone tell me what is the use of phonestateintentreceiver.notifyPhoneCallState?
anddev
  • 3,144
  • 12
  • 39
  • 70
8
votes
4 answers

Audiomanager Speaker not working

I'm trying to enable the speaker while I am in a call: final AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); audioManager.setSpeakerphoneOn(true); I tried to check after the setSpeakerphoneOn() the…
motis10
  • 2,484
  • 1
  • 22
  • 46
6
votes
1 answer

Auto Answering Incoming Calls in Nougat

Is there any way to programmatically answer incoming calls in Android 7.0 without root privileges? I tried following way to pick up an incoming call. TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); …
Sanjay Bhalani
  • 2,424
  • 18
  • 44
5
votes
2 answers

How to make phone numbers clickable in a textview in Android

I have a text view that contains an email and a phone number. My desired effect is that when the user taps the email, it opens the default emailing application and when the user taps the phone number, the application pulls it up in the dialer. With…
Michael Hanson
  • 323
  • 4
  • 12
5
votes
3 answers

Detect if the user actually dialed a number programmatically

In an app I show some phone numbers in a textview that the user can tap on them to dial them (autoLink set to phone on the textview). When I tap on the numbers the option to dial that number shows up. My question is: Is there a way to figure out if…
Jim
  • 18,826
  • 34
  • 135
  • 254
5
votes
2 answers

PHONE_CALL permission not working in Dexter

I have implemented Dexter in my app. It is work fine for CAMERA,EXTERNAL STORAGE and INTERNAL STORAGE permission. I want to call with PHONE_CALL permission with Dexter. When i call intent for phone call like this: Intent callIntent = new…
4
votes
0 answers

How to answer incoming calls with Self-Managed ConnectionService

I've been building a standalone calling app in Android Studio with Kotlin following this tutorial: https://developer.android.com/guide/topics/connectivity/telecom/selfManaged I've implemented everything that's necessary and read the whole docs a few…
4
votes
1 answer

Make phone call while app is in kiosk mode

We are working on an Android app which is intended to replace the default Android dialer and handle by itself all the calls going on in the device. So far, the app works as expected and we are able to both handle incoming calls and make calls by…
4
votes
1 answer

Can I register Web RTC app as Calling app

I have web rtc implemented in a webview. Everything working fine as long as app in foreground. Now if the app is in background/dose mode. I want to show a ringing screen like what's app. I am having a push notification when some one calls. I know…
Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
1
2 3 4 5 6 7