title: How to change action bar icon when app is minimized Android
body: <p>I searched for similar issue but cannot find a topic that is related to this problem. I want to show a different icon when app is minimized. </p>
  
  <p>Tried to add <code>android:logo</code> attribute to the application, but it did not change the icon </p>
  
  <pre><code> &lt;application
          android:allowBackup="true"
          android:logo="@drawable/action_logo"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme"&gt;
  </code></pre>
  
  <p>I am using <code>compile 'com.android.support:appcompat-v7:21.0.+'</code> so the icon doesn't show in the action bar, but when minimized the icon launcher is used.</p>
  
  <p>Is there a way to show a different icon in the action bar when app is minimized like below?</p>
  
  <p><a href="https://i.stack.imgur.com/5ACGJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ACGJ.png" alt="enter image description here"></a></p>