According to the documentation I saw, the android notification collector was introduced in API 11 and:
If your application supports devices older than API level 11, you should use NotificationCompat.Builder, in which case you can just use build()all the time.
NotificationCompat.Builder
build()
getNotification() , API 16 . . , getNotification() build() .
getNotification()
Raghav, , API.
API Runtime.
if (android.os.Build.VERSION.SDK_INT>=android.os.Build.VERSION_CODES.JELLY_BEAN) { // call something for API Level 16+ } else if (android.os.Build.VERSION.SDK_INT>=android.os.Build.VERSION_CODES.HONEYCOMB) { // call something for API Level 11+ }