public static int getAndroidSDKVersion() { 
   int version; 
   try { 
     version = Integer.valueOf(android.os.Build.VERSION.SDK); 
   } catch (NumberFormatException e) { 
     Log.e(e.toString());
   } 
   return version; 
}