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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -