You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mLocation = location;
// Notify anyone listening for broadcasts about the new location.
Intent intent = new Intent(ACTION_BROADCAST);
intent.putExtra(EXTRA_LOCATION, location);
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);
// Update notification content if running as a foreground service.
if (serviceIsRunningInForeground(this)) {
mNotificationManager.notify(NOTIFICATION_ID, getNotification());
// Getting location when notification was call.
latitude = location.getLatitude();
longitude = location.getLongitude();
// Here using to call Save to serverMethod
SavetoServer();
}
}
could u explain how to get value when the apps in background process?
The text was updated successfully, but these errors were encountered:
private void onNewLocation(Location location) {
Log.d(TAG, "New location: " + location);
could u explain how to get value when the apps in background process?
The text was updated successfully, but these errors were encountered: