Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ShareActionProvider for API level less than 14

is it possible to use shareActionProvider for Apps using API less than 14?

like image 974
SKK Avatar asked Oct 23 '12 04:10

SKK


3 Answers

It is now possible to do this using the v7 support library.

http://developer.android.com/reference/android/support/v7/widget/ShareActionProvider.html

like image 103
Kyle Falconer Avatar answered Nov 04 '22 07:11

Kyle Falconer


No you can't use it on pre ICS SDK maybe using v4 support library, see this topic Cross version ShareActionProvider support You can use ActionBarSherlock to support older versions, see this example ShareActionProviders.java

like image 45
Ahmad Kayyali Avatar answered Nov 04 '22 07:11

Ahmad Kayyali


In case someone faces frustration in finding what libary to import (not very clear reading off the documentation):

import android.support.v7.widget.ShareActionProvider;

One thing that I guess, gives you a clue is the URL of the docs you are looking at, which I believe corresponds to the API structure:

enter image description here

For myself, this has so far worked for the compatibility-library-related docs.

like image 2
user919426 Avatar answered Nov 04 '22 07:11

user919426