Dave Royal <
da...@dave123royal.com> wrote
>>>>> Pretty sure it worked in firefox/fennec
>>>>
>>>> I was going to help out by testing that fennec [snip]
>>>
>>>Thanks for the thought. I downloaded it from f-droid but I haven't
>>>played with it much yet.
>>
>>You can also download it from Mozilla's own archive. The latest version is
>>68.11.0 I still have it on a phone which emulates Android 4.4.
>>
>>Not only does it accept the file:// method - so it will display your html
>>bookmarklet file - you can set that as a homepage like on desktop. (I used
>>to have a SED script which removed all the bloat - 'last visited etc' -
>>from that file, resequence it, and fit it on a small screen. Probably
>>still got it somewhere.)
>>
>>But Fennec lacks 3 years of security updates, so I wouldn't use it.
>
> Cross-posting that back into a.c.s.firefox as in the OP. Fenix/Fennec
> handling of file:// is discussed in more detail there.
Thanks to Dave Royal for adding the Mozilla developers because this is
almost certainly an Android Mozilla bug (as the "Open With..." bug only
shows up in Mozilla-based browsers & not in Chromium-based browsers).
From my tests (& from the OP's report) this appears to be a Mozilla
specific flaw because everything works in the chromium-based browsers.
<
https://i.postimg.cc/SsVLP5w1/openwith01.jpg> MiX file mgr
Thinking that the reason Mozilla browsers don't show up in the
OpenAs/OpenWith menu might be a file-manager issue, I tested many.
<
https://i.postimg.cc/C5dm8sV8/openwith02.jpg> Simple Mobile file mgr
<
https://i.postimg.cc/SKqddhhk/openwith03.jpg> MK Explorer file mgr
<
https://i.postimg.cc/NGPNcS1k/openwith04.jpg> FX file mgr
<
https://i.postimg.cc/zGcrv1zK/openwith05.jpg> Samsung My Files file mgr
The Chromium-based browsers open an HTML file in all tested file managers.
The Mozilla-based browsers do not.
That's strange.
Since I'm like Paul, Herbert, Andy & Stan, et al., I'm a purposefully
helpful guy who tested this problem set for TheRealBev, yet I'm confused.
I first tested a whole bunch of browsers for TheRealBev, installing
OperaMini, Fennec (from F-Droid), Firefox Focus & Firefox browsers.
<
https://i.postimg.cc/P5QkW1Zb/openwith06.jpg>
I "think" the problem is one of two (neither of which work for TheRealBev),
which, after copying Firefox's exported bookmarks.html from Linux to
Android, Firefox on Android had no "file -> open" capability to read it.
But when I tested _all_ the Android web browsers, none of them had it.]
Why not?
I have no clue.
Maybe you can tell me why Android browsers lack "File -> Open" menus.
In addition, I "think" the second problem was that even with the Android
Firefox set as the default for HTML files, tapping on the exported
bookmarks.html file in Android did NOT bring it up in the Firefox browser.
*Firefox bookmarks file*
<
https://groups.google.com/g/comp.mobile.android/c/HQmZPZF9-mk>
The OP (and I) would get a plethora of chromium-based choices, but nary a
single web browser based on Mozilla code stood a chance of working right.
Why would only Chromium-based browsers show up in the "Open With..." menu
for HTML files but no Mozilla-based web browsers show up properly for HTML?
> Opening files from Android file managers is concerned with Android intents
> and app manifests and has been discussed at length in c.m.android.
While I'm pretty sure Dave Royal is completely correct that the
flaw in Mozilla's coding is in Android intents, I don't understand them.
This is a part of Android that thoroughly confuses me as I have been
successful getting the developers of two apps to make "Open With" menus
available - but they did all the work - not me. I merely had to clue them
in as to what the problem was (which I suspect is the Mozilla flaw here).
First, I had to show the App Finder developer (who is a great guy) that
people don't put Google Accounts on Android phones and so they can't use
the proprietary Google Play Store client and therefore they use the
non-proprietary open source Google Play Store clients which all use the
same "
anon...@google.com" Google Play Store repository login account.
*Skyica App Finder* replacement for Google Play Store repo search engine
<
https://play.google.com/store/apps/details?id=scadica.aq>
Then I had to show the Aurora Store developers (who are also wonderful)
that they needed to add a few related things to enable OpenWith also.
*Aurora Store* anonymous replacement for Google Play Store client app
<
https://aurorastore.org/>
Here you see I tested the App Finder which now does the "Open With..."
correctly when used on an Android phone sans any Google Account setup.
<
https://xdaforums.com/t/app-6-0-app-finder-the-most-advanced-search-engine-for-android-apps.4578809/page-10#post-89024201>
And here you see I tested the Aurora Store beta which also now does the
"Open With..." properly for those who don't use the proprietary client.
<
https://xdaforums.com/t/app-5-0-aurora-store-open-source-google-play-client.3739733/page-109#post-89023947>
Notice in both cases, as here with Mozilla, the developers never tested
their code in the way that the users use that code - but - the instant
the developers were aware of the bug - they immediately fixed it for me.
The point is that someone needs to explain to the Mozilla coders that they
too have to learn how to code Android apps so that "Open With..." works.
Right now, based on my tests (which reproduced what TheRealBev complained
about initially), none of the Mozilla-based web browsers work on Android.
As for the "intents", here is more detail but it's gory so it should only
be used to forward to Mozilla app developers so they learn how to code
Mozilla-based web browsers to work properly with HTML files on Android.
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d content://media/external/file/1000003696 -t text/html --ez from-myfiles true --eu android.intent.extra.STREAM content://media/external/file/1000003696 -f 50331649
URI=intent://media/external/file/1000003696#Intent;scheme=content;type=text/html;launchFlags=0x3000001;B.from-myfiles=true;end
ACTION=android.intent.action.VIEW
DATA=content://media/external/file/1000003696
TYPE=text/html
FLAGS=0x3000001
EXTRA=from-myfiles 0 true
EXTRA=android.intent.extra.STREAM 15 content://media/external/file/1000003696
MATCHING ACTIVITIES 21
0 LABEL HTML Viewer
NAME com.android.htmlviewer.HTMLViewerActivity
PACKAGE com.android.htmlviewer
1 LABEL Text Reader
NAME com.amaze.filemanager.ui.activities.texteditor.TextEditorActivity
PACKAGE com.amaze.filemanager
2 LABEL AEE Text Editor
NAME com.apk.editor.activities.TextEditorActivity
PACKAGE com.apkeditor.new.explorer3
3 LABEL Epic
NAME com.google.android.apps.chrome.IntentDispatcher
PACKAGE com.epic.browser
4 LABEL Text viewer
NAME com.lonelycatgames.Xplore.TextViewer
PACKAGE com.lonelycatgames.Xplore
5 LABEL Simple Text Editor
NAME com.maxistar.textpad.activities.EditorActivity
PACKAGE com.maxistar.textpad
6 LABEL Text Editor
NAME com.mixplorer.activities.TextEditorActivity
PACKAGE com.mixplorer
7 LABEL Code Editor
NAME com.mixplorer.activities.CodeEditorActivity
PACKAGE com.mixplorer
8 LABEL HTML Viewer
NAME com.mixplorer.activities.ContentViewerActivity
PACKAGE com.mixplorer
9 LABEL File Editor
NAME com.simplemobiletools.filemanager.pro.activities.ReadTextActivity
PACKAGE
com.simplemobiletools.filemanager.pro
10 LABEL Termux
NAME com.termux.filepicker.TermuxFileReceiverActivity
PACKAGE com.termux
11 LABEL Interceptor
NAME io.github.muntashirakon.AppManager.intercept.ActivityInterceptor
PACKAGE io.github.muntashirakon.AppManager
12 LABEL Text editor
NAME me.zhanghai.android.files.viewer.text.TextEditorActivity
PACKAGE me.zhanghai.android.files
13 LABEL FX Text Viewer
NAME nextapp.fx.ui.viewer.TextViewerActivity
PACKAGE nextapp.fx
14 LABEL FX TextEdit
NAME nextapp.fx.ui.textedit.EditorActivity
PACKAGE nextapp.fx
15 LABEL OpenContacts
NAME opencontacts.open.com.opencontacts.activities.ImportVcardActivity
PACKAGE opencontacts.open.com.opencontacts
16 LABEL Bromite
NAME com.google.android.apps.chrome.IntentDispatcher
PACKAGE org.bromite.bromite
17 LABEL Chromium
NAME com.google.android.apps.chrome.IntentDispatcher
PACKAGE org.bromite.chromium
18 LABEL Ungoogled Chromium
NAME com.google.android.apps.chrome.IntentDispatcher
PACKAGE org.ungoogled.chromium.stable
19 LABEL Switch to work profile
NAME com.android.internal.app.ForwardIntentToManagedProfile
PACKAGE android
20 LABEL Save as
NAME org.openintents.filemanager.SaveAsActivity
PACKAGE org.openintents.filemanager
In summary, as "Dave Royal" said, it's all about a flaw in Mozilla
Android intents where only Chromium browsers "Open with..." properly.
<
https://i.postimg.cc/SsVLP5w1/openwith01.jpg> MiX file mgr
Specifically, Mozilla-based browsers are all broken on Android in that none
of them perform the "Open with..." action correctly, while all the tested
Chromium-based Android browsers (except Opera Mini) worked properly.
<
https://i.postimg.cc/SsVLP5w1/openwith01.jpg> MiX file mgr
<
https://i.postimg.cc/C5dm8sV8/openwith02.jpg> Simple Mobile file mgr
<
https://i.postimg.cc/SKqddhhk/openwith03.jpg> MK Explorer file mgr
<
https://i.postimg.cc/NGPNcS1k/openwith04.jpg> FX file mgr
<
https://i.postimg.cc/zGcrv1zK/openwith05.jpg> Samsung My Files file mgr
<
https://i.postimg.cc/P5QkW1Zb/openwith06.jpg> Fennec doesn't work either
--
Posting a question on Usenet and helping others answer questions is an
attempt to learn from others who know more than you do (to help everyone).