I would like to know if it's possible to detect shake event in background. This functionality is important in my app because I need to throw different events depend of the shake.
Thanks
I would like to know if it's possible to detect shake event in background. This functionality is important in my app because I need to throw different events depend of the shake.
Thanks
I don't happen to know if you're supposed to be able to get shake events when you're in the background. But to be clear, is your app running in the background? If you're not running in the background then you won't get any events. If you are running in the background, what APIs are you trying to use? Feel free to file a bug report if you're not able to get this to work but need it for your app's functionality.
My app is running in background. For example, I'm using Location updates without problem but I think that is not possible to detect shake event when my device is locked. Is there any background mode which let me detect this kind of event?
It may very well not be possible to detect these events in the background, I just don't know if it is. If you're not able to get the functionality to work, please file a bug report with the details of what you want to be able to do.
Correct.