ShareActionProvider for API level less than 14
Asked Answered
L

3

8

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

Lowe answered 23/10, 2012 at 4:42 Comment(0)
J
12

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

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

Janik answered 3/9, 2013 at 20:55 Comment(0)
H
2

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

Helvetian answered 23/10, 2012 at 5:18 Comment(0)
T
2

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.

Trimer answered 14/9, 2014 at 13:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.