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.
電話の加速度を記録してファイルに保存するアプリがあります。携帯電話のデバッグ モードでアプリを確認すると、すべて問題なく動作します。apk ファイルを取得して電話にインストールすると、アプリは加速を保存しませんか?
何故ですか?
ありがとう!
問題が見つかりました。コード (サービス) をデバッグするときに、コードをデバッグandroid.os.Debug.waitForDebugger();できるように使用しました。リリースモードでは、この行はその後のコードをブロックしているようです。私は行を削除し、問題は解決しました。
android.os.Debug.waitForDebugger();