Advertisement
Guest User

Untitled

a guest
Aug 30th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. package com.maccer.vidcamtest;
  2.  
  3. import android.app.Activity;
  4. import android.hardware.Camera;
  5. import android.hardware.Camera.CameraInfo;
  6. import android.os.Bundle;
  7. import android.view.SurfaceHolder;
  8. import android.view.SurfaceView;
  9. import android.view.View;
  10. import android.widget.Button;
  11. import android.widget.Toast;
  12.  
  13. public class Main extends Activity {
  14.  
  15. private CameraControl cc;
  16.  
  17. protected void onCreate(Bundle savedInstanceState) {
  18. super.onCreate(savedInstanceState);
  19. setContentView(R.layout.activity_main);
  20.  
  21. final Button button = (Button) findViewById(R.id.button1);
  22.  
  23. button.setOnClickListener(new View.OnClickListener() {
  24. public void onClick(View v) {
  25. cc.safeCameraOpen();
  26. }
  27. });
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement