android client
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
libs
res
src/com/codecamp/smackme
.classpath
.gitignore
.project
AndroidManifest.xml
README.md
ic_launcher-web.png
proguard-project.txt
project.properties

README.md

Punch Me Android Client

It uses android linear acceleration to determine which direction is the phone being swing.

Socket is used to connect to the server. It will send a text to the server to indicate a punch.

##Message format

###Send a punch to server

PUNCH [DIRECTION] [FORCE]
DIRECTION
LEFT
RIGHT
UP
DOWN
FORCE
0-10

###Upload an image to server

IMAGE
[data]
data
blob of image(binary)