android - ShareActionProvider not working without shareIntent being ready -
in app, have alternative of sharing images gridview
. currently, when share menu selected, prepare shareintent
contains uris of selected images , phone call intent.createchooser()
.
i'd utilize shareactionprovider, in order share menu item clickable, when backed shareactionprovider, shareintent
has specified.
how can specify shareintent within oncreateoptionsmenu()
if don't know images chosen? expect prepare shareintent within onoptionsitemselected()
function.
as side note, doing fragment , not activity, create difference?
thank you,
gary
android shareactionprovider
No comments:
Post a Comment