Fragment’s onOptionsItemSelected doesn’t get called

If your Activity’s onOptionsItemSelected method returs true, the call is consumed in activity and Fragment’s onOptionsItemSelected is not called.
So, return false in your Activity onOptionsItemSelected method or parent class implementation via super.onOptionsItemSelected call (default implementation returns false).

According Activity class javadoc, method Activity.onOptionsItemSelected should:

Return false to allow normal menu processing to proceed, true to consume it here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)