How to put icons for items in navigation drawer
<p>I am devleoping an app in which i am using navigation drawer,in that when i am trying to put icon for items it is giving me the path fof the image like this: "
res/drawale/bg.jpg". I am not getting how to do that.</p>

<p>Below is my code for main activity:</p>

<pre><code> private void init_navigator() {
    // Navigation Drawer
    mTitle = mDrawerTitle = getTitle();

    mDrawerLayout = (DrawerLayout) findViewById(R.id.main_activity_DrawerLayout);
    mDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.primaryDark));
    mScrimInsetsFrameLayout = (ScrimInsetsFrameLayout) findViewById(R.id.main_activity_navigation_drawer_rootLayout);
    mDrawerList = (ListView) findViewById(R.id.left_drawer);
    mDrawerItmes = getResources().getStringArray(R.array.drawer_titles);
  mDrawerItmes = getResources().getStringArray(R.array.nav_drawer_icons);
</code></pre>

<p>Here is my code for string.xml</p>

<pre><code>   &lt;string-array name="drawer_titles"&gt;
    &lt;item&gt;About Us&lt;/item&gt;
    &lt;item&gt;FeedBack&lt;/item&gt;
    &lt;item&gt;Setting&lt;/item&gt;
    &lt;item&gt;Share App&lt;/item&gt;
    &lt;item&gt;Rate Us&lt;/item&gt;
    &lt;item&gt;Logout&lt;/item&gt;
&lt;/string-array&gt;

&lt;array name="nav_drawer_icons"&gt;
    &lt;item&gt;@drawable/bg&lt;/item&gt;
    &lt;item&gt;@drawable/bg&lt;/item&gt;
    &lt;item&gt;@drawable/bg&lt;/item&gt;
    &lt;item&gt;@drawable/bg&lt;/item&gt;
    &lt;item&gt;@drawable/b&lt;/item&gt;
    &lt;item&gt;@drawable/bg&lt;/item&gt;

&lt;/array&gt;
</code></pre>