Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何输入\n值或<;br>;基本名称对中的in(新行)_Android_Http_Android Webview - Fatal编程技术网

Android 如何输入\n值或<;br>;基本名称对中的in(新行)

Android 如何输入\n值或<;br>;基本名称对中的in(新行),android,http,android-webview,Android,Http,Android Webview,我想发送的信息与许多新行或一些粗体文字或一些超链接也 下面是我的代码 List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1); String model = Build.MODEL + ", " + Build.MANUFACTURER; nameValuePairs.add(new BasicNameValuePair("message", "Your Last Alert:

我想发送的信息与许多新行或一些粗体文字或一些超链接也

下面是我的代码

  List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(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! &nbsp;&nbsp Do you know where "+model+" is? </br></br> 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"));
  • 您是否已将“内容类型”(在http请求的标头中)设置为:
    text/html
  • 将您的信息包装到
  • 使用

    标记代替
    \n
  • 您是否已将“内容类型”(在http请求的标头中)设置为:
    text/html
  • 将您的信息包装到
  • 使用

    标记代替
    \n
  • 猜。。尝试将“


    ”替换为“


    ”。这可能会解决你的问题

    猜测。。尝试将“


    ”替换为“


    ”。这可能会解决你的问题

     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!  &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