[DISCONTINUED] Extension to download a file to ASD (app-specific directory) without WRITE permission

Hi @Anke, can you attach the test aia ?

1 Like

I posted the example blocks and there are only a few blocks. So no problem to do it yourself.

thank you for your contribution

there is only one minor issue... the method DownloadFileToASD is an asynchronous method and usually there should be an event to indicate, that the download has been finished...
therefore you might want to replace your method FileDownloadedToASD by that event
Thank you

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

2 Likes

Thank you for the hint.

I'm not sure I can do this without a little help. Maybe I will get a hint from one of the extension experts (from you, @vknow360, @MohamedTamer ...). As you know, I'm still quite a beginner with extensions / Java. :thinking:

1 Like

see for example the source code of my headset extension about how to do it... https://puravidaapps.com/headset.php
see especially the Changed event and how it is called from the Broadcast Receiver

Taifun

3 Likes

Done, thank you!

2 Likes
  1. Will it download drive file
  2. Will it increase storage or not
  3. Once downloaded can I delete using @taifun file extension

Yeah, but why don't you just try?

Sorry not enough time can someone test never think bad

@Anke Cool Download to ASD extension. What type of apps would require this?

@Anke Edit: What type of app would need this extension to download to the app's directory?
I'm new to this, so I'm just asking.

What do you mean by that?

How can I retrieve the file I downloaded to put it in a videoplayer?

I saw that but it gives error 701 in my code


I have those.I skipped the global count because player will download it only once

I believe you are missing a / in your code

1 Like

Thanks for this wonderful extension.
One question:
every time when downloadcompleted, this message will show up, telling me some file is downloaded.
Howe to disable this?

I didn't get that message as you can see here.
(please translate the message)

OK no problem. Maybe its only on some devices.

or is it because this?

Hi!

So, can anything be done about the "file downloaded" notification?