Coder Social home page Coder Social logo

Comments (4)

shmehdi01 avatar shmehdi01 commented on August 10, 2024

I want reset my app setting and go back to system dialer app? How it is possible?

from simple-phone.

arekolek avatar arekolek commented on August 10, 2024

One option is to delete the phone app you don't want, the system will revert to default one.

Another is to find the "Default apps" settings in your phone system settings, which exact location vary depending on the manufacturer.

Like mentioned in the README, in stock Android that's: Settings -> Apps & notifications -> Advanced -> Default apps -> Phone app:

from simple-phone.

shmehdi01 avatar shmehdi01 commented on August 10, 2024

I know but i want to reset programmatically, if i uninstall the app when ever i reinstall it automatically detect if previously used as default dialer.

from simple-phone.

arekolek avatar arekolek commented on August 10, 2024

The best you can do is to use an intent with ACTION_MANAGE_DEFAULT_APPS_SETTINGS

Maybe, you could also find out what the system dialer is by doing what Android does and then pass that package name instead of yours to the

Intent(ACTION_CHANGE_DEFAULT_DIALER)
    .putExtra(EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME, packageName)

and I wouldn't expect anything more automated than that, because it would be weird if an app could change the dialer without asking the user about it.

from simple-phone.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.