I found the error. The problem was that support library requires to have a custom prefix and not android:actionProviderClass
. What i was doing wrong that i used android:actionProviderClass
instead of customprefix:actionProviderClass
See here: https://developer.android.com/training/basics/actionbar/adding-buttons.html