Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Widget or background operation #14

Open
matthijskooijman opened this issue Dec 17, 2017 · 3 comments
Open

Feature: Widget or background operation #14

matthijskooijman opened this issue Dec 17, 2017 · 3 comments

Comments

@matthijskooijman
Copy link

I'm planning to keep this app handy to answer "where am I?" in an emergency (e.g. when having to call an ambulance). The typical usecase would be to fire off this app to get my location, and while it searches, call the emergency services (and switch back to the app later to read the address).

However, it seems that once you switch away from the app (e.g. to start a phone call), it stops the location search and the GPS is disabled again. It would be helpful if it could continue searching in the background (perhaps with a notification that can be used to cancel?). Not sure if Android has limitations here, though?

Alternatively, having a widget that can start a search and has a cancel button might be interesting. One such app exists here:

https://play.google.com/store/apps/details?id=com.futonredemption.mylocation&hl=en
https://code.google.com/archive/p/futonic-mylocationwidget/

image

That app has a few downsides:

  • It is unmaintained
  • It only shows address, not coordinates
  • It does not show how recent the address shown is and does not allow clearing an address once shown
  • The widget interface is minimal (showing the address and possibly position and a button to open up a bigger window is probably bettter).

Still, a similar feature might be useful to add to this app, possibly reusing some code from that app?

Related to this request, it would be helpful if the app would show a notification when the position is found, ideally showing the coordinates and address directly for quick reference.

@gjedeer
Copy link
Owner

gjedeer commented Dec 17, 2017

This app used to stay in background, not intentionally: #4

I have a need for a similar feature too (if you get a fix every X hours, the next fix is faster. if you don't get a fix for a long time and start an app like osmand, it takes ages before it gets a fix) so this may actually be implemented soon.

@matthijskooijman
Copy link
Author

Thanks for the quick reply, would be great to see this feature.

I did just realize a workaround to use until then: I can use the other widget app to get a fix in the background, and once it has got a fix, start this app to see the detailed results (which works because this app shows the most recent results right away, which is helpful).

@gjedeer
Copy link
Owner

gjedeer commented May 14, 2018

0151883 implements something like this.

Press the location button (target icon) on Action Bar - foreground service is started, looking for location
Press it again - the service is stopped.

When it finds location - the service stops itself and removes notification.

It could be made better: it could show the number of satellites and tapping the notification could stop scanning. But that's for another year :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants