The AWS Mobile Notes Tutorial code for Android / Java. You can start the tutorial by looking in the tutorial directory
This sample code is made available under a modified MIT license. See the LICENSE file.
The origin code for the AWS Mobile tutorial series for Android Native development.
License: Other
The AWS Mobile Notes Tutorial code for Android / Java. You can start the tutorial by looking in the tutorial directory
This sample code is made available under a modified MIT license. See the LICENSE file.
I'm getting an exception after the configuration of the provider to save the notes in the online NoSQL Db.
The provider is defined as described in the tutorial and declared in the AndroidManifest.xml file
java.lang.SecurityException: Failed to find provider null for user 0; expected to find a valid ContentProvider for this authority
at android.os.Parcel.readException(Parcel.java:1942)
at android.os.Parcel.readException(Parcel.java:1888)
at android.content.IContentService$Stub$Proxy.notifyChange(IContentService.java:801)
at android.content.ContentResolver.notifyChange(ContentResolver.java:2046)
at android.content.ContentResolver.notifyChange(ContentResolver.java:1997)
at android.content.ContentResolver.notifyChange(ContentResolver.java:1967)
at com.amazonaws.mobile.samples.mynotes.data.NotesContentProvider.notifyAllListeners(NotesContentProvider.java:291)
at com.amazonaws.mobile.samples.mynotes.data.NotesContentProvider.insert(NotesContentProvider.java:217)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:267)
at android.content.ContentResolver.insert(ContentResolver.java:1539)
at android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:96)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
The latest Android Studio is 3.0.1, with Gradle 4.0.1, and API 26 being standard. Need to update the project to accomodate these changes.
After applying the steps for adding analytics (as per instructions in analytics.md), the session events and demographics do not get propagated in AWS Analytics/Usage view. The Android Studio run window shows the following exception:
E/EventRecorder: AmazonServiceException occured during send of put event
com.amazonaws.AmazonServiceException: User: arn:aws:sts::[999999999999]:assumed-role/amplify-awsmobileandroidnote-dev-[999999]-authRole/CognitoIdentityCredentials is not authorized to perform: mobileanalytics:PutEvents on resource: arn:aws:mobileanalytics:us-east-1:[999999999999]:* (Service: AmazonPinpointAnalytics; Status Code: 403; Error Code: AccessDeniedException; Request ID: cadced78-04ab-403d-9ee7-5d9f8b002240)
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:730)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:405)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:212)
at com.amazonaws.services.pinpointanalytics.AmazonPinpointAnalyticsClient.invoke(AmazonPinpointAnalyticsClient.java:375)
at com.amazonaws.services.pinpointanalytics.AmazonPinpointAnalyticsClient.putEvents(AmazonPinpointAnalyticsClient.java:321)
at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.submitEvents(EventRecorder.java:317)
at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.processEvents(EventRecorder.java:275)
at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder$1.run(EventRecorder.java:205)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
W/EventRecorder: Unable to successfully deliver events to server. Events will be saved, error likely recoverable. Response status code 403 , response error code AccessDeniedExceptionUser: arn:aws:sts::[999999999999]:assumed-role/amplify-awsmobileandroidnote-dev-[999999]-authRole/CognitoIdentityCredentials is not authorized to perform: mobileanalytics:PutEvents on resource: arn:aws:mobileanalytics:us-east-1:[999999999999]:* (Service: AmazonPinpointAnalytics; Status Code: 403; Error Code: AccessDeniedException; Request ID: cadced78-04ab-403d-9ee7-5d9f8b002240)
W/EventRecorder: Received an error response: User: arn:aws:sts::[999999999999]:assumed-role/amplify-awsmobileandroidnote-dev-[999999]-authRole/CognitoIdentityCredentials is not authorized to perform: mobileanalytics:PutEvents on resource: arn:aws:mobileanalytics:us-east-1:[999999999999]:* (Service: AmazonPinpointAnalytics; Status Code: 403; Error Code: AccessDeniedException; Request ID: cadced78-04ab-403d-9ee7-5d9f8b002240)
in what format and where are the notes stored?
I keep getting Execution failed for task:app:mergeDebugResources
Hi there, hope this repo is still under watch. I've been trying to learn AppSync to build an app with a serverless backend to make API calls. But sadly, I am not able to finish the most pivotal part of the tutorial which is the actual serverless backend with AppSync.
My bet at the moment is that the amplify codegen process might have not run at all, since no classes were generated as per the tutorial. Attached below is a picture of my AWSDataService class that has all the errors. Do let me know if there are further resources you need.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.