Camera Preview Example
<p>I know this is really basic but it is a error that I cannot find a solution to.</p>

<p><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html</a></p>

<p>I have 2 errors and I dont know what Im doning wrong.</p>

<pre><code>public boolean onCreateOptionsMenu(Menu menu) {

    // Inflate our menu which can gather user input for switching camera
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.camera_menu, menu);
    return true;
}
</code></pre>

<p>Im getting an error at "menu" in "R.menue..."</p>

<p>error 2:</p>

<pre><code>public boolean onOptionsItemSelected(MenuItem item) {
        // Handle item selection
        switch (item.getItemId()) {
        case R.id.switch_cam:
            // check for availability of multiple cameras
            if (numberOfCameras == 1) {
                AlertDialog.Builder builder = new AlertDialog.Builder(this);
                /**builder.setMessage(this.getString(R.string.camera_alert))
                       .setNeutralButton("Close", null);*/
                AlertDialog alert = builder.create();
                alert.show();
                return true;
}
</code></pre>

<p>Im getting an error on "id" in "case R.id..."</p>

<p>Thanks</p>
