How to make outgoing calls?












0















I just started to write an app, that do outgoing calls.
Now I stuck in the process to make the call.
the only way I found at the monent to hand the call over to the phone app.
But I want to do it from wwith in my app.



Does anyone have a hint, how this can be done.



Greetings Richard










share|improve this question

























  • Take a look at this tutorial

    – Mikhail Olshanski
    Nov 14 '18 at 8:36
















0















I just started to write an app, that do outgoing calls.
Now I stuck in the process to make the call.
the only way I found at the monent to hand the call over to the phone app.
But I want to do it from wwith in my app.



Does anyone have a hint, how this can be done.



Greetings Richard










share|improve this question

























  • Take a look at this tutorial

    – Mikhail Olshanski
    Nov 14 '18 at 8:36














0












0








0


1






I just started to write an app, that do outgoing calls.
Now I stuck in the process to make the call.
the only way I found at the monent to hand the call over to the phone app.
But I want to do it from wwith in my app.



Does anyone have a hint, how this can be done.



Greetings Richard










share|improve this question
















I just started to write an app, that do outgoing calls.
Now I stuck in the process to make the call.
the only way I found at the monent to hand the call over to the phone app.
But I want to do it from wwith in my app.



Does anyone have a hint, how this can be done.



Greetings Richard







android call






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 12:12









Fantômas

32.6k156388




32.6k156388










asked Nov 14 '18 at 8:31









RichardRichard

262




262













  • Take a look at this tutorial

    – Mikhail Olshanski
    Nov 14 '18 at 8:36



















  • Take a look at this tutorial

    – Mikhail Olshanski
    Nov 14 '18 at 8:36

















Take a look at this tutorial

– Mikhail Olshanski
Nov 14 '18 at 8:36





Take a look at this tutorial

– Mikhail Olshanski
Nov 14 '18 at 8:36












2 Answers
2






active

oldest

votes


















0














it should look like this



Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:"+"yourPhone"));
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
layoutcall.setOnClickListener(view -> {
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE)
!= PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
// ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
// public void onRequestPermissionsResult(int requestCode, String permissions,
// int grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
return;
}
startActivity(callIntent);
});


and add below line to manifest



<uses-permission android:name="android.permission.CALL_PHONE" />





share|improve this answer


























  • I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

    – Richard
    Nov 16 '18 at 19:35





















0














Ok, now I start to understand.



I made a mistake in explaining, what I meant.



With the dialer interface, I meant the calling interface and the possibility to create an own one or to change the layout, that it fits my suggestions.



I think, that this is not possible. Or am I wrong?






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295896%2fhow-to-make-outgoing-calls%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    it should look like this



    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:"+"yourPhone"));
    callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    layoutcall.setOnClickListener(view -> {
    if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE)
    != PackageManager.PERMISSION_GRANTED) {
    // TODO: Consider calling
    // ActivityCompat#requestPermissions
    // here to request the missing permissions, and then overriding
    // public void onRequestPermissionsResult(int requestCode, String permissions,
    // int grantResults)
    // to handle the case where the user grants the permission. See the documentation
    // for ActivityCompat#requestPermissions for more details.
    return;
    }
    startActivity(callIntent);
    });


    and add below line to manifest



    <uses-permission android:name="android.permission.CALL_PHONE" />





    share|improve this answer


























    • I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

      – Richard
      Nov 16 '18 at 19:35


















    0














    it should look like this



    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:"+"yourPhone"));
    callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    layoutcall.setOnClickListener(view -> {
    if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE)
    != PackageManager.PERMISSION_GRANTED) {
    // TODO: Consider calling
    // ActivityCompat#requestPermissions
    // here to request the missing permissions, and then overriding
    // public void onRequestPermissionsResult(int requestCode, String permissions,
    // int grantResults)
    // to handle the case where the user grants the permission. See the documentation
    // for ActivityCompat#requestPermissions for more details.
    return;
    }
    startActivity(callIntent);
    });


    and add below line to manifest



    <uses-permission android:name="android.permission.CALL_PHONE" />





    share|improve this answer


























    • I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

      – Richard
      Nov 16 '18 at 19:35
















    0












    0








    0







    it should look like this



    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:"+"yourPhone"));
    callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    layoutcall.setOnClickListener(view -> {
    if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE)
    != PackageManager.PERMISSION_GRANTED) {
    // TODO: Consider calling
    // ActivityCompat#requestPermissions
    // here to request the missing permissions, and then overriding
    // public void onRequestPermissionsResult(int requestCode, String permissions,
    // int grantResults)
    // to handle the case where the user grants the permission. See the documentation
    // for ActivityCompat#requestPermissions for more details.
    return;
    }
    startActivity(callIntent);
    });


    and add below line to manifest



    <uses-permission android:name="android.permission.CALL_PHONE" />





    share|improve this answer















    it should look like this



    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:"+"yourPhone"));
    callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    layoutcall.setOnClickListener(view -> {
    if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE)
    != PackageManager.PERMISSION_GRANTED) {
    // TODO: Consider calling
    // ActivityCompat#requestPermissions
    // here to request the missing permissions, and then overriding
    // public void onRequestPermissionsResult(int requestCode, String permissions,
    // int grantResults)
    // to handle the case where the user grants the permission. See the documentation
    // for ActivityCompat#requestPermissions for more details.
    return;
    }
    startActivity(callIntent);
    });


    and add below line to manifest



    <uses-permission android:name="android.permission.CALL_PHONE" />






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 14 '18 at 8:57

























    answered Nov 14 '18 at 8:48









    Mohamad Mahdi FarzanehMohamad Mahdi Farzaneh

    264




    264













    • I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

      – Richard
      Nov 16 '18 at 19:35





















    • I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

      – Richard
      Nov 16 '18 at 19:35



















    I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

    – Richard
    Nov 16 '18 at 19:35







    I found out, that it is possible to define an different dialer call screen. But I don't find any description, how to do it. Does anyone have information's on that?

    – Richard
    Nov 16 '18 at 19:35















    0














    Ok, now I start to understand.



    I made a mistake in explaining, what I meant.



    With the dialer interface, I meant the calling interface and the possibility to create an own one or to change the layout, that it fits my suggestions.



    I think, that this is not possible. Or am I wrong?






    share|improve this answer




























      0














      Ok, now I start to understand.



      I made a mistake in explaining, what I meant.



      With the dialer interface, I meant the calling interface and the possibility to create an own one or to change the layout, that it fits my suggestions.



      I think, that this is not possible. Or am I wrong?






      share|improve this answer


























        0












        0








        0







        Ok, now I start to understand.



        I made a mistake in explaining, what I meant.



        With the dialer interface, I meant the calling interface and the possibility to create an own one or to change the layout, that it fits my suggestions.



        I think, that this is not possible. Or am I wrong?






        share|improve this answer













        Ok, now I start to understand.



        I made a mistake in explaining, what I meant.



        With the dialer interface, I meant the calling interface and the possibility to create an own one or to change the layout, that it fits my suggestions.



        I think, that this is not possible. Or am I wrong?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 16 '18 at 15:27









        RichardRichard

        262




        262






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295896%2fhow-to-make-outgoing-calls%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Bressuire

            Vorschmack

            Quarantine