Loading...

Follow My Randomness.
Blog.

A compilation of random bits of the inner me, my grab-bag of everything and anything that catches my eye, my open journal.
#info #searches #websites #thoughts #highlights #questions #answers #reading #travel #places #glasgow-as-i-go #photo #video #watch #tech #shopping #bookmarked All Tags
scribbling in other   lingos:  PL  RU  UA 

#android(4)


05 Aug 2024 15:48

Q: I have generated a set of icons for my site for various platforms/devices using realfavicongenerator.net. After incorporating them into my site, I have noticed that on iOS (Safari) and Android (Chrome), when adding a shortcut to my site on the desktop, my site is being treated like a web app. Chrome on Android shows "install app" instead of "add shortcut", and on both iOS and Android devices, clicking on the shortcut launches my site in web app mode, i.e., without the browser's navigation elements. How do I get my site to behave like a standard site, not a web app, again?

A: realfavicongenerator.net generates a file called site.webmanifest. It should be in the same folder as all your different generated favicons, likely in the root folder of your site. The content of the file will look similar to this:

{
    "name": "",
    "short_name": "",
    "icons": [
        {
            "src": "/android-chrome-192x192.png",
            "sizes": "192x192",
            "type": "image/png"
        },
        {
            "src": "/android-chrome-512x512.png",
            "sizes": "512x512",
            "type": "image/png"
        }
    ],
    "theme_color": "#ffffff",
    "background_color": "#ffffff",
    "display": "standalone"
}

If you change "standalone" to "browser", that should do it. Don't forget to clean your mobile browser's cache before you test it, as browsers tend to cache the manifest file.

19 Jun 2024 12:25

Q: On my Android device, I would like to exclude some folders with image/video files from being displayed by apps that have access to the gallery. Can I do that?

A: You can. Using the file manager of your choice (I use Cx File Explorer, but you can use any one you prefer), go to the folder that contains the media files you don't want to be displayed by apps with access to the gallery. In that folder, create a blank file named .nomedia. That's it. That should do the trick.