actionbarsherlock - ActionBar ShareActionProvider does not open on clicks -


i add shareactionprovider 1 of fragments options menu:

<item     android:id="@+id/options_share_forecast"     android:actionproviderclass="com.actionbarsherlock.widget.shareactionprovider"     android:showasaction="always"     android:title="@share_forecast"/> 

i see action item correct share icon, cant click open it. first throught problem using wrong intent. seems not cause. looked in samples actionbar sherlock. , copy , pasted code ensure nit miss small piece there. still no luck. difference see there sample shareactionproviders inherit sherlockactivity mine sherlocklistfragment

my listfragment oncreate looks this:

@override public void oncreate(final bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setretaininstance(true);     sethasoptionsmenu(true);             ... 

i test on nexus 10, no emulator plenty of apps installed.

so miss there ?

ok, after deeper research stumpled on this bug report. if remove

  mshareactionprovider.setsharehistoryfilename("some_custom_history_name.xml"); 

i can click menu expected! or u have swap method calls.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -