title: Concatinating Arabic and English text android TextView
body: <p>I have the following algorithm to be able to concatenate Arabic text and English text</p>
  
  <pre><code>private String getFormatedArabicEnglishMessage (String [] parts) {
  
      String retString = "";
  
      for (int i = 0; i &lt; parts.length; i++) {
  
          if (MyServices2Utils.isProbablyArabic(parts[i]) == true) {
              retString += "\u202B" + new String(" ") + "\u202C";
              retString += "\u202B" + new String(parts[i].getBytes()) + "\u202C";
              retString += "\u202B" + new String(" ") + "\u202C";
          } else {
              retString += " ";
              retString += parts[i];
              retString += " ";
          }   
      }
  
      return retString;
  }
  </code></pre>
  
  <p>but is is not working in all cases :</p>
  
  <p>in case of default locale == ar I got the following results :</p>
  
  <p><img src="https://i.stack.imgur.com/EwQs9.png" alt="enter image description here"> </p>
  
  <p>in case of default locale == en I got the following results :</p>
  
  <p><img src="https://i.stack.imgur.com/b6mwr.png" alt="enter image description here"></p>