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

Closed

Description

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, [url removed, login to view], [url removed, login to view], [url removed, login to view]

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

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

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

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

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

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).

Skills: Android, Mobile Phone

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

Project ID: #4422744

Awarded to:

thewebpixel

hello there, we can discuss the project...

$10 USD / hour
(1 Review)
3.2
ismaiasmoreira

I already develop a similar app.

$8 USD / hour
(0 Reviews)
0.0
narasimha14

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)
3.1

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

mitss

Expert programmer team for webapp HTML5 Jquery mobile,PHP, ASP.net,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)
7.1
ominfowave

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)
6.6
JoltaTech

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. http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywor More

$12 USD / hour
(23 Reviews)
6.2
Indexpage

Hi, We have extensive work experience in iphone, android,ipad application design and development so, we can create this application.for more information see PMB-Thanks.

$15 USD / hour
(4 Reviews)
5.6
hirefreeelancer

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)
2.5
jeremiahyoder

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)
0.0
seasiainfotechvw

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)
5.3
erpiyushnagar

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

$10 USD / hour
(0 Reviews)
0.0
researchlabtech

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)
0.0