I have finally managed to fix this issue! Thanks to a tip off from and all of the info I needed was on the thread posted, so thank you very much. Not ideal, but at least it now works! Required some patching to Juce, of course. NB: if the user hasn’t set your Permissions as per the alert, Wotja will continue to save files in private storage area. When Wotja starts, it checks to see if has permission to write to the (shared) Storage area.Ī) If it does, it will create a Wotja folder under Documents (or Music or Download, in descending order of preference…)ī) if it doesn’t, it shows an alert warning the user about this Permissions setting, and telling them how to fix it if the user follows the instructions, and then restarts Wotja Wotja then attempts to move any files that might have had in the “old” private area, to this shared area but Wotja can only do this of course once the user has changed permissions… You can take a look to see how we tell the user to handle this in the new Wotja for Android, which is going live tomorrow (21.8.0). We’ve found you also need to prompt the user to update their Permissions. I get the same result with std::unique_ptr wi = url.createInputStream (false) UrlAndroid is passed as a reference to the Thread object constructor. Std::unique_ptr wi = url.createInputStream (true) // check for NULL SafeThis->loadAudioAndroidThread->startThread() Īnd inside the thread loadAudioAndroidThread is the run()… void run() overrideĭBG("check not in message thread " + String((int)juce::MessageManager::getInstance()->isThisTheMessageThread())) ĭBG("getLocalFile: " + url.getLocalFile().getFullPathName()) ĭBG("url.toString: " + url.toString(true)) SafeThis->urlAndroid = results.getReference(0) If (safeThis != nullptr & fc.getURLResults().size() > 0) "*.wav *.aif *.aiff *.flac *.mp3 *.wma *.ogg *.aac *.m4a", true)) įileChooser->launchAsync (FileBrowserComponent::openMode | FileBrowserComponent::canSelectFiles, Where… void TestAndroid2AudioProcessorEditor::importAudioFileAndroid()įileChooser.reset (new FileChooser ("Choose an Audio File to Import.", File(), When a button is clicked: void TestAndroid2AudioProcessorEditor::buttonClicked (juce::Button* button)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |