I am trying to build an app that uses the device's camera, takes a picture in one fragment, and displays that picture in a separate fragment. My app uses a DrawerLayout and several fragments. In the main Activity class when I try to reference the ImageView I would like to edit within the xml file of one of my fragments I am met with a NPE:
ImageView imgTaken = (ImageView) findViewById(R.id.post_imageView);
I have been encountering these types of exceptions too frequently; I think there is something about using View objects that I am not familiar with. If anybody has any useful insight on why exactly I may be repeatedly finding my code not working due to a NPE, please feel free to enlighten me.
Thanks for the help!
