Android - openOptionsMenu doesn't work in onCreate

Posted by kape123 on Stack Overflow See other posts from Stack Overflow or by kape123
Published on 2010-05-05T22:01:13Z Indexed on 2010/05/05 22:08 UTC
Read the original article Hit count: 564

Filed under:

Is there any other way to call openOptionsMenu after activity is displayed without using something like this:

new Handler().postDelayed(new Runnable() {
            public void run() {
                openOptionsMenu();
            }
        }, 1000); 

Reference: http://groups.google.com/group/android-beginners/browse_frm/thread/b10a8ea840c07725/1ce48bb147a3ed1a?#1ce48bb147a3ed1a

© Stack Overflow or respective owner

Related posts about android