safetysystemtechnology / android-shake-detector

Detect shaking of the device
181 stars 28 forks source link

Cannot instantiate multiple shake detectors #3

Open risharde opened 6 years ago

risharde commented 6 years ago

Hi, I love this module but I have a scenario where I'd like multiple shake detectors. For example, to detect when a single shake has occurred vs when a double shake has occurred. I tried instantiating 2 shake detectors but it seems that the second overrides the first.

Not sure if this a bug and if there's a workaround. Would appreciate your assistance.

Thanks

netodevel commented 6 years ago

I have not really tested this scenario .. I will see what I can do Thank you.

svetaz commented 6 years ago

Yup,same results here,2nd one overrides the 1st one.Is there any solution for this? Thanks in advance.