Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top