any other things like firebase?
TIMAI2
January 5, 2023, 5:09pm
26
OK, this works when compiled. It takes a little while to create the base64 string, so might be worth using a notifier's progress dialog. The problem was with the Web1.uriEncode block (which is odd).
it works but the video is "unplayable" for some reason
another problem,in my main app when implementing this, it crashes as soon as the camera or camcorder opens
Please, apart from asking for help, also try to search the forum for similar topics.
From an Android point of view there are an → Internal Storage and an → External Storage .
1. Internal Storage
The Internal Storage can only be accessed with a rooted device.
1.1 The app package is saved in
/data/data/<packageName>/
In order to be able to debug your app, AI2 saves the assets for → Companion on devices with
Android ≥ 10 (API ≥ 29):
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/assets/
Android < 10 :
/storage/emulated/0/Android/data/edu.mit…
And on this occasion, here's the next bug related to and caused by DefaultFileScope, which is the following:
If DefaultFileScope was set to Legacy and you use the Camera, the app crashes after taking a photo on Android 11+. Unfortunately, one does not learn which path from the Camera component is used with Legacy.
This has further consequences, because if you cannot set DefaultFileScope to Legacy, WRITE will not be declared in the Manifest on Android 11+, which is absurdly required if you us…
TIMAI2
January 6, 2023, 7:37am
31
You may need to remove the line returns \n
from the base64 string, before posting ?
TIMAI2
January 6, 2023, 10:58am
32
Also see here Sound Pressure Level - Crash - DB
For issues with sound pressure extension
it did not work @TIMAI2 , but thanks anyway
BTW, the runtime error which says "Attempt to invoke virtual method 'boolean java.lang.string.contains(java.lang.CharSequence)' on a null object reference" still persists
TIMAI2
January 8, 2023, 1:08pm
36
I am looking at other solutions for you (upload video)
Could you use firebase storage ?
TIMAI2:
(upload video)
should I upload the working of the app?
TIMAI2
January 9, 2023, 12:20pm
38
I hopefully have another solution, using the Google Drive API (takes a bit of setting up). Need to do some testing and writing up of method though.
1 Like
Hey @TIMAI2 , I wanted to come back to this app to finish it, have you found anything on how to fix the bug
Although, it should be the last option but still you should try considering using an extension.
I searched the ai2 community and the kodular community as well but I couldn't find any extension, any chance you happen to know any
That depends on whether files will be uploaded to your drive or user's?
TIMAI2
May 7, 2023, 10:34am
44
Here are three options for you:
Google Drive API
[iconGDC96]
It can be tricky to get setup, but once done, uploading files is pretty straightforward.
Where I mention service accounts, I actually mean "0Auth Client ID"s
Upload Any File to Google Drive, using Google Drive API
Update: now includes information about downloading files from Google Drive, and listing files on Google Drive (see the Addendum)
WebViewExtra (load your google drive folder url and upload file)
WebViewExtra [wveicon]
An extension for AI2 that extends the features of the native webviewer.
The extension, by default, will provide the following features:
allow for uploading of files from within a webviewer. (Developers will need to provide suitable html solutions...)
allow for downloading of files from within a webviewer, even from Google Drive shared folders! Files are saved to the Download directory in Shared storage.
sets READ and WRITE and MEDIA permissions in the app / aia proje…
Sharing to Google Drive
Use the sharing component to send file to google drive