I want to upload like this:
// Initialize the Cognito Sync clientCognitoSyncManager syncClient = new CognitoSyncManager(getApplicationContext(),Regions.US_EAST_2, // RegioncredentialsProvider);// Create a record in a dataset and synchronize with the serverDataset dataset = syncClient.openOrCreateDataset("myDataset");dataset.put("myKey", "myValue");dataset.synchronize(new DefaultSyncCallback() {@Overridepublic 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
I'm not familiar with that API but you need to use the REST API that AWS provides and not the Java API which is designed for Java EE.If you can reference a specific REST API I can explain to you how to translate that to Codename One code.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
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/d10be4a0-83ad-469f-b3cf-1afaac0b40ca%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
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/40c437f6-f4b6-4aa2-9ebd-d8e1d9fbd27b%40googlegroups.com.
Hi ShaiI understand and I will use my own restful apiI have one more question: Why I can't import JSONObject on codename one?
On Thu, Nov 2, 2017 at 10:30 PM, Shai Almog <shai....@gmail.com> wrote:
Hi,as far as I know and have used S3 I only used it as a file upload API and haven't used it as anything else.If you have a specific REST API from Amazon that you need to do in Codename One I can help you with that but I'm just not familiar enough with the API to understand what you are trying to accomplish.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
ConnectionRequest post = new ConnectionRequest(){
@Override
protected void buildRequestBody(OutputStream os) throws IOException {
os.write(json.toString().getBytes("UTF-8"));
}
@Override
protected void readResponse(InputStream input) throws IOException {
// parse response data
}
};
post.setUrl("http://localhost:8093/halimatbank/cbs/staff");
post.setPost(true);
post.setContentType("application/json");--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
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/7ebdf340-e18f-4b41-b280-a099a27a7144%40googlegroups.com.
Did you add it to the network queue using addToQueue?
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
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/127fd3a5-542b-476b-972e-d1731316a0e5%40googlegroups.com.
I just use anything that comes up with "QR code Scanner" they pretty much all work.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
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/ac52ebd5-4c3d-443c-8246-6416408368f2%40googlegroups.com.
Hi ShaiDo you have the navigation sample or video using new GUI build?I'm not sure how I can make the register, login and main page.Regards
On Mon, Nov 6, 2017 at 9:22 PM, Shai Almog <shai....@gmail.com> wrote:
I just use anything that comes up with "QR code Scanner" they pretty much all work.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/9O8cwEkgfrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.