DO NOT MERGE - Add ShareCompat to the support library.

ShareCompat provides some extra extensions to the
ACTION_SEND/ACTION_SEND_MULTIPLE Intent protocol for sharing content
between applications.

ShareCompat.IntentBuilder is a helper that can construct sharing
intents with the proper metadata for sharing content.

ShareCompat.IntentReader is a helper for parsing the data shared by a
sharing intent.

Either of these helpers may be used in isolation. Extra data will be
added to communicate the package and activity info about the app
sharing the content, and the receiving app can make use of that data
whether it was supplied through startActivityForResult or extra
metadata added by ShareCompat.IntentBuilder.

ShareCompat.configureMenuItem can set up a MenuItem for sharing
depending on what UI capabilities are available on the current
platform version.

Make sure sharing intents constructed with ShareCompat helpers set
Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET.

Change-Id: I74be64d9f70162e5d9ed833551856ddaadc24992
3 files changed
tree: de28d06a7ca4aa5828e6d6497928bb4378037a77
  1. v13/
  2. v4/