phone-call

Create a custom call handling Application

余生颓废 提交于 2019-12-01 07:44:06
Hi There I'm looking to create a custom call application. i.e I want to replace the default application handling call :S. I'M SURE THAT I WANT TO REINVENT THE WHEEL Sometimes current wheels are ain't good for me. Can you put me on a start up line. I used to be a married to M$ ".net developer", and I'm in love with gOOgle. phobos51594 As Emmanuel has already stated, it is not possible to truly replace the phone app without recompiling the operating system. Even on a rooted device, you are still locked into the vendor firmware and trying to work backwards from there would be a tenuous

How to open Phone App from within another app without calling?

百般思念 提交于 2019-12-01 06:44:52
问题 I'm trying to open just the Phone app from within an application I'm making without dialing a number. I've tried: NSString *stringURL = @"tel://"; but it does nothing. Anyone have a correct solution. I've seen other questions on this topic but none have worked. This worked for opening SMS app: NSString *stringURL = @"sms:"; Just wont work for phone app. Anyone know the solution? 回答1: try this, NSString *stringURL = @"tel:phonenumber"; [[UIApplication sharedApplication] openURL:[NSURL

Create a custom call handling Application

旧城冷巷雨未停 提交于 2019-12-01 05:20:49
问题 Hi There I'm looking to create a custom call application. i.e I want to replace the default application handling call :S. I'M SURE THAT I WANT TO REINVENT THE WHEEL Sometimes current wheels are ain't good for me. Can you put me on a start up line. I used to be a married to M$ ".net developer", and I'm in love with gOOgle. 回答1: As Emmanuel has already stated, it is not possible to truly replace the phone app without recompiling the operating system. Even on a rooted device, you are still

Android: Make phone call from service

ぃ、小莉子 提交于 2019-12-01 04:42:45
I try to make a phone call from inside a service. The code I use is: Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + number)); startActivity(intent); and it works well from inside the main activity, but not from the service. The error occurs on the last line. Is it not possible to make a call inside a service? And how could I make this piece of code run on the main activity? try as to make a phone call from inside a service: Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + number)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK

Detect phone calls on iOS with CTCallCenter (Swift)

萝らか妹 提交于 2019-12-01 04:03:14
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.text = call.callState NSLog("Call state") NSLog(call.callState) } I also tried without the [weak self]

Android: Can you send/receive data along a phonecall?

∥☆過路亽.° 提交于 2019-12-01 03:34:17
I'm trying to pass some data to a phone I'm calling. Is there any way I can do this? I don't really care about the type of data (a single bit is enough), as long as I can identify it and trigger a specific action. Send code: Intent call = new Intent(); call.setAction(Intent.ACTION_CALL); call.setData(Uri.parse("tel:" + contact.getNumber())); call.putExtra("Boolean", true); startActivity(call); Recieve code: public void onReceive(Context context, Intent intent) { Bundle extras = intent.getExtras(); if (extras != null) { if (extras.getBoolean("Boolean")){ Log.d("BOOL", "true"); } else { Log.d(

Android: Make phone call from service

 ̄綄美尐妖づ 提交于 2019-12-01 02:41:13
问题 I try to make a phone call from inside a service. The code I use is: Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + number)); startActivity(intent); and it works well from inside the main activity, but not from the service. The error occurs on the last line. Is it not possible to make a call inside a service? And how could I make this piece of code run on the main activity? 回答1: try as to make a phone call from inside a service: Intent intent = new Intent

How to send fake call broadcast on android

和自甴很熟 提交于 2019-12-01 01:04:36
I am trying to send a broadcast to simulate an incoming call. I added the permission in AndroidManifest.xml file, <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> When I try to run the program, the phone reboots.(Emulator too). Intent intent = new Intent(); intent.setAction("android.intent.action.PHONE_STATE"); intent.putExtra(TelephonyManager.EXTRA_STATE, TelephonyManager.CALL_STATE_RINGING); intent.putExtra("EXTRA_INCOMING_NUMBER", "923982398"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); sendBroadcast(intent); I may be wrong as I can't find anything

Android: Can you send/receive data along a phonecall?

夙愿已清 提交于 2019-12-01 00:18:28
问题 I'm trying to pass some data to a phone I'm calling. Is there any way I can do this? I don't really care about the type of data (a single bit is enough), as long as I can identify it and trigger a specific action. Send code: Intent call = new Intent(); call.setAction(Intent.ACTION_CALL); call.setData(Uri.parse("tel:" + contact.getNumber())); call.putExtra("Boolean", true); startActivity(call); Recieve code: public void onReceive(Context context, Intent intent) { Bundle extras = intent

Block incoming calls

梦想的初衷 提交于 2019-11-30 23:54:52
my VoiP-client would like to block all incoming calls to the phone while my own call is taking place. Is it possible to do this somehow? Not with the current SDK no, You can monitor incoming calls and give the user the option to answer with your application instead of the native app Yes you can block incoming calls. Using this code String phonestate = bundle.getString(TelephonyManager.EXTRA_STATE); try { if (TelephonyManager.EXTRA_STATE_RINGING.equalsIgnoreCase(phonestate)) { try { TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); Class c = Class