Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BlackBlind567/Location_Updates-Background_Foreground
/ functions
Functions
41 in github.com/BlackBlind567/Location_Updates-Background_Foreground
⨍
Functions
41
◇
Types & classes
7
↓ 4 callers
Method
setRequestingLocationUpdates
Stores the location updates state in SharedPreferences. @param requestingLocationUpdates The location updates state.
app/src/main/java/com/atomsindia/local/Utils.java:45
↓ 3 callers
Method
requestPermissions
()
app/src/main/java/com/atomsindia/local/MainActivity.java:194
↓ 3 callers
Method
requestingLocationUpdates
Returns true if requesting location updates, otherwise returns false. @param context The {@link Context}.
app/src/main/java/com/atomsindia/local/Utils.java:36
↓ 3 callers
Method
setButtonsState
(boolean requestingLocationUpdates)
app/src/main/java/com/atomsindia/local/MainActivity.java:292
↓ 2 callers
Method
checkPermissions
Returns the current state of the permissions needed.
app/src/main/java/com/atomsindia/local/MainActivity.java:189
↓ 2 callers
Method
getLastLocation
()
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:363
↓ 2 callers
Method
getLocationText
Returns the {@code location} object as a human readable string. @param location The {@link Location}.
app/src/main/java/com/atomsindia/local/Utils.java:56
↓ 2 callers
Method
getNotification
Returns the {@link NotificationCompat} used as part of the foreground service.
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:325
↓ 2 callers
Method
getService
()
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:420
↓ 2 callers
Method
removeLocationUpdates
Removes location updates. Note that in this sample we merely log the {@link SecurityException}.
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:310
↓ 2 callers
Method
requestLocationUpdates
Makes a request for location updates. Note that in this sample we merely log the {@link SecurityException}.
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:293
↓ 1 callers
Method
SavetoServer
Save a value in realtime to firestore when user in background For foreground you have to call same method to activity
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:450
↓ 1 callers
Method
createLocationRequest
Sets the location request parameters.
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:408
↓ 1 callers
Method
getLocationTitle
(Context context)
app/src/main/java/com/atomsindia/local/Utils.java:61
↓ 1 callers
Method
onNewLocation
(Location location)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:381
↓ 1 callers
Method
serviceIsRunningInForeground
Returns true if this is a foreground service. @param context The {@link Context}.
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:430
Method
LocationUpdatesService
()
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:156
Method
addition_isCorrect
()
app/src/test/java/com/atomsindia/local/ExampleUnitTest.java:13
Method
onBind
(Intent intent)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:220
Method
onClick
(View view)
app/src/main/java/com/atomsindia/local/MainActivity.java:133
Method
onComplete
(@NonNull Task<Location> task)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:367
Method
onConfigurationChanged
(Configuration newConfig)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:212
Method
onCreate
()
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:160
Method
onCreate
(Bundle savedInstanceState)
app/src/main/java/com/atomsindia/local/MainActivity.java:109
Method
onDestroy
()
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:283
Method
onFailure
(@NonNull Exception e)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:474
Method
onLocationResult
(LocationResult locationResult)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:166
Method
onPause
()
app/src/main/java/com/atomsindia/local/MainActivity.java:166
Method
onRebind
(Intent intent)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:237
Method
onReceive
(Context context, Intent intent)
app/src/main/java/com/atomsindia/local/MainActivity.java:273
Method
onRequestPermissionsResult
Callback received when a permissions request has been completed.
app/src/main/java/com/atomsindia/local/MainActivity.java:231
Method
onResume
()
app/src/main/java/com/atomsindia/local/MainActivity.java:159
Method
onServiceConnected
(ComponentName name, IBinder service)
app/src/main/java/com/atomsindia/local/MainActivity.java:95
Method
onServiceDisconnected
(ComponentName name)
app/src/main/java/com/atomsindia/local/MainActivity.java:102
Method
onSharedPreferenceChanged
(SharedPreferences sharedPreferences, String s)
app/src/main/java/com/atomsindia/local/MainActivity.java:283
Method
onStart
()
app/src/main/java/com/atomsindia/local/MainActivity.java:123
Method
onStartCommand
(Intent intent, int flags, int startId)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:195
Method
onStop
()
app/src/main/java/com/atomsindia/local/MainActivity.java:172
Method
onSuccess
(Void aVoid)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:469
Method
onUnbind
(Intent intent)
app/src/main/java/com/atomsindia/local/LocationUpdatesService.java:254
Method
useAppContext
()
app/src/androidTest/java/com/atomsindia/local/ExampleInstrumentedTest.java:19