Sorry, not concentrating
Sorry but I already own this extension and tested it and still nothing.
If you want I can give you the aia file I have of this
Show your relevant blocks, and yes, please provide your aia project for examination.
Here is the most basic setup of webviewextra in an aia project
basicWVE.aia (25.2 KB)
Update to version 1.98
Fixes Downloaded Event, so that it now runs after the file has completely downloaded. Credits @Kumaraswamy for the code. The Downloaded Event only works correctly when app is compiled. Developers should use the DownloadDataDebug Event when developing/testing with companion app (but this fires when the download is initiated).
OK, my understanding is that you are using a Chromebook, with AppInventor Companion installed as an Android app, and that you are having trouble accessing files that are downloaded through the webviewer, using webviewextra.
I have an Acer 715 Chromebook, and can relate my experience with the above, and possibly how to resolve the issue.
-
The Chromebook creates a facsimile of the Android file system in a directory called "Play Files". You should see this if you open the Files app on your Chromebook.
-
A notable exception in the file/directory structure is the Download directory, which is not available in the Files app, nor through the companion app. This is most likely due to some Google nonsense about protecting your privacy/safety! Trying to open Download using FilePicker causes the companion app to crash/close.
-
When a file is downloaded through the webviewer/webviewextra it gets placed in the
Downloads
directory of the Chromebook! This is OK if you want to access the file through your Chromebook, but of no use whatsoever if you want to access it using the aia project running on your Companion app. -
However, you can add a setting to webviewextra that will place any downloaded files in the ASD of the aia project/companion app. This is accessible from the aia project/companion app.
-
The good thing about using the ASD is that all files you download there will be read/write for your aia project.
-
You cannot use a filepicker or imagepicker to select files from the ASD, but as above, you can list the ASD directory, then you can select a file through a listview, and then carry out file operations (open/copy/move) after selection:
- The ASD is also accessible on the Chromebook through the Play Files directory (there is an option in the three dots menu to show all the directories in
Play Files
:
Play Files > Android > data > edu.mit.appinventor.aicompanion3/files
Personally, I would recommend using an external device (Android phone/tablet) to run the companion app, this way you would get the same experience as most users running AI2 on a "normal" computer.
(Note: I have not tried it out, but I am guessing the experience is much the same if you were to install a compiled app to the Chromebook with download through webviewer functionality)
Do I add this code to the previous code you first mention or stay it as is. Cause my webviewer is not showing up
Start with the basicWVE aia I provided, and work up from there.
You do not need all the extra blocks I provided in the zip file.
Here is the app you taught me how to make and my companion screen isn't popping up the webviewer
basicWVE (1).aia (26.1 KB)
You need to go to a url
Where can I put my notifier in the code to tell the companion not to close out until download is complete
With the latest version of the extension (1.98) you have to compile the app in order for the Downloaded event to work correctly.
Did you see and read my response to your issues with finding downloaded files ?
was this of any help to you ?
This helped but few questions about this
1st off what do you mean by compile the app. Also could this file go any faster cause it has been loading for an hour.
Good. No need to say thankyou...
Don't know what you are referring to, but nothing should be taking that long to load
Can you show me the block coding on how to set up the notifier
What notifier ?
The thing that tells you don't close companion until the download is finished
Why would you close the companion app unless you want to ?
Check in the ASD or Downloads to see if you have the file.
Its not for me its for others that will send my app