흠 ...
로케이션가 널포인트뜨는 이유를알았슴돠.
각단말기마다 위치정보를 수집할것인지 안할것인지
설정이안되있으면 로케이션 널포인트가 무조건 뜬다는건대 ...
강제적으로가아닌 위치정보 수집을하게 그창을띄워주는방법이 없을까요 ??
LocationManager locationManager= (LocationManager) getSystemService(LOCATION_SERVICE); if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){ Intent callGPSSettingIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);startActivity(callGPSSettingIntent); }else{Toast.makeText(MyRealSettings.this, "Location services in disable mode", Toast.LENGTH_LONG).show();}
로그인 유지