title: How can I link a string from one to another Class?
body: <p>I have two Java Classes. 
  "Stickers.java" which is only a Java class.
  "KeyboardService" which is the activity class.</p>
  
  <p>I have a String inside "Stickers.java" which needs to be overwritten from the activity java class "KeyboardService" by two button.</p>
  
  <p>How can I do it?</p>
  
  <p>I want to change the String "PACK_LIB" from "Stickers.java" by clicking Buttons. The first Button "b1" will overwrite the "PACK_LIB" with "allstickers" and the other button "b2" with "teststickers".</p>
  
  <p>But how can I tell "KeyboardService.java" where the String is. Because it is in a different java class?</p>
  
  <p>// Stickers.java</p>
  
  <pre><code>public void setDefaultStickerPack() {
      checkVersion(true);
      InputStream in = null;
      String packList[]=new String[0];
      String PACK_LIB = "";
      final String PACK_APP="pack_app";
      final String PACK_ICON="pack_on.png";
      String curAssets="";
  </code></pre>
  
  <p>// KeyboardService.java</p>
  
  <pre><code>    final String[] PACK_LIB = {""};
  
      final Button button1 = (Button) mainBoard.findViewById(R.id.b1);
      button1.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              PACK_LIB[0] = "allstickers";
          }
      });
      final Button button2 = (Button) mainBoard.findViewById((R.id.b2));
      button2.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
  
              PACK_LIB[0] = "teststickers";
          }
      });
  </code></pre>
  
  <p>I also tried to import the java class "Stickers.java" into "KeyboardService" . But it doesnt work propably, it will not find the String "Pack_LIB" from "Stickers.java".</p>