title: Error on opening camera and getParameters
body: <p>This is the code from my MainActivity:</p>
  
  <pre><code>package com.simple.flashlight;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.graphics.Camera;
  import android.hardware.Camera.Parameters;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  
  public class Main extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main_menue);
  
          Button turnOnButtOn = (Button) findViewById (R.id.button1);
          Button turnOnButtOff = (Button) findViewById (R.id.button2);
          Camera mCam = Camera.open(); //here is an error
          Parameters p = mCam.getParameters(); //here is an error
  
          turnOnButtOn.setOnClickListener(new Button.OnClickListener(){
              public void onClick(View cameraButton){
                  //Turn ON
              }
          });
  
          turnOnButtOff.setOnClickListener(new Button.OnClickListener(){
              public void onClick(View cameraButton){
                  //Turn OFF
              }
          });
      }
  }
  </code></pre>
  
  <p>and this what I have in the manifest file:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.simple.flashlight"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  
      &lt;uses-feature android:name="android.hardware.camera" /&gt;
  
      &lt;permission
          android:name="android.permission.FLASHLIGHT"
          android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
          android:protectionLevel="normal" /&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="15" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".Main"
              android:label="@string/title_activity_main" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I am getting errors on <code>Camera mCam = Camera.open();</code> and <code>Parameters p = mCam.getParameters();</code> the errors are:<br>
  1. the method open() is undefined for type Camera.<br>
  2. the method getParameters() is undefined for type Camera.</p>
  
  <p>I'm new to Android development, so maybe I have missed something really stupid, 
  Thanks in advance! </p>