0

Android でのハードウェアの可用性は、 を使用して確認できますhasSystemFeature()context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LOCATION_GPS)ただし、エミュレーターで呼び出して みるとcontext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LOCATION_NETWORK)、両方のコマンドが false を返しました。

これは、エミュレーターに GPS があるにもかかわらずです。何が問題なのですか?エミュレータに GPS または NETWORK ハードウェアがあるかどうかをチェックインするにはどうすればよいですか?

4

1 に答える 1

0

エミュレータ用に独自の緯度と経度を設定してみてください:これに従ってください:DDMSを使用して

->go to your android/tools directory, and launch the DDMS tool
->select the Emulator Control Tab
->fill the Location Controls fields with the longitude and latitude values
->press the Send button
于 2013-02-18T09:00:01.060 に答える