Csound Csound-dev Csound-tekno Search About

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

Date2024-11-02 00:24
FromMichael Gogins
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

Date2024-11-03 20:24
FromArthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd-dev] New beta release of the Csound for Android app
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.

abhunkin@uncg.edu
http://www.arthunkins.com

From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Friday, November 1, 2024 8:24 PM
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
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

Date2024-11-03 23:25
FromMichael Gogins
SubjectRe: [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 <000001e1d761dea2-dmarc-request@listserv.heanet.ie> 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: 
net:ERR_EMPTY_RESPONSE

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

Art H.


From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Friday, November 1, 2024 8:24 PM
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
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

Date2024-11-04 14:44
FromMichael Gogins
SubjectRe: [Csnd-dev] New beta release of the Csound for Android app
Could you get me more specific information: 32 bit vs 64 bit, chip, OS version, API version, specific model number?

That would help, thanks.

Mike
-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Nov 3, 2024 at 6:25 PM Michael Gogins <michael.gogins@gmail.com> wrote:

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 <000001e1d761dea2-dmarc-request@listserv.heanet.ie> 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: 
net:ERR_EMPTY_RESPONSE

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

Art H.


From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Friday, November 1, 2024 8:24 PM
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
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

Date2024-11-05 03:49
FromArthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd-dev] New beta release of the Csound for Android app
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.
abhunkin@uncg.edu
http://www.arthunkins.com

From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Sunday, November 3, 2024 6:25 PM
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
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 <000001e1d761dea2-dmarc-request@listserv.heanet.ie> 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: 
net:ERR_EMPTY_RESPONSE

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

Art H.


From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Friday, November 1, 2024 8:24 PM
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
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