title: Load an ini file in Project/app in Android?
body: <p>I have a file in Project/app/apiconfig.ini
  <a href="http://i.stack.imgur.com/iUsg3.png" rel="nofollow">like in this image</a>
  inside file:</p>
  
  <pre><code>api_key = API_KEY
  </code></pre>
  
  <p>I create class to read the ini file and get the values:</p>
  
  <pre><code>package br.com.adley.myseriesproject.library;
  
  import org.ini4j.Ini;
  
  import java.io.File;
  import java.io.FileNotFoundException;
  import java.io.IOException;
  import java.util.Collection;
  import java.util.HashMap;
  
  /**
   * Created by Adley on 15/04/2016.
   * Read a ini config file
   */
  public class ReadIniConfigFile {
      private String configurationFile;
      private final String defaultConfigPath = "apiconfig.ini";
      private HashMap&lt;String, String&gt; iniFile;
  
      public HashMap&lt;String, String&gt; getIniFile() {
          return iniFile;
      }
  
      public void setIniFile(HashMap&lt;String, String&gt; iniFile) {
          this.iniFile = iniFile;
      }
  
      public ReadIniConfigFile(String iniConfFilePath, String... keys) {
          configurationFile = iniConfFilePath == null ? defaultConfigPath : iniConfFilePath;
          Ini ini = loadIni();
          if(ini != null){
              if(keys.length &gt; 0){
                  for (String key:keys) {
                      iniFile.put(key,ini.get(key).toString());
                  }
              }
          }
      }
  
      public ReadIniConfigFile(String iniConfFilePath, String key) {
          configurationFile = iniConfFilePath == null ? defaultConfigPath : iniConfFilePath;
          Ini ini = loadIni();
          if(ini != null){
              iniFile.put(key,ini.get(key).toString());
          }
      }
      public ReadIniConfigFile(String... keys) {
          configurationFile =  defaultConfigPath;
          Ini ini = loadIni();
          if(ini != null){
              if(keys.length &gt; 0){
                  for (String key:keys) {
                      iniFile.put(key,ini.get(key).toString());
                  }
              }
          }
      }
  
      public ReadIniConfigFile(String key) {
          configurationFile =  defaultConfigPath;
          Ini ini = loadIni();
          if(ini != null){
              iniFile.put(key,ini.get(key).toString());
          }
      }
  
      public Ini loadIni() {
          try{
              Ini ini = new Ini(new File(configurationFile));
              return ini;
          } catch (FileNotFoundException e) {
              e.printStackTrace();
              return null;
          } catch (IOException e) {
              e.printStackTrace();
              return null;
          }
      }
  
      public HashMap&lt;String,String&gt; getAllIni() {
          return iniFile;
      }
  
      public String getSpecificValueIni(String key){
          return iniFile.get(key);
      }
  
      public Collection&lt;String&gt; getAllValues(){
          return iniFile.values();
      }
  
      public String getSpecificKeyValueIniToString(String key){
          return key + " = " + iniFile.get(key);
      }
  
  }
  </code></pre>
  
  <p>My question is, how can I get the path to this ini file?
  Have another way to save an api_key outside code? Cause i'm using GitHub and don't want to share my private key.</p>