Android studio mail extra_text with space

You're trying to send an email from your Android app using Android Studio, and you want to add extra text with a space in the email body. Here's how you can do it:

Using the String.format() method:

You can use the String.format() method to add a space between the extra text and the actual text. Here's an example:

String extraText = "Hello ";
String actualText = "World!";
String emailBody = String.format("%s%s", extraText, actualText);

In this example, the String.format() method will concatenate the extraText and actualText strings with a space in between.

Using the + operator:

You can also use the + operator to concatenate the strings with a space in between:

String extraText = "Hello ";
String actualText = "World!";
String emailBody = extraText + " " + actualText;

Using the StringBuilder class:

You can also use the StringBuilder class to add the extra text and space to the email body:

StringBuilder sb = new StringBuilder();
sb.append("Hello ");
sb.append(" ");
sb.append("World!");
String emailBody = sb.toString();

In all cases, you can then use the emailBody string as the body of your email.

Remember to replace the extraText and actualText variables with the actual text you want to send in your email.