I want to get an image from server and show in action bar instead of icon. I wrote below code and tested and worked well in android 4.2 but when i installed my application in android 6.0.1, not showed.
getActionBar().setTitle("test");
getActionBar().setIcon(icon);
The android 6.0.1 version changed title with setTitle()
code but can't add icon in my actionbar.
I tested setLogo
method but not worked.
How can i solve my problem?