title: Get launcher's icon resource identifier
body: <p>Here is how I'm getting the launcher icon for an app (Koltin code but this question is nothing related to Kotlin):</p>
  
  <pre><code>val packageManager = packageManager()
  val applicationInfo = packageManager.getApplicationInfo(packageName, 0)
  val drawable = applicationInfo.loadIcon(packageManager)
  </code></pre>
  
  <p>My point now that <code>TaskManager</code> deprecated the use of non-res icons, is to get the value or the <code>DrawableRes</code> of that launcher icon (an identifier that would equals <code>R.drawable.ic_launcher</code> for example).</p>
  
  <p>I couldn't find a way. Is this possible dynamically (or is it impossible due to <code>R.java</code> generation?), without explicitely typing it?</p>