0

Hi i have a strange scenario where onCreateOptionsmenu not getting called when i run the program but when i keep a breakpoint it gets called for a device < 3 (Android OS) FOr Android OS > 3 fones its getting called . below is my code

public boolean onCreateOptionsMenu(Menu menu) 
    {
        android.util.Log.e("mmmmmmmmmmmmm", "Coming insside oncreateoptions menu");
        super.onCreateOptionsMenu(menu);
        if (FoneclayUtility.m_bIsLoggedIn == true)
        {
            android.util.Log.e("mmmmmmmmmmmmmmm", "Setting logout menu");
            getSupportMenuInflater().inflate(R.menu.menu_logout, menu);
        }
        else
        {
            getSupportMenuInflater().inflate(R.menu.menu_login, menu);
        }
        return true;
}
user1340801
  • 423
  • 3
  • 10
  • 21

0 Answers0