How to fix “ java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue”
I'm setting up a current location in my application.Where do i need to set the encoding?
@Override
public void onLocationChanged(Location location) {
mLastLocation = location;
LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
mMap.animateCamera(CameraUpdateFactory.zoomTo(11));
//Geo Fire for current location
String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();
DatabaseReference refAvailable = FirebaseDatabase.getInstance().getReference("driversAvailable");
DatabaseReference refWorking = FirebaseDatabase.getInstance().getReference("driversWorking");
GeoFire geoFireAvailable = new GeoFire(refAvailable);
GeoFire geoFireWorking = new GeoFire(refWorking);
switch (customerId){
case "":
geoFireWorking.removeLocation(userId);
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
default:
geoFireAvailable.removeLocation(userId);
geoFireWorking.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
}
}
Following is error which I'm getting:
java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:215)
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:192)
at com.example.webforest.quickaidlikeuber2nd.DriverMapActivity.onLocationChanged(DriverMapActivity.java:184)
add a comment |
I'm setting up a current location in my application.Where do i need to set the encoding?
@Override
public void onLocationChanged(Location location) {
mLastLocation = location;
LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
mMap.animateCamera(CameraUpdateFactory.zoomTo(11));
//Geo Fire for current location
String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();
DatabaseReference refAvailable = FirebaseDatabase.getInstance().getReference("driversAvailable");
DatabaseReference refWorking = FirebaseDatabase.getInstance().getReference("driversWorking");
GeoFire geoFireAvailable = new GeoFire(refAvailable);
GeoFire geoFireWorking = new GeoFire(refWorking);
switch (customerId){
case "":
geoFireWorking.removeLocation(userId);
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
default:
geoFireAvailable.removeLocation(userId);
geoFireWorking.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
}
}
Following is error which I'm getting:
java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:215)
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:192)
at com.example.webforest.quickaidlikeuber2nd.DriverMapActivity.onLocationChanged(DriverMapActivity.java:184)
Can you try usinggeoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });instead
– Nero
Jan 2 at 9:36
It's worked!!!!! Thank you very much
– Raifur-rahim
Jan 2 at 10:00
Glad I could help... I'll post this as an answer so it can be removed from unanswered questions list.
– Nero
Jan 2 at 10:08
add a comment |
I'm setting up a current location in my application.Where do i need to set the encoding?
@Override
public void onLocationChanged(Location location) {
mLastLocation = location;
LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
mMap.animateCamera(CameraUpdateFactory.zoomTo(11));
//Geo Fire for current location
String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();
DatabaseReference refAvailable = FirebaseDatabase.getInstance().getReference("driversAvailable");
DatabaseReference refWorking = FirebaseDatabase.getInstance().getReference("driversWorking");
GeoFire geoFireAvailable = new GeoFire(refAvailable);
GeoFire geoFireWorking = new GeoFire(refWorking);
switch (customerId){
case "":
geoFireWorking.removeLocation(userId);
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
default:
geoFireAvailable.removeLocation(userId);
geoFireWorking.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
}
}
Following is error which I'm getting:
java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:215)
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:192)
at com.example.webforest.quickaidlikeuber2nd.DriverMapActivity.onLocationChanged(DriverMapActivity.java:184)
I'm setting up a current location in my application.Where do i need to set the encoding?
@Override
public void onLocationChanged(Location location) {
mLastLocation = location;
LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
mMap.animateCamera(CameraUpdateFactory.zoomTo(11));
//Geo Fire for current location
String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();
DatabaseReference refAvailable = FirebaseDatabase.getInstance().getReference("driversAvailable");
DatabaseReference refWorking = FirebaseDatabase.getInstance().getReference("driversWorking");
GeoFire geoFireAvailable = new GeoFire(refAvailable);
GeoFire geoFireWorking = new GeoFire(refWorking);
switch (customerId){
case "":
geoFireWorking.removeLocation(userId);
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
default:
geoFireAvailable.removeLocation(userId);
geoFireWorking.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
break;
}
}
Following is error which I'm getting:
java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:215)
at com.firebase.geofire.GeoFire.removeLocation(GeoFire.java:192)
at com.example.webforest.quickaidlikeuber2nd.DriverMapActivity.onLocationChanged(DriverMapActivity.java:184)
edited Jan 3 at 11:27
Raifur-rahim
asked Jan 2 at 9:13
Raifur-rahimRaifur-rahim
299
299
Can you try usinggeoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });instead
– Nero
Jan 2 at 9:36
It's worked!!!!! Thank you very much
– Raifur-rahim
Jan 2 at 10:00
Glad I could help... I'll post this as an answer so it can be removed from unanswered questions list.
– Nero
Jan 2 at 10:08
add a comment |
Can you try usinggeoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });instead
– Nero
Jan 2 at 9:36
It's worked!!!!! Thank you very much
– Raifur-rahim
Jan 2 at 10:00
Glad I could help... I'll post this as an answer so it can be removed from unanswered questions list.
– Nero
Jan 2 at 10:08
Can you try using
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ }); instead– Nero
Jan 2 at 9:36
Can you try using
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ }); instead– Nero
Jan 2 at 9:36
It's worked!!!!! Thank you very much
– Raifur-rahim
Jan 2 at 10:00
It's worked!!!!! Thank you very much
– Raifur-rahim
Jan 2 at 10:00
Glad I could help... I'll post this as an answer so it can be removed from unanswered questions list.
– Nero
Jan 2 at 10:08
Glad I could help... I'll post this as an answer so it can be removed from unanswered questions list.
– Nero
Jan 2 at 10:08
add a comment |
2 Answers
2
active
oldest
votes
This bug appears to manifest automatically when you are using setLocation() method without the use of GeoFire.CompletionListener(). If you implement the CompletionListener, this should resolve the issue.
Therefore, replace
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()));
with
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });
Edit 2:
You may need to adapt to a different approach if you are still encountering difficulties.
Replace the following code:
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
With the following code:
GeoHash geoHash = new GeoHash(new GeoLocation(location.getLatitude(),location.getLongitude()));
Map<String, Object> updates = new HashMap<>();
updates.put("g", geoHash.getGeoHashString());
updates.put("l", Arrays.asList(location.getLatitude(),location.getLongitude()));
geoFireAvailable.setValue(updates,geoHash.getGeoHashString());
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
|
show 3 more comments
Geofire has changed a bit, now to make a removeLocation work you have to add a listener like this:
//after updating
geoFireWorking.removeLocation("id of the node you want to remove", new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003750%2fhow-to-fix-java-lang-nosuchmethoderror-com-google-firebase-database-databaser%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This bug appears to manifest automatically when you are using setLocation() method without the use of GeoFire.CompletionListener(). If you implement the CompletionListener, this should resolve the issue.
Therefore, replace
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()));
with
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });
Edit 2:
You may need to adapt to a different approach if you are still encountering difficulties.
Replace the following code:
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
With the following code:
GeoHash geoHash = new GeoHash(new GeoLocation(location.getLatitude(),location.getLongitude()));
Map<String, Object> updates = new HashMap<>();
updates.put("g", geoHash.getGeoHashString());
updates.put("l", Arrays.asList(location.getLatitude(),location.getLongitude()));
geoFireAvailable.setValue(updates,geoHash.getGeoHashString());
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
|
show 3 more comments
This bug appears to manifest automatically when you are using setLocation() method without the use of GeoFire.CompletionListener(). If you implement the CompletionListener, this should resolve the issue.
Therefore, replace
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()));
with
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });
Edit 2:
You may need to adapt to a different approach if you are still encountering difficulties.
Replace the following code:
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
With the following code:
GeoHash geoHash = new GeoHash(new GeoLocation(location.getLatitude(),location.getLongitude()));
Map<String, Object> updates = new HashMap<>();
updates.put("g", geoHash.getGeoHashString());
updates.put("l", Arrays.asList(location.getLatitude(),location.getLongitude()));
geoFireAvailable.setValue(updates,geoHash.getGeoHashString());
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
|
show 3 more comments
This bug appears to manifest automatically when you are using setLocation() method without the use of GeoFire.CompletionListener(). If you implement the CompletionListener, this should resolve the issue.
Therefore, replace
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()));
with
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });
Edit 2:
You may need to adapt to a different approach if you are still encountering difficulties.
Replace the following code:
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
With the following code:
GeoHash geoHash = new GeoHash(new GeoLocation(location.getLatitude(),location.getLongitude()));
Map<String, Object> updates = new HashMap<>();
updates.put("g", geoHash.getGeoHashString());
updates.put("l", Arrays.asList(location.getLatitude(),location.getLongitude()));
geoFireAvailable.setValue(updates,geoHash.getGeoHashString());
This bug appears to manifest automatically when you are using setLocation() method without the use of GeoFire.CompletionListener(). If you implement the CompletionListener, this should resolve the issue.
Therefore, replace
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()));
with
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });
Edit 2:
You may need to adapt to a different approach if you are still encountering difficulties.
Replace the following code:
geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
With the following code:
GeoHash geoHash = new GeoHash(new GeoLocation(location.getLatitude(),location.getLongitude()));
Map<String, Object> updates = new HashMap<>();
updates.put("g", geoHash.getGeoHashString());
updates.put("l", Arrays.asList(location.getLatitude(),location.getLongitude()));
geoFireAvailable.setValue(updates,geoHash.getGeoHashString());
edited Jan 3 at 12:57
answered Jan 2 at 10:13
NeroNero
6991419
6991419
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
|
show 3 more comments
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
i face again same problem while i use switch case in n switch (customerId){ case "": geoFireWorking.removeLocation(userId); geoFireAvailable.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener() { @Override public void onComplete(String key, DatabaseError error) { } });
– Raifur-rahim
Jan 3 at 9:41
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
@Raifur-rahim edit the question with the new code, problem and what you are trying to do. I'll review it
– Nero
Jan 3 at 9:52
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
sir edit my question please help me
– Raifur-rahim
Jan 3 at 11:28
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
@Raifur-rahim check the answer again
– Nero
Jan 3 at 11:55
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
Sir I'm new comer if u kindly describe specifically then it will be helpful
– Raifur-rahim
Jan 3 at 12:54
|
show 3 more comments
Geofire has changed a bit, now to make a removeLocation work you have to add a listener like this:
//after updating
geoFireWorking.removeLocation("id of the node you want to remove", new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
add a comment |
Geofire has changed a bit, now to make a removeLocation work you have to add a listener like this:
//after updating
geoFireWorking.removeLocation("id of the node you want to remove", new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
add a comment |
Geofire has changed a bit, now to make a removeLocation work you have to add a listener like this:
//after updating
geoFireWorking.removeLocation("id of the node you want to remove", new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
Geofire has changed a bit, now to make a removeLocation work you have to add a listener like this:
//after updating
geoFireWorking.removeLocation("id of the node you want to remove", new GeoFire.CompletionListener() {
@Override
public void onComplete(String key, DatabaseError error) {
}
});
answered Jan 10 at 12:43
Raifur-rahimRaifur-rahim
299
299
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003750%2fhow-to-fix-java-lang-nosuchmethoderror-com-google-firebase-database-databaser%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you try using
geoFire.setLocation(userId, new GeoLocation(location.getLatitude(), location.getLongitude()), new GeoFire.CompletionListener(){ });instead– Nero
Jan 2 at 9:36
It's worked!!!!! Thank you very much
– Raifur-rahim
Jan 2 at 10:00
Glad I could help... I'll post this as an answer so it can be removed from unanswered questions list.
– Nero
Jan 2 at 10:08