hi again
search around but cant find a way to start developing this
Wanted to send an image to my phone (ftp) and when the image has
arrived and saved to my CD card i would like to have the phone ringing like
it was someone calling. When i answer the image will fill the screen.
What i have done so fare is is that the image is received and saved to CD card.
Only the Phone call thing missing
If you can give me a hint about what I need to do im happy
I know I can start a phone call activity with this code
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
Maybe it can be modified to create a dummy call?
Use the RingtoneManager to acquire a Ringtone object and then play() it.
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
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.
I have a simple application that needs to call a number and speech-to-text (as best as possible) whatever the other party is saying.
Simply put, if the other party says "Hello", then "Hello" would be displayed on the screen.
I can make a call using Intent.ACTION_CALL:
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:91234567"));
startActivity(callIntent);
However, how do I continue from there, to convert the received audio signals to text?
In Android, you cannot access or modify the call audio stream. Due to this, you cannot get what is being spoken, and hence cannot convert it to text.
This app isn't possible on Android.
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.
I'm trying to make a call from my android app using the code below
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
Now i'm able to make a call from my device successfully but my requirement is that when the receiver of call (i.e. phone with number 123456789 )....picks the call he should be able to hear some custom message.....this custom message i should be able to give from my andriod app .....is it possible ?...any ideas ?