Geofire crashes when writing to Firebase
Geofire crashes when writing to Firebase I am writing a program to upload a LatLng data of the user to Firebase. It works by clicking a button btnAddPickUpLocation and it uploads to database. The user details and Uid has been initiated in other part of the codes and there is no issues with it. The Lat Lng is currently hardcoded so it is not due to this variable source. It returns perfectly when i set a Toast to return the Uid and it does not crash when i comment out mGeofire.setLocation(Uid, new GeoLocation(37.7853889, -122.4056973)); mGeofire.setLocation(Uid, new GeoLocation(37.7853889, -122.4056973)); Any idea what is wrong with this statement? The relevant codes are as follows. RelativeLayout contentView = findViewById(R.id.contentView); btnAddPickUpLocation = contentView.findViewById(R.id.btnAddPickUpLocation); btnAddPickUpLocation.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //AddPickUpLocation(Fireb...
