問題タブ [android-6.0-marshmallow]
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 - android.os.action.DEVICE_IDLE_MODE_CHANGED をリッスンする Android M
デバイスが Doze モードに入ると、サード パーティ アプリケーションはアクションを取得できますか?
以下のアクションのためにブロードキャストレシーバーを登録しようとすると、
機能していません (レシーバーが呼び出されていません)。
android - Android Mリリースで指紋に基づいてユーザーを識別する方法は?
Android M (API 22) でを使用してFingerprintManager
、ユーザーを (承認とともに) 識別できますか?
たとえば、デバイスに 2 つの指紋が登録されていて、1 つはユーザー A 用、もう 1 つはユーザー B 用です。API は、A と B のどちらのユーザーがログインしたかを検出するサポートを提供しますか?
android - org.apache.http.legacy がプロジェクトにインポートされない
2 つのモジュールを含むアプリがあります。1 つのモジュールはライブラリとして機能し、Apache HTTP を使用します。MNC-Preview でコンパイルする必要がありますが、ご存知のように、このフレームワークは SDK フレームワークの一部ではなくなりました。org.apache.http.legacy
そういうわけで、libとしてインポートして機能させることができると読みました。
したがって、基本的に私はモジュールgradleにこれを持っています:
そして、私が持っているメイングラドルで
これとこれに従いましたが、Apacheパッケージが存在しないというエラーが引き続き発生します。
更新:コードがコンパイルされるようです。ただし、IDE のコードは見つからないとマークされ、多くのエラーが発生し、オートコンプリートは行われません。誰かがこれを通り抜けましたか?
android - Android M - デバイスが Doze モードに入ったときのソケットの動作
サーバーとのTCP接続を維持する必要があるVOIPベースのアプリケーションを開発しています。これを実現するために、キープアライブ パケットを定期的にサーバーに送信します。デバイスが Doze モードに入ったときのソケットの動作を知りたいと考えました。ソケット接続はそのまま残りますか、それともデバイスが居眠りモードに入ったときに閉じられますか。
java - How to use the legacy Apache HTTP client on Android Marshmallow?
Background
On Android Marshmallow, Google has completely removed the support of Apache HTTP client (link here) because it doesn't have good performance compared to the alternatives.
This might also be the cause for so many apps crashing on Android Marshmallow.
The problem
Google allows you to still use this API, just not as a built in one, by adding this line to the gradle file:
So, this is what I did:
And:
When I tried it, it compiled fine (no errors being shown, and I could run the proof-of-concept app, as it doesn't have any special code), but when I tried using some of the classes that I know that are part of the old API (like "HttpClient" class), I see that it doesn't allow me to do so.
I know it's not recommended to use this solution, but we must have the app ready to work there at least temporarily, till we work 100% on all of the things that should change for Android Marshmallow, and we don't want surprises in the form of crashes.
Here's a screenshot:
The question
Why does it occur? Did I use it correctly?
EDIT: reported about this issue here:
android - Android M、ACCESS_FINE_LOCATION および ACCESS_COARSE_LOCATION なしで MapFragement をロードする
ユーザーがマップを表示するための場所の許可を求められる Android M プロジェクトに取り組んでいます。拒否された場合は、米国の大陸ビュー (ユーザーの場所なし) のみを表示したいのですが、何らかの理由でできませんそれを達成します。どんな提案でも大歓迎です。
android - Doze モードからアプリをオプトアウトする方法は?
Android M DOZE モードからアプリをオプトアウトするにはどうすればよいですか? 実行時に DOZE と自動スタンバイからアプリを選択的に含めたり除外したりする標準的な方法はありますか?