Can anyone help me how to implement video calling using wifi feature?
I have tried Intent for it but its not working.Please help me out.
Intent callIntent = new Intent("com.android.phone.videocall");
callIntent.putExtra("videocall", true);
callIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
callIntent.setData(Uri.parse("tel:" + "+919167903192"));
startActivity(callIntent);
Video calling like Skype requires using the SIP protocol. Good thing, there is android.net.sip. Bad thing, it only supports VoIP out of the box.
What's the way out?
You need to use a SIP library like JAIN SIP or CSipSimple to get the work done. You will also need a SIP provider. You can either become one or use an existing one like GetOnSip.
My point being?
It is not as easy as using an intent. You will have to do the manual coding.
Related
I am working on automated recorded voice calls system. If i use this,
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
This just makes the audio call. But i want a call to be done to a number with a prerecorded voice message. Can anyone please tell how to do this and oblige
Thanks in advance.
It is not possible in android unless you have a root permission
It locks microphone and will not let anyone access it or morph the input.
Even you cannot record dual voice(Incoming and outgoing) on call
I'm new on android and i want make phone call without use the intent.
I know that this code:
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:" + bundle.getString("mobilePhone")));
context.startActivity(intent);
Can i make call in android programmatically without use "Intent"?
Do you have any answer?
Thanks
Can i make call in android programmatically without use "Intent"?
Not from an ordinary Android SDK app. A custom ROM mod certainly could.
You can't, and that's a security feature.
See http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL and http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL
The following code sends a call forwarding command via intent
Intent intentCallForward = new Intent(Intent.ACTION_CALL);
intentCallForward.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromParts("tel", "*21*001234567890#", "#");
intentCallForward.setData(uri);
startActivity(intentCallForward);
The issue with this code is that it shows a popup which is a bit weird, is there a way to prevent this? Maybe via NDK or something like that?
Thanks in advance
The intent invokes the phone's phone activity. It is the source of your pop-up.
That is why you cannot change it or disable it.
If it really bothers you, you can include in your app some other calling activity and perform the call internally (not via intent), but I'm not sure such thing even possible, and it is surely doesn't worth the effort.
Can any body suggest me, any Android Intent to make SIP Call? or even third party framework/lib/app, which has the facility to be invoked using an intent and some parameters will be fine.
Kindly Note: Not regular phone call, needed intent for SIP/Internet Phone call.
Thanks In Advance.
1) Do you mean you want to implement a SIP app?
Then, check this:
http://developer.android.com/guide/topics/connectivity/sip.html
Make you app and listen to ACTION_CALL.
Or
2) Do you want to invoke a calling app?
Then the usual ACTION_CALL will do.
(For example, in my phone ACTION_CALL will prompt me if I want to use Skype or Phone App)
Added:
I am using SipDroid in one of my phone. This is what happens when I try to make call:
Alternatively, if you meant to create an Intent, you could trying looking into declaring a custom scheme within an IntentFilter in your AndroidManifest.xml, such as calling an Intent with a sip:<numberToCall> will open your Activity.
I am using this code to make call
Intent callIntent = new Intent(Intent.ACTION_CALL,
Uri.parse("tel:" + phoneNumber));
startActivity(callIntent);
and I want to disconnect call after hear first ringing to leave a miss call on the destination phone.
I don't believe that's currently available in the Android sdk. I was trying to control outgoing calls on a project recently but other than dialing a number there's not a lot you can do. My last project needed to place a call, press a button, then hangup. For that I ended up setting up an Asterisk server that listened to a web page. You could do something similar but that would involve using a data connection to your own server.
You can check out these links. I don't like this answer but it's the way it is for now.
How to make a phone call in android and come back to my activity when the call is done?
http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL
If you want to step outside of techniques I would recommend check out the this answer.