Note that there are some explanatory texts on larger screens.

plurals
  1. POonCreateOptionsMenu() is called twice when switching tabs and OnOptionItemSelected() is not called
    primarykey
    data
    text
    <p>I have 3 tabs in my application using <strong>actionbarSherlock</strong> and <strong>achartengine</strong> library in the app too: Its like when i start my application and move from the home tab to the 2nd tab or even if i move to 3rd tab the my <code>onCreateOptionsMenu()</code> is called twice due to which <code>onOptionItem</code> Selected is never called and its called when i go to 3rd tab and come back to the 2nd tab then <code>onCreateOptions</code> menu is called only once and then <code>onOptionItemSelected</code> is called.</p> <p>Total of 3 tabs in an application using <code>action bar sherlock</code> and <code>achartengine</code> library</p> <p><strong>case 1</strong>: moving from 1st Tab ---->>>> 2nd tab : <code>onCreateOptionsMenu()</code> is called twice and <code>onOptionItemSelected()</code> is not called</p> <p><strong>case 2</strong>: moving from 1st Tab ---->>>> 3rd tab : <code>onCreateOptionsMenu()</code> is called twice and <code>onOptionItemSelected()</code> is not called</p> <p><strong>case 3</strong>: moving from 1st Tab ---->>>> 3rd tab --->>>2nd Tab : <code>onCreateOptionsMenu()</code> is called once and <code>onOptionItemSelected()</code> is also called</p> <p><strong>case 4</strong>: moving from 1st Tab ---->>>> 2nd tab --->>> 3rd Tab : <code>onCreateOptionsMenu()</code> is called once and <code>onOptionItemSelected()</code> is also called</p> <p>Please suggest me a solution to this problem. Its been 4-5 days since the issue is troubling me.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload