This example shows how to implement shake detection.
And yes, it works only on real device
<script type="text/javascript">
function deviceShook()
{
NKAlert("Info", "The device has been shook");
}
</script>
<script type="text/javascript">
function deviceShook()
{
'showQuotes()';
}
</script>
<script type="text/javascript">
function showQuotes()
{
NKAlert("Info","showQuotes called");
}
function deviceShook()
{
showQuotes();
}
</script>
Users browsing this forum: No registered users and 1 guest