getResources().getDrawable() deprecated in higher versions, getresources().getdrawable() deprecated what to use instead or getdrawable from Resource id.

This is deprecated:

getResources().getDrawable(R.mipmap.ic_launch_icon_new)

This is new try this:

ContextCompat.getDrawable(getActivity(),R.drawable.ic_local_bkp_list) 

Comments

Popular posts from this blog

Lint found fatal errors while assembling a release target.

Windows 7 all Version 64-Bit iso file Download with crack activation. (Google Drive Link)

Write logs into log file or append logs into the txt file in Android.