Shake is not working with AndroidDriver

shake( ) is not working with AndroidDriver…it is showing error like…add cast to the driver.

Can any body tell me about Shake() and getContext() functions?

getContext() returns context (obviously). Either native context (usually called ‘NATIVE_APP’), either webview which name depends on the app, website, etc. (‘WEBVIEW_0’ for example). Within native context you have control under native part of device and apps. Within web context - under web views in browser or inside hybrid app.

Okay fine kirill…Can Shake() works in Appium with Android?