Friday, 15 July 2011

jquery - How to disable back key button in Android -


This question and an answer is already here is:

  • 11 response

    I really straight As the answer is, how do I always disable the back button on the dead end (hardware back button) and why did I need to write the code to disable it? I want my app's user to use navigation on my app.

    Just your onCreate following:

      @Override public void onBackPressed () {}   

    now if you want to do anyUpdate before backButton:

      @Override public void onBackPressed () {// your function That update}   

    API:.

    Go to your appearance and tab see, minimumSDK there should be 5

      SDK_INT value Build.VERSION_CODES name of the human variant 1 based on Android 1.0 2 BASE_1_1 Android 1.1 3 cupcake Android 1.5 cupcake 4 donut Android 1.6 donut 5 ECLAIR Android 2.0 Eclair 6 ECLAIR_0_1 Android 2.0.1 Eclair 7 ECLAIR_MR1 Android 2.1 Eclair 8 Froyo Android 2.2 Froyo 9 Gingerbread Android 2.3 Gingerbread 10 GINGERBREAD_MR1 Android 2.3.3 Gingerbread 11 honeycomb Android 3.0 honeycomb 12 HONEYCOMB_MR1 Android 3.1 Honeycomb 13 HONEYCOMB_MR2 Android 3.2 Honeycomb 14 ICE_CREAM_SANDWICH Android 4.0 Ice Cream Sandwich 15 ICE_CREAM_SANDWICH_MR1 Android 4.0.3 Ice Cream Sandwich 16 JEL LY_BEAN Android 4.1 Jelly Bean 17 Jelly Bain NimR1 Android 4.2 Jelly Bean 10000 QDRDAAPAP Current Development Build    

No comments:

Post a Comment