how current location android? :  I've used setLocation(); inside this method but location is null
        
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);


           
            try { 
                //location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
                location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
                if (location != null) {
                    setLocation(location, post);
                } else {
                    Toast.makeText(ViewAdActivity.this, getResources().getString(R.string.location_not_available), Toast.LENGTH_SHORT).show();
                }

            } catch (SecurityException e) {
            }
        }