How to open the device setting on home button click - android -


want open setting of device when click on home button in device tried code when app start open device setting automatically

        @override     public void onattachedtowindow() {        super.onattachedtowindow();        this.getwindow().settype(windowmanager.layoutparams.type_keyguard);         startactivityforresult(new intent(android.provider.settings.action_settings), 0);     } 

how make code open setting of device when home key button clicked ?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -