7

I am developing an application in that I need user current location so if there is no location service is enabled then I created one Alert to set location service but I am not getting to redirect to location settings

4

1 に答える 1

20

以下のインテントを使用してアクティビティを開始し、ユーザーを設定画面にリダイレクトできます。

startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));
于 2013-02-05T06:47:22.963 に答える