i m new to this android application development field i went through the code that would provide shaking feature but i m unable to understand that for writing this shaking code I have to create new project or i can add this code in my existing app like gallery (example given in tutorials of android development) If so then how??? plzzzz reply
Share
Swati, if you follow this example: Sample 1 you can implement that in the same class where you want the shake to be detected
On the other hand, if you follow this example: Sample 2 you will need to create a new ‘class’ and then writing that code.
Do let me know if you have any questions