Thursday, 25 August 2011

Android version getting programatically

            try{
                     int currentapiVersion = android.os.Build.VERSION.SDK_INT;
                     if(currentapiVersion>=7){
                       //write your logic
                     }
                 }catch (Exception e) {
                    // TODO: handle exception
                }

No comments:

Post a Comment