Sunday, October 20, 2013

Android Accelerometer Program

Topic: Reading from android phones accelerometer and posting it in RESTful way to a URL.

Install

1)Eclipse.
2)SDK.

1. Create a new android project.
Keep all the setting to default.

Application name: AccelerometerDemo
1) Write code.

2) Check on simulator.

3)Write code for RESTful POST.

4) Correct format of the passing string or array whichever the case may be.

5) Check on real device.

6) Check when to send the post, periodically or with push of  a button.