Jak tweetować zarówno URL jak i Hashtagi
Następującyten przykład w innym wątku mogę tweetowaćzarówno adres URL:
<code>String tweetUrl = "https://twitter.com/intent/tweet?text=PUT TEXT HERE &url=" + "https://www.google.com"; Uri uri = Uri.parse(tweetUrl); startActivity(new Intent(Intent.ACTION_VIEW, uri)); </code>
który pojawia się jako:
TUTAJ TUTAJhttps://www.google.com
lub hashtagi:
<code>String tweetUrl = "https://twitter.com/intent/tweet?text=PUT TEXT HERE &url=" + "https://www.google.com &hashtags=android,twitter"; Uri uri = Uri.parse(tweetUrl); startActivity(new Intent(Intent.ACTION_VIEW, uri)); </code>
który pojawia się jako:
TUTAJ TEKST TUTAJ #android #twitter
Ale z jakiegoś powodu nie mogę pokazaćobie adres URL i hashtagi w polu twitter.
Co ja robię źle?