Sample android application as Amazon Kinesis client
- Push button and send event to the delivery stream in Amazon Kinesis Firehose.
- Start and stop sensor stream sending sensor data to the stream in Amazon Kinesis Streams. While sensor stream is enabled, the Android device continuously send its tilt calculated from magnetic field and accelerometer on the device.
See http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/kinesis.html
- Create a stream in Kinesis Streams
- Create a delivery stream in Kinesis Firehose
- Create a Cognito Identity Pool
- Set IAM permissions to access Kinesis Streams and Kinesis Firehose streams
- Clone this repository
- Import this application to IDE like Android Studio
- Copy copyit.application_settings.xml to app/src/main/res/values/
$ cp copyit.application_settings.xml app/src/main/res/values/application_settings.xml
- Edit copied file to configure your Cognito Identity Pool ID, region and stream name
- Run the application on your emulator
- Build and install to your Android device
- Yeah! Run the application and find your stream data on the cloud!