Giter Site home page Giter Site logo

Comments (11)

StickyDigit avatar StickyDigit commented on June 19, 2024

FWIW, the android 10 is without Gapps.

from locationmapviewer.

k3b avatar k3b commented on June 19, 2024

The problem is reproducable with https://f-droid.org/wiki/page/ca.cmetcalfe.locationshare

2021-06-30 22:58:02.168 23301-23301/de.k3b.android.locationMapViewer E/AndroidRuntime: FATAL EXCEPTION: main
Process: de.k3b.android.locationMapViewer, PID: 23301
java.lang.RuntimeException: Unable to start activity ComponentInfo{de.k3b.android.locationMapViewer/de.k3b.android.locationMapViewer.LocationMapViewer}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3323)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3462)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2063)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7615)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at java.net.URLDecoder.decode(URLDecoder.java:137)
at de.k3b.android.geo.AndroidGeoLoadService.getName(AndroidGeoLoadService.java:124)
at de.k3b.android.locationMapViewer.LocationMapViewer.openGeoFileFromIntent(LocationMapViewer.java:932)
at de.k3b.android.locationMapViewer.LocationMapViewer.onCreateEx(LocationMapViewer.java:271)
at de.k3b.android.widgets.FilePermissionActivity.checkPermissions(FilePermissionActivity.java:105)
at de.k3b.android.widgets.FilePermissionActivity.onCreate(FilePermissionActivity.java:120)
at de.k3b.android.locationMapViewer.LocationMapViewer.onCreate(LocationMapViewer.java:185)
at android.app.Activity.performCreate(Activity.java:7835)
at android.app.Activity.performCreate(Activity.java:7824)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3298)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3462) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2063) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:214) 
at android.app.ActivityThread.main(ActivityThread.java:7615) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964) 
2021-06-30 22:58:02.197 23301-23301/de.k3b.android.locationMapViewer I/Process: Sending signal. PID: 23301 SIG: 9

from locationmapviewer.

k3b avatar k3b commented on June 19, 2024

bugfix in next f-droid release v0.3.8.210702

from locationmapviewer.

StickyDigit avatar StickyDigit commented on June 19, 2024

Waiting for F-Droid builds is like waiting for paint to dry, only slower. I just built this with Studio.

It now works as target for "Open with" from GPSTest, and does not crash. However, it is still not in the apps listed when using 'share', from e.g. GPSTest.

from locationmapviewer.

StickyDigit avatar StickyDigit commented on June 19, 2024

(same for Locattion Share app)

from locationmapviewer.

k3b avatar k3b commented on June 19, 2024

Thanks for your feedback

if you install https://github.com/k3b/intent-intercept on you android then you can see which intent is uses in the share or view

i.e. https://f-droid.org/wiki/page/ca.cmetcalfe.locationshare implements share as SEND with mime "text/plain"

I have decided that locationmapviewer will not catch every 'SEND with mime "text/plain"' because i see this as "SPAM to list of available apps" if only 0.01% of all "text/plain" messages contain a geo-information that can be processed by locationmapviewer.

As a workaround you can install https://f-droid.org/en/packages/com.tasomaniac.openwith.floss/ that catches mime "text/plain"', analyses it and translates it back to a "geo" uri.

from locationmapviewer.

StickyDigit avatar StickyDigit commented on June 19, 2024

You're quite right about the mime type of course. GPSTest also spits out a geo: URI as text/plain via share, which is great if you want to send a text or paste it into a note, but not so great if you want to feed it to a navigation/mapping app.

The list of apps that offer to grok the shared text/plain geo: is huge on my phone, with even VLC and NewPipe offering to have a go. Strangely absent (from this users' perpective) are almost all the navigation apps (OSMin and LocationMapViewer etc.), so you are certainly following the fashion by ignoring text/plain as a nav app. Maybe you could start a trend by attempting to parse text/plain, and issue an error/quit if not /^geo:/. Sharing the link at VLC, gets a simple message "the location geo:0.00,0.00 cannot be played".

Firing the share through OpenWith, then Intent Intercept, it looks like it's turning it into a geo uri of sorts, but LMV is not in the list of receivers, only web browsers (and intent-intercept).

On the plus side, this app now serves as a rare receiver for 'VIEW' of geo: A feature lacking in almost all map apps. :-D

from locationmapviewer.

StickyDigit avatar StickyDigit commented on June 19, 2024

Seems Intent Intercept share function is a bit broken, I ended up sharing to myself by email as most of the other methods (barcode scanner, editor) didn't get any data. Copy to clipboard works OK too. Should I post a bug on Intent Intercept? (An excellent tool by the way.. nice one!)

Here's what I get from Location Share, via OpenWith. I've redacted the list of browsers here, it is literally only all my web browsers.

intent://geo:50.00000,-1.00000#Intent;scheme=https;launchFlags=0x13080000;S.android.intent.extra.TEXT=geo%3A50.00000%2C-1.00000;end 
------------ 
ACTION: android.intent.action.VIEW 
DATA: https://geo:50.00000,-1.00000 
URI: intent://geo:50.00000,-1.00000#Intent;scheme=https;launchFlags=0x13080000;S.android.intent.extra.TEXT=geo%3A50.00000%2C-1.00000;end 
FLAGS: 
FLAG_RECEIVER_FOREGROUND 
FLAG_ACTIVITY_FORWARD_RESULT 
FLAG_ACTIVITY_PREVIOUS_IS_TOP 
FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET 
EXTRAS: 
1 Class: java.lang.String 
Key: android.intent.extra.TEXT 
Value: geo:50.00000,-1.00000
2 EXTRAS: 
Error extracting Extras 

------------ 
MATCHING ACTIVITIES: 
..All my browsers and nothing else.

from locationmapviewer.

k3b avatar k3b commented on June 19, 2024

If you know other geo aware apps feel free to add them to https://github.com/k3b/k3b-geoHelper/wiki/Android-Geo-aware-apps . i will add the apps mentioned in this thread

from locationmapviewer.

StickyDigit avatar StickyDigit commented on June 19, 2024

Rather than risk slotting these into the wrong category, (and as I can't see an obvious way to edit the Wiki directly), I'll drop a few here.

These are available at IzzyOnDroid F-Droid repo

Mock my GPS
A mock GPS provider with bookmarks and a trip simulator.

OSMin
A navigation app with offline maps.

These are from F-Droid

GMaps WV
A restricted WebView wrapper for accessing the web version of Google Maps.

My Position
Location sharing app with multiple output formats.

GPSTest
A fairly comprehensive GPS toolkit.

StreetComplete
A very user friendly way to contribute to OpenStreetMap.

Vespucchi
A very comprehensive OpenStreetMap editor.

Trail Sense
Use your phone's sensors to assist with wilderness treks or survival situations.
Can receive 'view' intent to lay down a beacon in the app.

from locationmapviewer.

k3b avatar k3b commented on June 19, 2024

Thanks a lot :-) . I have appended your list to https://github.com/k3b/k3b-geoHelper/wiki/Android-Geo-aware-apps .

from locationmapviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.