if (Build.VERSION.SDK_INT > Build.VERSION_CODES.GINGERBREAD) {
//--incompatible code--
} else {
//--compatible code--
}
The condition runs into incompatible code on Gingerbread. Does Build.VERSION.SDK_INT
represents actual device version ? or the SDK version the app has been compiled with ?