I try to open Url in web browser but when I do it , the url go to Google
this is my Code :
String jokeUrl = "http://example.com/send.php?p1=" + deviceId + "&p2=" + strName + "&p3=" + Integer.toString(rate) + "&p4=";
String url = strComment;
url = url.replaceAll("\\n", "%0A");
url = url.replaceAll(" ", "%20");
jokeUrl = jokeUrl + strComment;
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(jokeUrl));
startActivity(browserIntent);
for example when I write long text , it's going to Google but when I send short text it's normally.
my TextView for strComment :
<EditText
android:id="@+id/etComment"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:layout_weight="1"
android:ems="10"
android:maxLength="300"
android:inputType="textMultiLine"
android:maxLines="5" />