I Want to develop Full Screen caller application with Caller details and accept call and ignore button how to achieve this? .I searched a lot but i'm not able to find solution or any reference, so anyone can lead or help me or any reference it would be helpful for me, thanks in advance happy coding.
I'm not going to give you ready-made code even though I could probably dig into my own and do it. You said you searched a lot but if this were true, you'd have found many references to articles and docs such as these.
Get contact data from number
Take control of calls programmatically
Detect incoming calls
Interesting considerations for incoming calls
That should get you started. But it should go someting like this: Register that you want to be notified when incoming calls are received. On that notification you receive launch your own activity that takes control of the calls programmatically (button to dismiss, button to accept?). That screen can show whatever you want, beit the contact information you retrieved from the phone number, a photo, etc.
Related
I am building an Android app and want to initiate an anonymous phone call for both caller and receiver.
For example:
User A press 'call User B' button, and then initiate an anonymous phone call to User B. The tricky point is that both User A and B don't know each other's phone number and after the conversation, there is no record left and privacy is protected.
I don't know if native Android can do this. Could anyone give me some clues about this? Thank you very much!
According to the platform source-code there is NO WAY to place a call without the knowledge of the user. The best thing you can do is to make the call automatically but the user will see a dialog saying: "Calling XXXXXXXX" and he will have the chance to cancel it.
Even if you make your own dialer application you will have to sign it with the system key and place it in the system/apps folder in order to get the required permissions for that kind of things.
As for the call log, I don't know if you can make the call not to appear in it in the first place but I think (not sure though) that you can find it and deleted afterwards. Android informs other applications of call actions via Intents so it is relative easy to detect when a call ended and then query the call log.
Hope this helps...
I hope someone can help me. I can't seem to find anything that gives me a straight answer or that works.
So basically on my Phone app the user enters their age which I will then save and pass to the Watch.
For now to get it working i'm just using a hardcoded int value.
So what I want the watch to do is when the user enters a certain activity on the watch that it will retrieve this value each time from the phone and be displayed.
Obviously I intend to do more than just display it but if I could get it displaying first it would mean that its being retrieved.
Can anyone help me? Thanks in advance.
Take a look at http://developer.android.com/training/wearables/data-layer/index.html and choose accordingly to your context the appropriate API(s).
In said activity on the watch, implement GoogleApiClient. In the onConnected() method send a message to your phone via Wearable.MessageApi.sendMessage Assuming you want to retrieve this information from the phone while the app is not open on the phone, use a WearableListenerService on the phone to receive the message. Now you have successfully told the phone you want info! Simple gather the info you need while still in the WearableListenerService and send another message back to the watch via Wearable.MessageApi.sendMessage
Let me know if you have any more questions
I want to program an app to make my life easier. Each time when I go to my work, I have to go to a phone, call a number and press some numbers and give my work id and function to book/ register my time at work.
So now I want to make a little app with some buttons to register and deregister. I want to push the button and make a call in the background and emulate dialing my id and function.
I found out how to make a call:
http://www.mkyong.com/android/how-to-make-a-phone-call-in-android/
But I didn't find out how to put this into the background and make the app pretend dialing.
Wouldn't it be simpler to place the numbers in your Contact list? Then create a widget for each. I do the same thing to automatically enter the password when I check my voicemail. See: http://www.androidcentral.com/adding-pauses-contacts-dialing-extensions
I know this is a developer Q&A site, but have you looked at Tasker? Very robust. Very thorough.
https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
OK I want to be able test internal phone systems in an automated fashion using an Android app, the requirements are asking for an app which can initiate a call programatically. If this is possible then when the call starts they wish to be able to send key presses, like imagine the phone menu says "press 5 to get to the X menu".. can we send that keypress from code? This way the whole system could be tested with a series of waits, and keypresses sent to the dialler.
I'm not sure how to find out if this is actually possible.. I saw PROCESS_OUTGOING_CALLS, but I havent been able to find any resources or examples on doing this, does anyone have any information? I actually got in touch with a freelancer who ended up saying it was definitely not possible (he's pretty good and he simply said 'pressing dialpad during call was impossible'), but my client is telling me apps already exist to do this, so any tips would be helpful!..
You can definitely make a call from code. See:
How to make a phone call programmatically?
You can invoke key presses from code as well:
Invoke keypress event in android?
As for doing it during a call, I haven't tried this, But you can try it using the methods from the links. Good luck!
I am wondering if there is a way to send a message to users that have entered your wifi's reach? I am not sure if this is possible or how it's called.
A hint of what to look for or some sample code (if this is possible at all) would be much appreciated!
The only thing that is possible as far as I know is to add software to your accesspoint to do a splash screen (or possibly a login page).
This would not completely solve your use-case, but like the various "free" wifi in bars you do need to log in to first, you need to open a browser first and perform an action, before you have a real connection.
You could just skip the authentication-part, and put your message on the splash screen.
A random example of what you can find on the internet is this: http://www.dd-wrt.com/wiki/index.php/NoCatSplash
I have no experience with it, but it seems to serve above mentioned purpose, and you can easily go from there.
I am aware that this is NOT an android specifi answer, but as far as I know it is not an android specific question: you want to send a message to people connection to your wireless.