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
Related
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.
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...
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 have an application from which a user can call another user with the click of a button.
I was wondering whether there was a way to place this call anonymously, hiding the phone number from the user and not saving it in the call history.
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've looked at a few posts here like this but this doesn't seem to do what I intend (unless I'm just doing it wrong.) The other posts I see are either about replacing the dialer with a custom dialer or passing an input to the dialer.
I don't want to replace the dialer and I don't want to pass the data where the user inputs a number and then sends it to the dialer.
I would just like to bring in the default dialer inside the app. Example:
1) The user opens the app, they see their default dialer but with a different heading (just so they know they're inside my app). They enter the number, press call it calls the number.
2) If the user presses their call button outside of the app, they just do the normal dialer without my app. So the user never uses my app in (2).
I think that's pretty clear but if not just let me know. Since I can't seem to find any tutorials or posts about doing this online, it leads me to wonder if this is against a policy? Or perhaps a concern the users will be confused as to what they're doing? I think with a different heading they can know if they are using my app or not.
I would just like to bring in the default dialer inside the app
Sorry, but that is not possible.
it leads me to wonder if this is against a policy?
If by "against policy" you mean "not possible from a technical standpoint", then yes, it is against policy. You cannot embed the UI from another process in yours, by and large. This is not unique to the dialer, or to your app.