Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何在通话中使用拨号板?_Android - Fatal编程技术网

Android 如何在通话中使用拨号板?

Android 如何在通话中使用拨号板?,android,Android,我正在开发会议管理器应用程序。我正在使用ACTION_CALL功能拨打电话,使用ACTION_拨号拨打电话号码。但是电话是分开的,拨号操作是分开的。有人能帮我吗?这是我的代码 私有无效呼叫器配置文件ID{ ProfileDo profile = adapter.getProfile(profileid); int stepCount = 0; long previousStepDelay = 0; for (StepDO step : profile.getSt

我正在开发会议管理器应用程序。我正在使用ACTION_CALL功能拨打电话,使用ACTION_拨号拨打电话号码。但是电话是分开的,拨号操作是分开的。有人能帮我吗?这是我的代码

私有无效呼叫器配置文件ID{

    ProfileDo profile = adapter.getProfile(profileid);

    int stepCount = 0;
    long previousStepDelay = 0;
    for (StepDO step : profile.getSteps()) {
        Intent callIntent;

        String url = "tel:" + step.getValue();
        stepCount++;
        if (stepCount == 1) {

            callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(url));
            startActivity(callIntent);

        } else {
            try {
                Thread.sleep(previousStepDelay * 1000);
                System.out.println("hai");

            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            callIntent = new Intent(Intent.ACTION_DIAL, Uri.parse(url));

            startActivity(callIntent);

        }
        previousStepDelay = step.getDelay();

    }
}
}