Skip to content

How to set the default dialer to be the default phone app? #294

Answered by vestrel00
Gliting29 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Gliting29, this is a good question. I spent a few hours searching the internet for an answer. I could not find one. I also played around with the code inside requestToBeTheDefaultDialerApp to see what can be done and found no solution.

Let's take a look together. The code this library current use to change the default dialer app to the app executing the code is in DefaultDialerRequest.kt,

fun Activity.requestToBeTheDefaultDialerApp() {
    ...
    if (
        Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&
        Build.VERSION.SDK_INT < Build.VERSION_CODES.Q
    ) {
        val intent = Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER)
            .putExtra(TelecomManager.EXTRA…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vestrel00
Comment options

Answer selected by vestrel00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants