I have developed an android application where i have used notification to be displayed when the application starts
The application works perfect when i run the code
addAction() was added to API Level 16; Android 4.0.4 runs API Level 15. Either switch to NotificationCompat.Builder from the Android Support package, or only call addAction() if Build.VERSION.SDK_INT>=Build.VERSION_CODES.JELLY_BEAN.
addAction()
NotificationCompat.Builder
Build.VERSION.SDK_INT>=Build.VERSION_CODES.JELLY_BEAN