• Re: Android/Windows OpenWith... map apps question

    From Andrew@21:1/5 to Andrew on Wed Jun 5 20:48:57 2024
    XPost: comp.mobile.android, sci.geo.satellite-nav

    Andrew wrote on Wed, 5 Jun 2024 20:42:27 -0000 (UTC) :

    Why are the map choices DIFFERENT depending on how I access the "Open With..."?
    Can someone explain what controls which apps show up in the "Open With..." selection dialog?

    Here are extremely detailed perfectly-made screenshots showing exactly
    what the "Open With..." looks like whether on Android or on Windows.

    <https://i.postimg.cc/QCQM4589/openwith01.jpg>
    <https://i.postimg.cc/63R5F4VX/openwith02.jpg>
    <https://i.postimg.cc/k5KCf3F1/openwith03.jpg>
    <https://i.postimg.cc/5txgk88h/openwith04.jpg>
    <https://i.postimg.cc/8PywnZ1L/openwith05.jpg>

    I went to the trouble to create those fantastically detailed screenshots
    so that anyone can reproduce the situation exactly based on just them.

    What's happening is...
    Whether I use Windows or Android, I get different 'Open With' choices.

    Does anyone know why?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to All on Wed Jun 5 20:42:27 2024
    XPost: comp.mobile.android, sci.geo.satellite-nav

    Can someone please explain why the Android "Open With..." often asks
    for a DIFFERENT set of available apps depending on how you call up
    the Intent?

    I get different results depending on HOW I call up the "Open With..."
    Android command.
    Why?

    Can someone explain how Android works that explains what I show below?
    If I "Open with" using method A, I get the choice of 8 apps.
    1. All-In-One Maps
    2. App Manager (Interceptor)
    3. Earth
    4. Fake GPS
    5. Geo Tracker
    6. GPSLogger II
    7. GPSTest
    8. Magic Earth

    If I "Open with" using method B, I get the choice of 10 apps.
    1. Maps (Google Maps)
    2. App Manager (Interceptor)
    3. Fake GPS
    4. OSMAnd~
    5. All-In-One
    6. Organic Maps
    7. Earth
    8. Geo Tracker
    9. GPSLogger II
    10. GPSTest

    If I "Open with" using method C, I get the choice of 8 apps.
    1. All-In-One Maps
    2. App Manager (Interceptor)
    3. Earth
    4. Geo Tracker
    5. GPSLogger II
    6. GPSTest
    7. Magic Earth
    8. Fake GPS

    Can someone explain what controls which apps show up in the "Open With..." selection dialog?

    *More details about _Method A_ sufficient to easily reproduce:*

    1. Install FOSS My Location freeware (which can read Apple's Wi-Fi AP db!).
    <https://github.com/mirfatif/MyLocation>
    <https://f-droid.org/packages/com.mirfatif.mylocation/>
    <https://apt.izzysoft.de/fdroid/index/apk/com.mirfatif.mylocation>
    While free, it's not free on the Google Play Store though.
    <https://play.google.com/store/apps/details?id=com.mirfatif.mylocation.ps>

    2. Run the "My Location" app to get a location latitude & longitude fix.

    3. Press the GUI "Map" button to choose a map to display the location.
    Note that, for me, the available map choices were only these:
    All-In-One
    App Manager (Interceptor)
    Earth
    Fake GPS
    Geo Tracker
    GPSLogger II
    GPSTest
    Magic Earth

    *More details about _Method B_ sufficient to easily reproduce:*

    4. Instead of a map, choose the Muntashirakon App Manager Interceptor.
    And press "Send edited Intent" in that App Manager Interceptor GUI.
    Note that, for me, the available map choices were now more maps!
    Maps (Google Maps)
    App Manager (Interceptor)
    Fake GPS
    OSMAnd~
    All-In-One
    Organic Maps
    Earth
    Geo Tracker
    GPSLogger II
    GPSTest

    Notably "Magic Earth" did not appear in this open-with listing.

    5. But look more deeply at the intents and you'll see more maps apps
    in the Muntashirakon App Manager "Matching Activities" section.
    But not Avenza or Paper Maps.

    *More details about _Method C_ sufficient to easily reproduce:*

    6. In the App Manager GUI, press the "adb" button which will copy
    to your clipboard the following adb command.
    cmd activity start --user 0 -a android.intent.action.VIEW -d geo:37.81444578572309,-122.47816992062673?q=37.81444578572309,-122.47816992062673 -f 50331648

    7. In Windows, run that adb command (with the phone connected to adb).
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d geo:37.81444578572309,-122.47816992062673?q=37.81444578572309,-122.47816992062673 -f 50331648

    Note that, for me, the available map choices were now even more maps!
    Open with...
    All-In-One
    App Manager (Interceptor)
    Earth
    Geo Tracker
    GPSLogger II
    GPSTest
    Magic Earth
    Fake GPS

    Notably missing were Maps (Google Maps), OSMAnd~ & Organic Maps.

    8. So let's add them... (these are all experiments below)...
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d geo:
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d sms:
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d content:
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d content://com.android.contacts/data/4169
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d geo:37.8,-122.23?z=23
    C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW DataUri: geo:37.8,-122.23?z=23
    C:\> adb shell am start -n com.Avenza/.OpenFileWithAvenzaMapsActivity
    C:\> adb shell am start -n com.Avenza/.RootView.RootViewActivity
    C:\> adb shell am start -n ca.abbro.androidmap/.LaunchActivity

    What is going on?

    Why are the map choices DIFFERENT depending on how I access the "Open With..."? Can someone explain what controls which apps show up in the "Open With..." selection dialog?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)