title: How to get all android app flavor name programatically
body: <p>I want to get all app flavor list in activity, how can i get this? This is how i implemented flavor in my app via Gradle. </p>
  
  <p>I can get only current flavor by <code>BuildConfig.java</code> class.</p>
  
  <pre><code>public static final String FLAVOR = "myExamIdea";
  </code></pre>
  
  <p>But i want to get all flavor list. Below is my gradle file snippet.</p>
  
  <pre><code> flavorDimensions "igen"
   productFlavors {
          myExamIdea {}
          examLeaders{}
   }
  </code></pre>
  
  <p>This is my <code>BuildConfig.java</code> class</p>
  
  <pre><code>public final class BuildConfig {
    public static final boolean DEBUG = Boolean.parseBoolean("true");
    public static final String APPLICATION_ID = "in.kpis.igen.myExamIdeaStaging";
    public static final String BUILD_TYPE = "debug";
    public static final String FLAVOR = "myExamIdeaStaging";
    public static final int VERSION_CODE = 1;
    public static final String VERSION_NAME = "1.0";
  }
  </code></pre>