Skip to first unread message

jason lloyd

unread,
Jul 7, 2015, 11:20:15 AM7/7/15
to mitappinv...@googlegroups.com
Hi all
i am just starting out on app inventor and have learned some new things and thanks for all the tutorials and help but there is one thing i cannot figure out?
i have made an app that will download a zip file i can get this to download the file and save to SD but i would also like to extract that file contents to a specific folder within the android device once it has downloaded?

so process is
1.click download to download the file
2.once file download is complete the app will auto unzip the file and place the files in the location i set auto overwrite any other files in that location then delete the downloaded zip file once complete 


is this possible or am i asking to much of app inventor 

Hope anyone can help 

Thanks

SteveJG

unread,
Jul 7, 2015, 2:25:37 PM7/7/15
to mitappinv...@googlegroups.com
What you want to do is not possible using App Inventor native controls and might not even be possible using ActivityStarter in conjunction with an Android unzip app.

AI2 does not have a control that can manage and download or select individual files in a folder.   There is a work around to do this using ActivityStarter ; Taifun shows you how here http://puravidaapps.com/pick.php 

That takes care of 1.

As far as 2 is concerned, you probably cannot auto unzip the file. You might be able to connect to one of the Android Unzip apps that are on Google Play and use it like in Taifun's example...something to try.   Assuming you can in fact unzip it, you could use the File control to delete the zipped version of the file.

Hmmm, too much?   App Inventor is an entry level Android compiler intended primarily for teaching programming basics.   It keeps getting better, however, in no way will it every have the extensive tool sets or libraries of the 'professional' Android compilers like Eclipse or Android studio.   Easy free programming has a price.

What is asking a lot is to have your phone behave like a computer.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages