Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
AWS S3 Android SDK where do you specify Access key and secret?

I'm following : http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/s3transferutility.html ....... where in the android call do you specify the Access Key ID and Secret Access Key?? How does it know I can access if I don't provide them?

CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
                context,    /* get the context for the application */
                "COGNITO_IDENTITY_POOL",    /* Identity Pool ID */
                Regions.US_EAST_1           /* Region for your identity pool--US_EAST_1 or EU_WEST_1*/
        );

        // Create an S3 client
        AmazonS3 s3 = new AmazonS3Client(credentialsProvider);

        TransferUtility transferUtility = new TransferUtility(s3, context);

        File file = new File(filePath);

        TransferObserver observer = transferUtility.upload(
                BuildConfig.S3_BUCKET,     /* The bucket to upload to */
                "uploads",    /* The key for the uploaded object */
                file        /* The file where the data to upload exists */
        );

         observer.setTransferListener(new TransferListener().
           ...
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can create AmazonS3Client with access key and secret key as mentioned below:

        AmazonS3Client s3client = new AmazonS3Client(new AWSCredentials() {
            @Override
            public String getAWSAccessKeyId() {
                return "accesskeyhere";
            }

            @Override
            public String getAWSSecretKey() {
                return "secretkeyhere";
            }
        });
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda