summaryrefslogtreecommitdiff
path: root/src/com/example/rotorm
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/example/rotorm')
-rw-r--r--src/com/example/rotorm/CameraActivity.java10
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()) {