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

[Idea] Offer StreetMeasure as option for measuring distances #138

Open
wielandb opened this issue Jan 20, 2023 · 1 comment
Open

[Idea] Offer StreetMeasure as option for measuring distances #138

wielandb opened this issue Jan 20, 2023 · 1 comment
Labels
feature request New feature request

Comments

@wielandb
Copy link
Contributor

Idea

Westnordost recently released StreetMeasure which offers the AR-measurement capability previously integrated into StreetComplete.

My Idea would be to take this opportunity to offer AR-measurement in OpenStop with little implementation effort. This section explains how to request a measurement from the app.

Bug Relation

No response

Implementation

My idea for the UI:

mockup_ar

Regarding the problem for checking if the user has installed the App, I have the following Ideas:

  • [With a list of all apps] Show the button to the user if the app is installed
  • [with intents] Initially show the button. When the user clicks on it, start a activity and listen if a ActivityNotFoundException triggers. If so, tell the user that they need to install StreetMeasure if they want to use this feature. Hide the button from there on and only make a re-check available in the settings
    or, even simpler:
  • [with intents] Just always show the button and tell the user that this feature requires the App StreetMeasure if ActivityNotFoundException triggers

Regarding permissions to read the installed Apps on the users device:

  • I have an app on my phone called "APK extractor" that also lists all Apps on my phone without needing a special permission
  • The other possibility would be working with intents, which are always visible to the user and such a vital part of the android system that they do not need special permissions

permissions_listApps

Additional Info

No response

@wielandb wielandb added the feature request New feature request label Jan 20, 2023
@Robbendebiene
Copy link
Member

Dev note: The binding from dart to kotlin/java can be implemented more easily using darts new https://pub.dev/packages/jnigen package

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

No branches or pull requests

2 participants