|
|
@@ -494,12 +494,12 @@ public class MainActivity extends AppCompatActivity {
|
|
|
try {
|
|
|
JSONObject json = new JSONObject(msg);
|
|
|
String urlStr = json.getString("url");
|
|
|
- URL url = new URL(urlStr);
|
|
|
+// URL url = new URL(urlStr);
|
|
|
|
|
|
Intent share = new Intent();
|
|
|
share.setAction(Intent.ACTION_SEND);
|
|
|
share.setType("text/plain");
|
|
|
- share.putExtra(Intent.EXTRA_STREAM, url);
|
|
|
+ share.putExtra(Intent.EXTRA_TEXT, urlStr);
|
|
|
|
|
|
self.startActivity(Intent.createChooser(share, "Share"));
|
|
|
|