Get result from Share Via dialog

147 Views Asked by At
public boolean onLongClick(View v)  {

      Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
        shareIntent.setType("text/plain");
        shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Text here - " );
        shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, viewContentWebView.getUrl());

        startActivity(Intent.createChooser(shareIntent, "Link Goes to..."));
        return true;  
}

Hi all, With that code im trying to share webview's link with longpress. So, the user will press on webview for a while and will get "share via" menu.

But how could I get any result?

0

There are 0 best solutions below