How to make outgoing calls?
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
add a comment |
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
Take a look at this tutorial
– Mikhail Olshanski
Nov 14 '18 at 8:36
add a comment |
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
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
android call
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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" />
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
add a comment |
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?
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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" />
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
add a comment |
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" />
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
add a comment |
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" />
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" />
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
add a comment |
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
add a comment |
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?
add a comment |
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?
add a comment |
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?
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?
answered Nov 16 '18 at 15:27
RichardRichard
262
262
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Take a look at this tutorial
– Mikhail Olshanski
Nov 14 '18 at 8:36