phone-call

Unity3D - Audio playing getting muted after getting any call/notification on Android

若如初见. 提交于 2019-12-01 19:50:56
I have audio playing issue on Android build. I'm using Unity 5.4.0b15, but I had same issue on 5.3.4p3. I have simple component for playing background music added to "AudioPlayer" GameObject in my scene. public AudioClip clip; private AudioSource _musicAudioSource; private void Awake() { if (_musicAudioSource == null) { _musicAudioSource = gameObject.AddComponent<AudioSource>(); } _musicAudioSource.loop = true; _musicAudioSource.clip = clip; _musicAudioSource.Play(); } After running game on Android devices the music starts playing perfectly. But while it running I'm getting any kind of

Find if user is in a call or not?

十年热恋 提交于 2019-12-01 18:53:12
I wanted to see if a user was using the application and to see if they were in a phone call or not. I was following this link to see check if a user was in a phone call or not: iOS How to check if currently on phone call . However, this looks like it's for Objective-C. I was wondering if there was a Swift equivalent for this. This is my attempt: var currCall = CTCallCenter() var call = CTCall() for call in currCall.currentCalls{ if call.callState == CTCallStateConnected{ println("In call.") } } However, it doesn't seem as if call has an attribute .callState like how it does in the previous

Windows Phone 7 call history - Mango API

依然范特西╮ 提交于 2019-12-01 17:04:48
Am I able to get the current call history with the call number and DateTime details from the phone with the Mango API? I think it is not possible with the current one. There is no API to retrieve Call History. This is mainly due to privacy concerns and protecting the user from nefarious applications behaving badly on the device. You will notice that among the API is a collection of Launchers and Choosers. One of which is the PhoneNumberChooser Task. This particular task launches the Contacts application and allows the user to physically select a contact number to dial from your application.

Windows Phone 7 call history - Mango API

依然范特西╮ 提交于 2019-12-01 16:16:46
问题 Am I able to get the current call history with the call number and DateTime details from the phone with the Mango API? I think it is not possible with the current one. 回答1: There is no API to retrieve Call History. This is mainly due to privacy concerns and protecting the user from nefarious applications behaving badly on the device. You will notice that among the API is a collection of Launchers and Choosers. One of which is the PhoneNumberChooser Task. This particular task launches the

Android call answering programmatically

笑着哭i 提交于 2019-12-01 13:41:49
Is it possible to answer call in android programmatically? I found some where that its not possible but then installed app https://play.google.com/store/apps/details?id=com.a0softus.autoanswer its working fine. I have searched a lot and tried many things, moreover call rejection is working fine but call answering not working. I have tried the following code for call answering as shown below: import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.res.AssetFileDescriptor; import android.media.AudioManager; import android

How to stop a intent.ACTION_CALL once started?

北城以北 提交于 2019-12-01 12:13:01
I am using Intent intent = new Intent(Intent.ACTION_CALL); to make a call from my application. is there any way to terminate the call after a period of time? Or set a timer for ACTION_CALL before it starts? I am using the below code from Prasanta's Blog, but for some reason context is getting the error below. Any suggestions? cannot be resolved import java.lang.reflect.Method; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.os.RemoteException; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import

I want to handle the state of call in ios

强颜欢笑 提交于 2019-12-01 11:47:25
I want to get the state of phone call either it in dialed, connected or disconnected... I tried my self but i cant get the state. NSString *phoneNumber = [@"telprompt://" stringByAppendingString:@"9723539389"]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]]; CTCallCenter *callCenter = [[CTCallCenter alloc] init]; callCenter.callEventHandler=^(CTCall* call) { if(CTCallStateDialing) { NSLog(@"Dialing"); } if(CTCallStateConnected) { NSLog(@"Connected"); } if(CTCallStateDisconnected) { NSLog(@"Disconnected"); } }; but the problem is that the CTCallCenter block never

Is it possible to use the speaker on programmatically initiated phone calls?

两盒软妹~` 提交于 2019-12-01 09:43:59
问题 I'm using the following iPhone SDK code to initiate a phone call programmatically: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"12345678"]]; The call is initiated just fine, my question is if it's possible to programmatically set the speaker as the audio source for this initiated phone call? What I'm trying to achieve is that the call will be initiated and automatically use the iPhone speaker as the call audio source. Thanks for the help! 回答1: That's not possible. You can

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

天涯浪子 提交于 2019-12-01 09:41:42
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? try this, NSString *stringURL = @"tel:phonenumber"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:stringURL]]; 来源: https://stackoverflow.com/questions/8133318/how-to-open-phone-app-from-within-another

I want to handle the state of call in ios

痴心易碎 提交于 2019-12-01 08:42:20
问题 I want to get the state of phone call either it in dialed, connected or disconnected... I tried my self but i cant get the state. NSString *phoneNumber = [@"telprompt://" stringByAppendingString:@"9723539389"]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]]; CTCallCenter *callCenter = [[CTCallCenter alloc] init]; callCenter.callEventHandler=^(CTCall* call) { if(CTCallStateDialing) { NSLog(@"Dialing"); } if(CTCallStateConnected) { NSLog(@"Connected"); } if