i created a toolbar using the tutorial 
: http://developer.android.com/training/appbar/index.html
i added options menu(created menu.xml and did all other stuff). I have 
override the onoptionsitemselected() function also.
code:

public boolean onOptionsItemSelected(MenuItem item) {
    Log.i(TAG,"in option select");
    switch (item.getItemId()){
        case R.id.action_new:
            //open NewFileDailogeFragment:
            Log.i(TAG,"action_new selected");
            return true;

        case R.id.action_refresh:
            //refresh the listView
            return true;
        case R.id.action_browse:
            //open new activity to browse file and open it
            return true;
        default:
            return super.onOptionsItemSelected(item);
    }
}


but every time i click on option, it opens but this method is not called. I am 
not using any kind of fragments. Please explain me what is the problem. I cant 
find any solution to it on google.. I have searched for 2 hours, but i cant 
even get a hint of the problem causing this. And i am not using any fragment in 
my whole app (for now).

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5c545ba9-f007-459c-9ad9-72e008985e1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to