This question asks about Mac vs. PC. I need the same answer, only for Android.
I have tried the POSIX solution in the (above) answer but it does not work under Rad Studio XE8 (Delphi). It tells me that PAnsiChar and AnsiString are both “undeclared identifiers”