title: Different languages in Android without resource files
body: <p>I have a question regarding mutiple languages for Android Apps. I know it is common pratice to use resource files for your strings (Android Studio always reminds you of this if you have forgotten). However, I am wondering how to do this for the following two elements:</p>
  
  <ol>
  <li>Pictures that have different language contents</li>
  <li>String variables within a class that are not explicitly defined in the XML layout file</li>
  </ol>
  
  <p>How would you handle these issues? I'd appreciate every comment. </p>
  
  <p>Update: Here is an example of a String variable that I use in the code (but not in a XML-Layout file). It is the string 'Comment' in an AlertDialog:</p>
  
  <pre><code>  AlertDialog.Builder builder = new AlertDialog.Builder(this);
              builder.setTitle("Comment");
  
          // Set up the input
              final EditText input = new EditText(this);
          // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text
              input.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_NORMAL);
              input.setSingleLine(false);
              input.setLines(3);
              input.setText(comment_Text);
              builder.setView(input);
  
  
          // Set up the buttons
              builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      comment_Text = input.getText().toString();
                  }
              });
              builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      dialog.cancel();
                  }
              });
  
              builder.show();
  </code></pre>