Question

I implemented shake event form this.

  1. But how can I listen shake event in home screen?

  2. Is there any broadcast receiver or I have to create service for listen shake event?

I found How to check If I am currently on home screen to get homescreen focued but for default only. If I have custom home launcher then How can I recognize that launcher. Is Manifest is having any identification for launcher application???

Help is needed. Thanks.

Was it helpful?

Solution

You have to create a Service that listens for the shake event.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top