Cannot set the window icon in android -


how can set window icon activities. have gone through window features , relative methods set features.

here code have used set icon:

requestwindowfeature(window.feature_left_icon); setcontentview(r.layout.main); setfeaturedrawableresource(window.feature_left_icon, r.drawable.icon); 

i have called code in 'oncreate' method of activity. icon set main activity. whenever go other activities, no icon set in window. cannot see errors in logcat. please me.

it cache problem :)

i have uninstalled application emulator , deleted following files 'bin' folder:

  • classes.dex
  • applicationname.apk
  • resources.ap_

deleted r.java file. worked after reinstalling application.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -