Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
今、私は ShakeListener をこのサイトに従って使用しています。それは機能しますが、もう少し敏感です。シュートミーアプリ のような揺れ検出を実装する方法を知っている人はいますか?
ありがとうございました。
あなたの質問が正しいと理解できれば、振動の感度を下げてほしいと思います。投稿したコードを使用して、「シェイク時間」を 250 ~ 300 ミリ秒に変更するだけです。
private static final int TIME_THRESHOLD = 300;