I want to upload like this:

// Initialize the Cognito Sync client

CognitoSyncManager syncClient = new CognitoSyncManager(

getApplicationContext(),

Regions.US_EAST_2, // Region

credentialsProvider);

// Create a record in a dataset and synchronize with the server

Dataset dataset = syncClient.openOrCreateDataset("myDataset");

dataset.put("myKey", "myValue");

dataset.synchronize(new DefaultSyncCallback() {

@Override

public void onSuccess(Dataset dataset, List newRecords) {

//Your handler code here

}

});

Above code snipped is the source for the native android development to 
upload the data to s3

Please let me know the same way used in Codename One

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d37b8466-56f3-47f4-9cbb-509bb95c20f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to