java - ImageView.findViewById on a null object reference -


this question has answer here:

i've made simple mistake cannot figure out how correct it. it's null object reference .

mainactivity

layout

thanks advice !

instead

imageview = (imageview)imageview.findviewbyid(r.id.simplicity_bg_id); 

replace with

imageview = (imageview) findviewbyid(r.id.simplicity_bg_id); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -