Extension to download file(s) to ASD (app-specific directory) without WRITE permission

Try this: DownloadToASD_notifHidden.aix (7.5 KB)

Note:

rather than offering a modified version of the extension you might want to add a property into the extension to switch between showing downloading notification or not…

Taifun

1 Like

Yes, that may be true, but I always try to make my extensions as simple as possible (to avoid possible questions and irritations). Since this wish (hidden notification) has never appeared before, I will leave it with this version.

you do not want to keep 2 different versions of an extension up-to-date… the day will come you might want to add more functionality or do some bug fixes etc…

Taifun

2 Likes

I got following error while using this extension.

image

Hi , I got this error from yesterday . It was working fine but when I last compiled my app at 1 Am 11 August . It stops working and give this error.


What should this error have to do with my extension?
Post all (relevant) blocks in hight quality.

This is all Blocks in this screen nothing else

@bodymindpower I think the bug is due to notification visibility as I found something like my bug

Ok, you should have mentioned that you have used this version

So try to add this in the Manifest:

Problem Solve after dragging download component as download component declare this permission already.

Why can’t I check if the file exits although the file is already downloaded?

The result is false

I got the same result. The build-in file component has a bug i think. Use the FileTools extension instead.

Your blocks should work on devices with API < 29 (Android 9 and below).
On devices with Android ≥ 10 try this:

The following blocks work without permissions and on all Android versions from API 19 (Android 4.4 / KitKat):

Yes, but not in this case.

Note: The File component still requests WRITE / READ permissions saving / reading to / from the ASD. → @pavi2410

Why make it so complicated? Extremely not friend to beginners.

Is it really that complicated? I do not think so.
This is due to the File component, which redirects the path to the ASD on devices with Android ≥ 10. If the File component is used, there is no other way than the one I’ve shown.

Of course you can also use the TaifunFile or FileTools extension. But these are not (yet) completely adopted to the new Kodular file architecture (so there may be problems with Companion).

1 Like

I use Taifun files extension to check file exists and it works amazing in all android and in companion also

No, see e.g. here (tested on Android 9):

1 Like