how we can add menu item dynamically
问题 hi frnds am creating an application which is a tab application. in my Home which extends sherlockFragmentActivity, i am inflating menu.xml and includes code for on optionMenuitem click listener. The Fragmentactivity contains tabhost and on each tab it load fragments. this is my menu.xml <item android:id="@+id/action_settings" android:orderInCategory="100" android:showAsAction="always" android:icon="@drawable/setting_selector" android:title="" > <menu > <item android:id="@+id/Profile" android