cnlohr / rawdrawandroid

Build android apps without any java, entirely in C and Make
MIT License
2.75k stars 197 forks source link

README link to permissions request code 404s #77

Closed avelican closed 8 months ago

avelican commented 8 months ago

In "If you are going to use this section", this link 404s: https://github.com/cnlohr/colorchord/blob/master/colorchord2/sound_android.c

As far as I can tell, the relevant code is here: https://github.com/cntools/cnfa/blob/d271e0196d81412032eeffa634a94a1aaf0060a7/CNFA_android.c#L305

int hasperm = AndroidHasPermissions( "RECORD_AUDIO" );
if( !hasperm )
{
    AndroidRequestAppPermissions( "RECORD_AUDIO" );
}

Also, if that's all the code, it might be helpful to put a little code block in the README.

cnlohr commented 8 months ago

Yes, that is the correct code. I will update readme.