Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Shake events on Android Emulator

Tags:

android

Can any one help with how to test sensor events like shake on Android Emulator. I have found some posts pointing to openintents but can anyone explain how to use it in android 2.0 avd

http://code.google.com/p/openintents/wiki/SensorSimulator

This has some solution but while installing OpenIntents.apk on emulator gives missing library error.

I succeded the steps till the line:

If you don't have it already, install the latest version of OpenIntents.apk on your mobile phone.

I am stuck on this line:

I found deprecated version (not latest) of OpenIntents.apk , but while installing gives missing library error.

Any help ?

like image 892
Pritam Avatar asked Oct 14 '22 06:10

Pritam


1 Answers

See How can I unit test an Android Activity that acts on Accelerometer? for a better solution.

like image 199
CommonsWare Avatar answered Oct 19 '22 23:10

CommonsWare