This commit is contained in:
parent
85a06b6b5f
commit
26a802d52b
@ -39,7 +39,7 @@ public class MainActivity extends Activity {
|
|||||||
|
|
||||||
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
|
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
|
||||||
sharingIntent.setType("text/plain");
|
sharingIntent.setType("text/plain");
|
||||||
sharingIntent.putExtra(Intent.EXTRA_TEXT, fixedUrl);
|
sharingIntent.putExtra(Intent.EXTRA_TEXT, fixedUrl.toString());
|
||||||
startActivity(Intent.createChooser(sharingIntent, "Share via"));
|
startActivity(Intent.createChooser(sharingIntent, "Share via"));
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
|
Reference in New Issue
Block a user