I'd tried to set the latitude And longitude manually in application But, after run get me an error
Code
public class Common {
public static Location NewYork;
}
Configuration
public void setLocation(){
Common.NewYork.setLatitude(31.963158); //error in this Line <--
Common.NewYork.setLongitude(35.930359);
fragmentAdapter();
}
Error
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.location.Location.setLatitude(double)' on a null object reference