phone-call

How do you clear your call logs history in android?

一世执手 提交于 2020-01-01 10:58:24
问题 How can you clear the entire call log history in android? Currently i have this code that can only clear a particular call log public void DeleteCallLogByNumber(String number) { String queryString="NUMBER="+number; this.getContentResolver().delete(CallLog.Calls.CONTENT_URI,queryString,null); } } 回答1: I was able to do it with this, It's been a while though. Not sure if this still works. getContentResolver().delete(android.provider.CallLog.Calls.CONTENT_URI, null, null) ; EDIT: Please note I am

Android: Manipulating voice in phone calls

别说谁变了你拦得住时间么 提交于 2020-01-01 05:46:08
问题 I'm currently searching for options on how to manipulate audio on android. The goal is to process audio from the microphone in real time during a phone call. The best solution would be to do this on a native call. But rebuilding a telephone app (no VOIP) would be fine too. Are there any ways to achieve this with Android APIs (also undocumented)? If not, which steps would be necessary to get things running? On iOS there are some apps which manipulate voice but create a VOIP connection. I heard

Detect phone calls on iOS with CTCallCenter (Swift)

对着背影说爱祢 提交于 2019-12-30 08:36:33
问题 I wanted to try to detect incoming phone calls in my app. I created a new Swift project from scratch just to try some code. The only thing I did was importing CoreTelephony in the ViewController that is created with every new project and I also changed the viewDidLoad() to: super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let callCenter = CTCallCenter() NSLog("start") callCenter.callEventHandler = {[weak self] (call: CTCall) -> () in self?.label

How does a Android “OS” detect a incoming call

烈酒焚心 提交于 2019-12-30 04:33:29
问题 I'd like to know: how the android OS detect a incoming call(number) and displays the contact name and gives us a option to attend the call. What happens inside the OS when the "END CALL BUTTON" is tapped. When I searched regarding this I am getting only the Classes and methods to create my own app. Requesting for the explanation. 回答1: In Android it is possible to detect call events using the built-in TelephonyManager API. TelephonyManager class provides access to information about the

Twilio - How to dial third party number and add him to conference?

和自甴很熟 提交于 2019-12-29 07:10:09
问题 I am facing a small problem while using Twilio conference. My API gets incoming call and puts caller to new and empty conference room: <Response> <Dial> <Conference waitUrl="http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient">Conf 1</Conference> </Dial> </Response> So I got caller waiting in an empty conference room and listening music. I want to dial some other number and to add it to this confrence room. That number is non-twilio. How can I do this? 回答1: You could use the Twilio

Show the information in the middle of the call

*爱你&永不变心* 提交于 2019-12-29 03:28:33
问题 I want to show some information in the middle of a call in that screen like weather info, or facebook updates like that, can anyone help me. See the screenshot below of the update that I want. 回答1: check this stack overflow answer.In that answer you can see a toast showing different call states.Instead of that toast make a custom toast and show your updates via that Custom toast. if you want show an activity instead of toast try this code in your CustomPhoneStateListener public class

Android Permission Request Code Issue

≯℡__Kan透↙ 提交于 2019-12-28 04:28:10
问题 How to request a Permission? I tried to documentation, but the constant int request code MY_PERMISSIONS_REQUEST_CALL_PHONE donst seem to just work, anything else to bear in mind for Backwards compatibility? ActivityCompat.requestPermissions(getApplicationContext(), new String[]{Manifest.permission.READ_CONTACTS}, MY_PERMISSIONS_REQUEST_CALL_PHONE); How to declare MY_PERMISSIONS_REQUEST_CALL_PHONE constant int? 回答1: For lower versions you need to declare permission in manifest only, but for

Android dialer application

梦想的初衷 提交于 2019-12-27 10:38:57
问题 I am figuring out a way to replace the default dialer application from my custom dialer application, but I am not getting how to achieve this. Here is what I want Create a custom dialer UI My application is called whenever call button hardware or that one in Android is pressed The application can also be called from the contact screen I am referring to public static final String ACTION_DIAL. 回答1: Create a simple Android application (our dialer). To actually call someone, you just need that

Intent.ACTION_CALL is not working when a pop up window opens to select my account

佐手、 提交于 2019-12-25 13:29:09
问题 I am implementing an Android app that will allow users to purchase something by dialing a number from my app pressing a button. In single SIM devices it works nicely, but in dual sim devices, when I run my app and click on the "Purchase Button" a popup window automatically opens to ask me which SIM I want to use to dial (I didn't have to write code for this action, It automatically done by my device. Also when I normally call a friend using the default Phone App of my device this pop up

How to store call records in SD Card?

做~自己de王妃 提交于 2019-12-25 08:24:49
问题 I am trying to store incoming and outgoing calls record in my SD Card. but the issue is that i am not able to find that in my SD Card. Following is my Code Can any one help DeviceAdminDemo.java public class DeviceAdminDemo extends DeviceAdminReceiver { @Override public void onReceive(Context context, Intent intent) { super.onReceive(context, intent); context.stopService(new Intent(context, TService.class)); Intent myIntent = new Intent(context, TService.class); context.startService(myIntent);