Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Adding a Shake Detector to the Interactive Story App?

I would like to add a shake detector at a point within the story so that the user has to shake the phone to continue.

I understand this is quite a broad question but a point in the right direction would help greatly!

Thank you!

post your code

1 Answer

Hello,

Square has a library(I have not used it nor have looked into its syntax) for shake detection. You can get it here.