Android app which recognizes \"shake\" in three directions/planes (with JUnit tests)

I need an Android application which recognizes a "shake" in three directions/planes. And, I want Android JUnit tests which verify the application works correctly.

A "shake" is defined as someone moving the phone back and forth three times in the vertical, horizontal or side-to-side plane.

The speed of the shake should be variable, so someone could shake very quickly, or very slowly, and it would still recognize (within a tolerance) that this was a "shake."

For example, if I shake the phone up, down, up, down, up, down, then I want the application to provide a "toast" which says "vertical shake!"

If I move the phone left, right, left, right, left, right, then I want the application to provide a toast which says "side shake!"

If I move the phone forward, back, forward, back, forward, back, then I want the application to provide a toast which says "horizontal shake"

The Android accelerometer provides recognition of X, Y, and Z acceleration. So, basically, this application would be checking for changes to the accelerometer.

One required deliverable: I want TEST cases. So, I would like to have the application print out the accelerometer into the adb logcat console, like this:

1359111821594, 0.03891907, [url removed, login to view], 9.924362

1359111821660, 0.11555969, [url removed, login to view], 9.924362

1359111821727, 0.03891907, [url removed, login to view], 9.924362

1359111821794, 0.07723938, [url removed, login to view], 9.886042

1359111821861, 0.11555969, [url removed, login to view], 9.962683

1359111821927, 0.11555969, [url removed, login to view], 9.886042

This is timestamp, X, Y, Z.

I want JUnit tests which verify the Android application is recognizes the "shake" in each of the three directions.

The best way to do this would be to have the application print out the timestamp, X, Y, Z , and then use adb logcat and capture this to a file. Then, read in the file and use them inside the tests. So, you probably would have three sets of files: an [url removed, login to view] file for successful "shake" in the X direction, a [url removed, login to view] file for successful shake in the Y direction, etc. AND, you would have three sets of files for failures, where the person shakes left, right, then up, down, and the tests cases indicate this is not a "shake" (and clears the state of the application).

I will accept bids which don't want to write JUnit tests. If you don't have experience writing tests, please indicate in the bid that you want to provide a project without tests.

If you do feel OK writing JUnit tests, please indicate this in your bid.

So, the test case portion is now optional. Please indicate which you will do.

Skills: Android, Mobile App Development

See more: android horizontal acceleration shake, junit shake phone, android accelerometer, shake application example android, the best android phone, speed up android phone, speed up android, speed test android, phone cases for android, need for speed android, best android phone 2013, best android phone, best android, android toast example, android test cases, android phone cases, android logcat, android cases, android adb, adb android, x-plane, junit, directions, android app test, adb

About the Employer:
( 14 reviews ) Portland, United States

Project ID: #4422744

Awarded to:


hello there, we can discuss the project...

$10 USD / hour
(1 Review)

I already develop a similar app.

$8 USD / hour
(0 Reviews)

Hello.. I have already developed this app.. Check you PM.. Name your price and let me know if you have any issues with this app..

$11 USD / hour
(1 Review)

11 freelancers are bidding on average $12/hour for this job


Expert programmer team for webapp HTML5 Jquery mobile,PHP,,HTML5 with phonegap,Iphone,Ipad,BB,Android,OpneGLes2.0,AR Apps,Unity3D,cocos2D game and utility apps development please check your PM for more details More

$15 USD / hour
(49 Reviews)

We have more than 6 years of experience in this field with our skillful team of designers and intelligent programmers working with primary goal of 100% work satisfaction. Please check PMB.

$10 USD / hour
(66 Reviews)

Hi, I read and understand the requirements of android app. I have expertise in android and ready to build it for you. Android Apps: 1. More

$12 USD / hour
(23 Reviews)

Hi, We have extensive work experience in iphone, android,ipad application design and development so, we can create this [url removed, login to view] more information see PMB-Thanks.

$15 USD / hour
(4 Reviews)

Hello sir , We exist to bring your ideas to life, and get them into the app features. Come work with us and see your apps become a reality! Please check PM for smart solution

$12 USD / hour
(16 Reviews)

Respected Sir!!!! I've read your requirements and i'm ready to work with you... although we're new to freelancer but we've worked a lot in local markets.. so all i want from you is to trust us.. and we wont let it do More

$8 USD / hour
(0 Reviews)

Hi Employer, we have gone through your requirement detail & find ourself the most suitable for the job. Thanks

$10 USD / hour
(0 Reviews)

HI, We Got This! I have gone through your project & its requirements. Please find the detailed bid in your PMB for our Proposal along with details of similar projects developed by us. Let us discuss the Project in det More

$12 USD / hour
(0 Reviews)

I am available to build this Android app for you with no problem, but without the JUnit Tests. I am available to start as soon as you give the word.

$16 USD / hour
(0 Reviews)