問題タブ [ambient]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android-studio - Android AmbientLight センサーが値を取得しない (Null を返す)
私は光センサーを使用してプロジェクトを開発していますが、私の問題は、光センサーが常にnullを返し、テストデバイスがSamsung Galaxy A40sであり、適応輝度機能を備えていることです。Samsungの仕様を確認すると、Galaxy A40sが統合されていることがわかりました周囲光センサー付き [1]。[1]: https://i.stack.imgur.com/Z0nAK.png では、どうすれば光センサーを呼び出してデータを取得できますか? 何か案は?手伝ってくれてありがとう。