So I am almost totally new to Android Development. I played around with it a long time ago in the Froyo days but it's so different now and it has been so long that I am basically new to the whole thing.
So, I am trying to get a Camera application started to play around with the API and see what I can do. I generated a Fullscreen App using the Android Studio Wizard and then copied the Camera application example code from the Android website.
The application builds without any problems, it installs to my Nexus 4 emulator fine, but when I try to run it on the emulator it simply opens and closes again immediately saying "Unfortunately, Cam has stopped"
I'm not going to make you read through all the code I have so far, rather my question is not so much what is my problem but just what can I do, as a newcomer, to determine the problem? I have tried adding an alert dialog to the onCreate
method of my Activity Class using the following code:
AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.setMessage("Begun");
alert.show();
However nothing happens. I just get the same unhelpful message that the application has unfortunately stopped.