Android SDK Amplify Getting Started Run-Through



This post is a work-in-progress. It runs through satisfying the prerequisites of the Android Amplify Getting Started, and steps 1,2 and 3. I'm not sure how this is supposed to connect to the device shadows in IoT core so I've deferred the rest of the post.


Satisfy the Prerequisites


1. Visit [link]


2. For follow instructions at [link] for:


3. For ^^^^ follow instructions at [link] for:


4. For ^^^^ follow instructions at [link] for:


5. For this step:

...the string is:

classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:2.7.+'


...the addition is:


then click Build > Make Project


You should see the following in the Sync window:


6. For this step:

...(A) double-click build.gradle (Module: app),

(B) paste: apply plugin: 'com.amazonaws.appsync'

(C) paste:

dependencies {

//Base SDK

implementation 'com.amazonaws:aws-android-sdk-core:2.10.+'

//AppSync SDK

implementation 'com.amazonaws:aws-android-sdk-appsync:2.7.+'

implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'

implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'

}

and (D) click Sync Now


7. For this step:

...(A) click on AndroidManifest,xml,

(B) paste:

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.WAKE_LOCK" />

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

, and (C) paste: <service android:name="org.eclipse.paho.android.service.MqttService" />

...and click Build > Make Project

8. For this step:

...(A) right-click on build.gradle (Project: MyApplication) and (B) click Open in terminal


...then type amplify init and amplify push


I saw:


9. For this step:

...type amplify status


I saw:

Stopping here for the moment (or for good, since I'm not sure how this ties into the device shadows).


0 views

©2018 by Centennial Software Solutions LLC. Proudly created with Wix.com