Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to put \n value or <br> in (new line) in BasicNameValuePair
    primarykey
    data
    text
    <p>I want to send message with many new line or some bold text or also with some hyperlink</p> <p>For example: Below is my code</p> <pre><code> List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(1); String model = Build.MODEL + ", " + Build.MANUFACTURER; nameValuePairs.add(new BasicNameValuePair("message", "Your Last Alert: On "+mDate+" at "+mTime+", "+ model +" reported that its battery level was down to "+batteryLevel+". You might want to get it on a charger before it's too late! &amp;nbsp;&amp;nbsp Do you know where "+model+" is? &lt;/br&gt;&lt;/br&gt; Click "+s+" to view in Google Maps.\n To find "+model+" with the Last Alert app on Android-phone, click here. \n\n\n\n\n\n Last Known Location : \n San Francisco California United States 94108"+"\n\n\n\n\n GPS Coordinates \n"+lat+", "+lon+"Altitude\n"+alt+"\n\nLocation Accuracy"+"16.40ft Diameter")); </code></pre> <p>I have used <code>&amp;nbsp;</code> for space, <code>&lt;br&gt;</code> for new line also <code>\n</code> for new line but the problem is message in sent in only plain text only ( i have sent mail in gmail which is my account) like below</p> <pre><code> Your Last Alert: On 10/04/2012 at 03:23 pm, LG-P500, LGE reported that its battery level was down to 100. You might want to get it on a charger before it's too late! &amp;nbsp Do you know where LG-P500, LGE is? Click https://maps.google.com/maps?q=0.0,0.0 to view in Google Maps. To find LG-P500, LGE with the Last Alert app on Android-phone, click here. Last Known Location : San Francisco California United States 94108 GPS Coordinates 0.0, 0.0Altitude -1.79769313486231E308 Location Accuracy16.40ft Diameter </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload