osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.72k stars 1.03k forks source link

OsmAnd is missing on share sheet on some devices #21214

Open Nine-Tailed opened 3 weeks ago

Nine-Tailed commented 3 weeks ago

Describe the idea

I export a track from zepp (client for amazfit watches) in gpx format, but in the list of applications with which I can share there is no osmand, although there are many other map apps. I would like to see osmand in this list. Now I have to save the file to the card using total commander and then open it in osmand. I would like to avoid this intermediate step.

Expected behaviour

described above.

Alternatives you've considered

described above.

Context

No response

vshcherb commented 3 weeks ago

We need to find which intent is being called probably it's in logs or in developer functions

yuriiurshuliak commented 2 weeks ago

I was able to reproduce the issue. To reproduce, download this GPX track, upload it to Telegram, then long-press on it to open the context menu and select the Share option.

You’ll notice that OsmAnd does not appear in the Share list.

OsmAnd~ 5.0.0#3656m, released: 2024-11-05

dmpr0 commented 2 weeks ago

Device model / manufacturer / Android version should me added

vshcherb commented 2 weeks ago
2024-11-07 17:45:19.851  1794-2008  ActivityTaskManager     system_server                        I  Displayed com.android.intentresolver/.ChooserActivityLauncher for user 0: +86ms
2024-11-07 17:45:19.852  1794-2008  WindowManager           system_server                        V  Sent Transition (#1825) createdAt=11-07 17:45:19.763 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=2066 effectiveUid=10235 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.SEND dat=content://media/... typ=image/png flg=0x13000003 cmp=org.telegram.messenger/org.telegram.ui.LaunchActivity } baseActivity=ComponentInfo{org.telegram.messenger/org.telegram.ui.LaunchActivity} topActivity=ComponentInfo{com.android.intentresolver/com.android.intentresolver.ChooserActivity} origActivity=null realActivity=ComponentInfo{org.telegram.messenger/org.telegram.ui.LaunchActivity} numActivities=2 lastActiveTime=623510452 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{3a3222e Task{f7db1d0 #2066 type=standard A=10235:org.telegram.messenger isResizeable=true minWidth=-1 minHeight=-1}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 0 - 0, 0) topActivityInfo=ActivityInfo{b267cb com.android.intentresolver.ChooserActivityLauncher} launchCookies=[android.os.BinderProxy@10dd3c2] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=true isVisible=true isVisibleRequested=true isSleeping=false locusId=null displayAreaFeatureId=1 isTopActivityTransparent=true isTopActivityStyleFloating=false lastNonFullscreenBounds=Rect(268, 663 - 812, 1743) capturedLink=null capturedLinkTimestamp=0 appCompatTaskInfo=AppCompatTaskInfo { topActivityInSizeCompat=false eligibleForLetterboxEducation= false isLetterboxEducationEnabled= false isLetterboxDoubleTapEnabled= false eligibleForUserAspectRatioButton= false topActivityBoundsLetterboxed= false isFromLetterboxDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=1080 topActivityLetterboxHeight=2400 topActivityLetterboxAppWidth=1080 topActivityLetterboxAppHeight=2400 isUserFullscreenOverrideEnabled=false isSystemFullscreenOverrideEnabled=false hasMinAspectRatioOverride=false cameraCompatTaskInfo=CameraCompatTaskInfo { freeformCameraCompatMode=inactive}}}, pipTask = null, remoteTransition = null, displayChange = null, flags = 0, debugId = 1825 }
2024-11-07 17:45:19.802 14181-16062 APSResolverComparator   com.android.intentresolver           I  handleSortedAppTargets, sortedAppTargets #13: ComponentInfo{com.vecturagames.android.app.gpxviewer/com.vecturagames.android.app.gpxviewer.activity.MainActivity}
      Intent { act=android.intent.action.SEND typ=application/octet-stream flg=0xb880001 cmp=com.ghisler.android.TotalCommander/.DirBrowseActivity clip={application/octet-stream {U(content)}} (has extras) }
vshcherb commented 1 week ago

After investigation we didn't find which intent and how to fix it.