title: android: White textColor in ListView when using getApplicationContext
body: <p>I'm using the code below for populating my list view:</p>
  
  <pre><code>String[] values = new String[] { 
                  "Sirwan Afifi", 
                  "Shaho Toofani",
                  "Hamed Ghaderi",
                  "Sattar Menbari" 
                 };
  
           ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getApplicationContext(),
                    android.R.layout.simple_list_item_1, values);
  
          setListAdapter(adapter);
  </code></pre>
  
  <p>layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" 
      &gt;
   &lt;ListView
          android:id="@android:id/list"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" 
          &gt;
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>It works fine, But result is a list with white text color, after debugging I figured it out, problem was the first parameter of <code>ArrayAdapter</code>, I just change it to <code>this</code> then background changed to black!</p>
  
  <pre><code>ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
                    android.R.layout.simple_list_item_1, values);
  </code></pre>
  
  <p>my problem solved with above solution, but I'm curious to find out, what is difference between <code>this</code> and <code>getApplicationContext</code> in this scenario?   </p>
  
  <p>I also have searched and found these answers but those aren't enough to clarify my question :  </p>
  
  <p><a href="https://stackoverflow.com/questions/10641144/difference-between-getcontext-getapplicationcontext-getbasecontext-and">Difference between getContext() , getApplicationContext() , getBaseContext() and &quot;this&quot;</a><br>
  <a href="https://stackoverflow.com/questions/1026973/android-whats-the-difference-between-the-various-methods-to-get-a-context?lq=1">What&#39;s the difference between the various methods to get a Context?</a></p>