According to the official documentation the NotificationCompat.Builder class should have method addAction, however I am unable to find it (I am getting “The method addAction(int, String, null) is undefined for the type NotificationCompat.Builder”)
Has anyone figured out how to access this method?
The missing methods have been added to Android support library r11. To add it to your project you must:
Open the Android SDK Manager. Scroll down and find the
Extras/Android Support Library Package. Check the revision column,
if you have anything less then 11 you need to update your SDK first.
In Eclipse that is done through the menu Help/Check for Updates.
After you install the Android Support Library you must manually copy
it into your project’s libs folder. The jar is located at:
.