accelerometer on android

hiii anybody use isshake function on android …
it nor working on my galaxy Tab 2.0

-- Create a function to be called when the phone or mobile device is shaken  
local function onShake (event)  
 if event.isShake then  
 -- Device was shaken, so call function  
 changeBackgroundAndAnswer()  
 end  
end  
-- Create a runtime listener for the shake event  
--Runtime:addEventListener("accelerometer", onShake)  
Runtime:addEventListener("touch", onShake)  
  

build setting

androidPermissions =
{
“android.hardware.sensor.accelerometer”
},

thanks … [import]uid: 155075 topic_id: 31986 reply_id: 331986[/import]