diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-11-20 14:20:57 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-11-20 14:20:57 +0000 |
| commit | 866c68190c3691792f98b4aa6b3cfd800e28dbef (patch) | |
| tree | 920ab52f856e0c4442909c970c43962aa113d8ee | |
| parent | 06727db2f571badccee422a236dfae9454a64244 (diff) | |
adding s3 access
| -rw-r--r-- | src/com/example/rotorm/CameraActivity.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/example/rotorm/CameraActivity.java b/src/com/example/rotorm/CameraActivity.java index 3f5e5ee..6ebb853 100644 --- a/src/com/example/rotorm/CameraActivity.java +++ b/src/com/example/rotorm/CameraActivity.java @@ -47,6 +47,11 @@ private MediaPlayer mp; private String filename=""; private String audiofilename; +private static final String AWS_S3_BUCKET_NAME="rotor-development"; +private static final String AWS_S3_BUCKET_ENDPOINT="s3-eu-west-1.amazonaws.com"; +private static final String AWS_ACCESS_KEY_ID="AKIAIXPDDG4VNFOWMXHQ"; +private static final String AWS_SECRET_KEY="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"; + /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { @@ -101,6 +106,11 @@ public void onActivityResult(int requestCode, int resultCode, Intent data){ // inform the user that recording has stopped setCaptureButtonText("Capture"); isRecording = false; + + //we are now ready to upload the file + + AmazonS3Client s3Client = new AmazonS3Client( new BasicAWSCredentials( AWS_ACCESS_KEY_ID, AWS_SECRET_KEY ) ); + } else { // initialize video camera if (prepareVideoRecorder()) { |
