Sorry for the noob question, but I've always used ShareActionProvider from ActionBarSherlock. Now I don't want to use ActionBarSherlock at all - i want to use side menu and have a button for sharing - can I do it ?
You can put this in a click listener or something similar.
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
Which should show a dialog like this:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.