Floater
This is my first “fully functional” Android App. More of a tech demo actually, teaching myself how to develop on an Android device. The learning leading up to this is featured on this blog, specifically these posts: Android Adventures Part 1, part 2, part 3, part 4, part 5, part 6.
Floater is a particle sim that detects the accelerometer on the device, acting quite like an Alka-Seltzer pill if trapped in your phone… that changes color: Via touch, you control a large circle that emits smaller particles that ‘float up’ irregardless of how the phone is held. If the circle is flicked it will bounce around vibrating when it hits the edges of the device.
I built this app on an Win XP box, via Processing, specifically the “Android – Processing” distribution v1.2 (build 0191). It was tested on a (rooted) Samsung Captivate (Galaxy S), running Android 2.1.
Devices it’s known to work on:
- Samsung Captivate (Galaxy S)
- Samsung Galaxy Tab
- Samsung Galaxy 3
- Samsung Intercept
- Nexus One (Google & HTC)
- Motorola Droid X
- Motorola Quench XT5
- Motorola Defy
- LG Optimus S
- LG Optimus One (P500)
- HTC Droid Incredible
- HTC Desire HD
- HTC Evo 4G
- HTC Hero (running CyanogenMod 7: no vibration, low framerate)
- Archos 32 Internet Tablet
- Sony Ericsson Xperia Arc
If you get it to work on your device shoot me a mail, or comment below.
Download and install floater08:
Direct Download: floater08.apk
This isn’t yet on the Android Market, so to install you’ll need to have “Super User” (root) access on your phone, or enable “Settings -> Applications -> unknown sources” if your phone allows it.
- Floater




Seems to work fine on DroidX.
Great, thanks!
Playing with floater on a Optimus S. Very simple and relaxing.
Thanks!
Works great on a Galaxy Tab.
Could you also publish the source code of the final version or did I maybe miss it?
Glad to know it, I was wondering how it would work on a tablet.
I haven’t decided if I’m going to publish the source or not yet: I may eventually turn it into something more robust for posting on the Market. If it’s on the Market for actual money, I want to protect my interests. But if I don’t charge for it, or don’t put it on the market at all, I’ll happily publish the source.
However, it’s a combination of most of the “Android Adventure” topics I’ve posted about, so while the physical source isn’t up there, nearly all the knowledge to make it on the Android hardware (short of the Processing fundamental stuff to actually do the object drawing) is on the page.
interesting… 26 fps on my Desire HD
works well on LG Optimus P500 under Froyo
Thanks for the info!
thanks for this tutorial!
works also fine in samsung galaxy 3
Works without any issues on Motorola XT5 with Android 2.1
But frame rate is low ~14fps
Interesting. I get around 20fps with 170 balls on screen. I didn’t write it for performance though… mainly just to get it to work, period
So, as I said – it works good.
btw, thanks for your processing for android posts. I gonna follow them to write my experiments.
works well & smooth (~20 FPS) on Motorola Defy (android 2.1)
thanks for your processing/android blog posts, very useful for the p5people
Glad it works, and glad to contribute to the knowledge pool
Successfully installed on my Galaxy S. Runs very smoothly and is beautiful!
suhweet!
Works just fine on archos 32 internet tablet. Going to browse through your adventures to start building my own!
Great, and good luck
works fine on my HTC Evo 4G
Works on the Sony ericsson ARC
works well on a samsung intercept (VM) running 2.2
Works well on a HTC Hero running CyanogenMod 7. I get a really low fps (6-10) and it doesn’t vibrate.
Great, and thanks for the Android Adventures
HTC Desire 2.2 works well (19-22 fps)
Works on HTC Aria! Thanks for the Android Processing articles.
@Sam A
Oh, forgot to mention, I’m running CyanogenMod7. HTC Aria is on ATT and it doesn’t allow for sideloading of apps. In case someone was wondering how I installed it….
Works perfectly on my Nook Color running Cyanogenmod 7.0.3 stable (Gingerbread 2.3). Don’t know how to see/check the FPS.. but it runs smoothly.
it works also on Galaxy S2
Lovely,
Works great on a Samsung Charge.
Best regards,
Mark Plaga
works on Motorola Droid but at 9FPS , nice look , thx 4 sharing the tutorials !!
It works great on a Nuvifone A50 by ASUS/Garmin
Works on Motorola XOOM. Frame rate is a bit choppy.
Works well on Nexus S
20 – 30 fps depending on number of balls.
Works on my HTC Desire Z. Pretty cool, nice work. Just on 20fps
Works well on a Garmin-Asus A10.
11-15 fps
And thanks for your tutorials
Oct 23 2011
Hi from Huntington Beach, Ca
Nifty program (will check out the development language too), looks interesting.
Floater app works and looks great on my HTC EVO 4g View tablet (@ 25 fps).
Cheers //GregH
This is amazing, thanks for sharing.
I downloaded it for my Samsung Galaxy y, works perfectly.
@Craven
Works great on Motorola Atrix! Thanks for sharing… I am presently trying to utilize some of your code for accelerometer data to control some servos for an art project. It is still early in the development process but I am hopeful that it’ll come together. Thanks you again for sharing… no better way to learn than by trying things out.
Cheers.
Works great on Acer Iconia A500 tab. 12-14 fps with 220 balls.
Thanks for amazing site, its a real help.
Janak
Works fine on a Galaxy Nexus running android ics 4.0.4
+24fps
and thansk for your android adventures posts. i also wanna try to build some android apps with processing, but my skills aren’t that good yet.
Tried it on Galaxy note, worked
But truing the home button without closing the program i had wierd hickups on the screen and the phone gor unresponsive, i then had to do a hard reset.
Still like it though,
Any change of getting the code for learning ?
You know, I always meant to post the code, but forgot, moved in the meantime, and changed computers. I’ll have to see if I can dig it up
As far as the reset, that is odd… but I authored this about 2.5 years ago on Android 2.1, so the fact it continues to function on newer hardware impresses me
Works nicely on HTC Desire C. 23-30fps