The new ShareActionProvider available in Android 4.0 (or in earlier versions if you’re using ActionBarSherlock) has a feature where the last used item is displayed in the action bar. Is there anyway to turn this off?
The new ShareActionProvider available in Android 4.0 (or in earlier versions if you’re using
Share
There is no API to do this. However, the class is really simple and you could very easily create your own version of
ShareActionProviderthat did not keep a history. You would just have to determine the sort order of the possible targets using some other means of ordering (e.g., alphabetically).