LoginSignup
5
5

More than 5 years have passed since last update.

AndroidでTwitterに連携する時に悩んだこと

Posted at

URLで文字列をTwitterのアプリに渡す時、#をそのまま書いても表示されません。

詳細は省きますが、#を入れてハッシュタグを付けたい時は

%23

といれましょう。
もしくは

エンコード変更することで解決できます。

String myTweet = Uri.encode("text=ツイートしたい内容 #テスト”);

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5