android-phone-call

Android receiver ignore NEW_OUTGOING_CALL

独自空忆成欢 提交于 2021-02-10 14:14:24
问题 I have a with Broadcastreceiver with an intent-filter to catch android.intent.action.NEW_OUTGOING_CALL. I read many tutorials and answer here about handling NEW_OUTGOING_CALL intent, but I was unable to make this thing works. My goal is to log intent android.intent.action.NEW_OUTGOING_CALL received by my Broadcastreceiver. I'm unable to make this simple thing works. Here's my code: Manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res

Make phone call while app is in kiosk mode

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-06 04:10:05
问题 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 launching ACTION_CALL intents. However, this app is intended to be run in kiosk mode via Android Management API. Whenever we fire the ACTION_CALL intent, kiosk mode blocks it, although the app is set as default dialer. After some debugging we

Using telecomManager with our custom protocol

杀马特。学长 韩版系。学妹 提交于 2019-12-24 18:15:12
问题 I`m trying to implement interconnection with telecom service with this guide: https://developer.android.com/guide/topics/connectivity/telecom/ I'm are already can show my own fullscreen incoming call UI without Telecom service, make and receive video calls. All, that I want to do with Telecomservice, is just tell Android OS, that our application is starting/stopping video call in particular moment, and receive call holded/unholded events from other calling apps. The main problems are: 1)

Android Studio: Pass parcelable data to call service (Phone Call App)

泄露秘密 提交于 2019-12-24 10:24:11
问题 I am using this app as a framework and trying to pass an object to my own UI Phone Call . But when I try to put my object into myAdapter : Call.putExtra("itemObject", items.get(position)); I get a BadParcelableException error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.server.telecom/com.android.server.telecom.components.UserCallActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.example.aliton.customphonecall

What is phonestateintentreceiver.notifyPhoneCallState used for?

主宰稳场 提交于 2019-12-21 04:23:06
问题 Can anyone tell me what is the use of phonestateintentreceiver.notifyPhoneCallState ? 回答1: I know it is too late to post an answer here, may be helpful for guys who refer this in future. notifyPhoneCallState has to be called if your application wishes to receive a notification about an incoming phone call. 回答2: Well... The first comment in the class says DO NOT USE THIS CLASS: Use android.telephony.TelephonyManager and PhoneStateListener instead. So maybe look into those other classes. 来源:

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

走远了吗. 提交于 2019-12-18 03:21:05
问题 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 code to check please suggest a solution MediaRecd = new MediaRecorder(); MediaRecd.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL ); MediaRecd.setAudioChannels(ConstantVariables.audioChannels);//monoRecording MediaRecd.setAudioEncodingBitRate(64)

How to calculate the outgoing call ( which I dialed from my app) duration in android programmatically

[亡魂溺海] 提交于 2019-12-11 08:19:51
问题 I have given the permission in manifest.xml file <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> And define a receiver: <receiver android:name=".OutgoingCallReceiver"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE" /> </intent-filter> </receiver> The receiver file is: public class OutgoingCallReceiver

How to make a phone call button in Android for Marshmallow

只愿长相守 提交于 2019-12-11 06:28:02
问题 I'm trying to create a calling button in Android. I created one and it works in all kind of Android device but it's not working on Marshmallow. I don't know why. How to create a calling button for android Marshmallow? This is the code I used for the calling button : public void button(View v) { String number = "12354656"; Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + number)); if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.CALL