title: How can i put a variable in string.xml?
body: <p>I have a variable settings in this way:</p>
  
  <pre><code>String result = " Non in carica";
  String resultusb = " No";
  
  --
  --
  
  if (isCharging) {
   result = " In carica";
  } 
  
  if (usbCharge){
   resultusb = " Si";
  } 
  </code></pre>
  
  <p>The variable <code>result</code> or <code>resultusb</code> assuming two values depending on the situation..there is no TextView only this, Only one variable with more values. I need translate them so i have to put them in the strings.xml.. How can i do it? How can i translate them?</p>