Re: [Csnd-dev] New beta release of the Csound for Android app

Arthur Hunkins <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CO6PR14MB4305CAEF80FDA48AA0009655A3522@CO6PR14MB4305.namprd14.prod.outlook.com>
Hi, Mike -

No, I had not set those two variables. (Didn't know it was necessary; could you somehow make it clearer that such is required?)

Better yet, could port default to 8080, and directory to Music? Both work for me, and I'd presume for most users. (FWIW, I've never needed to manually set any of the other Settings.)

In summary, as expected, the latest version 48beta doesn't work at all on Android 7.1.1. On my wife's Pixel 6 with OS 13, only "Message" runs. On Samsung Chrome Plus (like yours), "Message" and "Scrims" run. "Trichords" I can't get to run on either device, though I find both Scrims and Trichords difficult to know how to run (perhaps just a user issue!)

I'll be joining the Thursday call, and look forward to further learning and conversation.
[email protected]
http://www.arthunkins.com
________________________________
From: Csound-developers <[email protected]> on behalf of Michael Gogins <[email protected]>
Sent: Sunday, November 3, 2024 6:25 PM
To: [email protected] <[email protected]>
Subject: Re: [Csnd-dev] New beta release of the Csound for Android app


13 should work, I will emulate a Pixel running 13. Did you make sure to set the port and Web directory in the app settings? This is now required.

On Sun, Nov 3, 2024, 15:24 Arthur Hunkins <[email protected]<mailto:[email protected]>> wrote:
Hi, Mike -

I tried your new beta version on two Android phones: my old OS 7.1.1 (Nexus 2) and my wife's recent OS 13 (a Pixel I think). The HTML examples didn't work on each, with the following error message:
WebView error for http://localhost:8080/message.html from http://localhost:8080/message.html!
net:ERR_EMPTY_RESPONSE

(Other .csd's ran relatively well on each phone.) Probably doesn't help you much.

Art H.

[email protected]<mailto:[email protected]>
http://www.arthunkins.com
________________________________
From: Csound-developers <[email protected]<mailto:[email protected]>> on behalf of Michael Gogins <[email protected]<mailto:[email protected]>>
Sent: Friday, November 1, 2024 8:24 PM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Subject: [Csnd-dev] New beta release of the Csound for Android app

You can download the .apk from GitHub here (https://github.com/gogins/csound-android/releases/tag/v48beta) and copy it to your device, then install it.

The reason for this release is that I just upgraded my smartphone to a Samsung S24 Ultra and found that the Csound for Android app would no longer run HTML pieces, although all the other examples in the app seemed to play properly.

After researching the problem, I decided to rewrite the HTML running part of the app to use a localhost Web server embedded in the app, with a user-configurable port and Web directory. This seems to handle the increasing restrictions that Google has placed on Android's use of the device filesystem, and in particular, on the ability of the WebView component to load resources from the device filesystem.

The app now seems to play HTML pieces without problems. I have tested this on my phone and on emulators for various versions of Android. I do not know how far back compatibility with earlier versions of Android goes. I would appreciate any feedback on this or on any other issue or suggestion.

In the not too distant future I may be able, with these changes, to get the Csound for Android app back into the Google Play Store.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.