安卓:拨号自定义数字调用一次回升 [英] Android: Dialing a custom number once call picked up

查看:185
本文介绍了安卓:拨号自定义数字调用一次回升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作是拿起呼叫的应用程序,并在通话过程中,拨号盘,它进入pviously保存或复制了一些$ P $。首先,我想知道这甚至有可能。其次,我一直有些想法想,但我不知道他们会如何疯狂是因为我是比较新的Andr​​oid和有关于它的局限性小的想法:

I am working on an app that picks up a call, and in the dial pad during the active call, it enters a number previously saved or copied. First, I would like to know if this is even possible. Second, I have been thinking of some ideas, but I have no idea how wild they may be as I am relatively new to Android and have little idea about its limitations:


  1. 存放在剪贴板上的数字,并且有一些方法来点击呼叫屏幕贴,将简单的数字粘贴到拨号

  2. 在拿剪贴板中存放的数每一位和编程preSS在手机键盘的按键,用户,否则触摸

  3. 打开我自己的应用程序中的来电可以接听电话并有贴/在拨号数字相加的能力

  4. 覆盖上,在通话弹出的小键盘的键(比如退格键),重新编程的它来执行我想要的(所以不是退格的功能,它会进入保存的号码)

  1. Store a number in the clipboard, and have some way to click paste in the call screen which will simply paste the number into the dialer
  2. Take each digit in the number stored in the clipboard, and programatically press the keys on the phone pad which the user would otherwise touch
  3. Open the incoming call in my own application which can answer the call and has the capability to paste/add numbers in the dialer
  4. Override one of the keys on the numpad that pops up in a call (say the backspace key), and reprogram it to perform the function I want (so instead of backspacing, it would enter the saved number)

是任何一个在所有可能的(为什么或者为什么不)?或者你可以提出任何其他方式来完成我想要什么?谢谢,非常感谢。

Are any of these at all possible (why or why not)? Or can you suggest any other way to accomplish what I want? Thanks, much obliged.

编辑:让我更加具体。这是我针对屏幕:

Let me be even more specific. This is the screen I am targeting:



我需要的部分的方式来获得一个自定义数字到这个领域。不要紧,怎么样,我只是需要一个领导或一个提示让我在正确的轨道上。我见过的人会做出定制拨号器应用程序,但他们做的是采取输入的号码并拨打电话。如果我必须让自己的应用程序,它必须能够拿起电话或访问拿起电话,和填充上述字段,或者它自己的领域,将提供相同的功能。

I need some way to get a custom number into this field. It doesn't matter how, I just need a lead or a tip to get me on the right track. I have seen people make apps that are custom dialers, but all they do is take an entered number and call. If I have to make my own app, it has to be capable of picking up the call or accessing the picked up call, and populating the above field, or its own field that would serve the same function.

推荐答案

我不认为这是对于一个API

I don't think there is an API for that

我想现在最好的办法是调用(可能通过接收器)时打开一个应用程序有一个TextView在那里你可以输入文本

The best way I'm thinking right now is to open an app during the call (maybe through Receiver) with a TextView where you can enter your text

然后在这里你可以让你的电话:

Then here you can make your call :

Intent intentCall = new Intent(Intent.ACTION_CALL, Uri.fromParts("tel", phoneNumber, null));
startActivity(intentCall);

但我不知道手机应用程序将如何反应

But I don't know how the phone app will react

这篇关于安卓:拨号自定义数字调用一次回升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆