does laz4android support tstream and tprocess class? lazarus / 43-Android ---------------------------------------------------------------------- halflifezy · 2013-11-02 04:37 does laz4android support tstream and tprocess class?an all lazarus runtime functions supported? ---------------------------------------------------------------------- Leledumbo · 2013-11-02 13:04 TStream, I think so, it's pure Pascal and doesn't require special OS support. TProcess, not sure, however. ---------------------------------------------------------------------- halflifezy · 2013-11-02 13:57 TStream include TMemoryStream and TFileStream,support them all? if not support TProcess,how about SysUtils.ExecuteProcess? ---------------------------------------------------------------------- Leledumbo · 2013-11-02 15:14 QuoteTStream include TMemoryStream and TFileStream,support them all?Yes. Quoteif not support TProcess,how about SysUtils.ExecuteProcess?Shouldn't differ much, I guess. TProcess is implemented with fork() while SysUtils.ExecuteProcess is with execve(). Anyway, why don't you just try them? ---------------------------------------------------------------------- halflifezy · 2013-11-02 15:30 thanks , ---------------------------------------------------------------------- halflifezy · 2013-11-03 13:27 bad news. i have a try.they were not support at all.when i press button,it exit immediately ---------------------------------------------------------------------- Leledumbo · 2013-11-03 21:30 I will test later EDIT: What TStream descendant are you trying to use? Everything other than TFileStream seems to work fine, TFileStream does cause a crash though, probably I miss certain permission. ---------------------------------------------------------------------- marcov · 2013-11-04 09:01 Quote from: Leledumbo on November 02, 2013, 04:14:02 pm Shouldn't differ much, I guess. TProcess is implemented with fork() while SysUtils.ExecuteProcess is with execve(). Both do a fork and execve. TProcess mostly supports piping and changing of directory in addition. ---------------------------------------------------------------------- halflifezy · 2013-11-05 04:35 Quote from: Leledumbo on November 03, 2013, 10:30:28 pmI will test later EDIT: What TStream descendant are you trying to use? Everything other than TFileStream seems to work fine, TFileStream does cause a crash though, probably I miss certain permission. yes,i just use TFileStream.and what about SysUtils.ExecuteProcess?and thank you for test. ---------------------------------------------------------------------- halflifezy · 2013-11-05 09:42 i have test again,it seems that TMemoryStream and TFileStream(i add other permissions) works fine, but SysUtils.ExecuteProcess can not work. BeginThread can not work too. other runtime funtions i have not test yet. at last how to solve SysUtils.ExecuteProcess and BeginThread? ---------------------------------------------------------------------- Leledumbo · 2013-11-05 10:41 QuoteTFileStream(i add other permissions) works fineWhat's the correct permission? I add android.permission.WRITE_EXTERNAL_STORAGE but it still fails. ---------------------------------------------------------------------- halflifezy · 2013-11-05 13:17 Quote from: Leledumbo on November 05, 2013, 11:41:49 amQuoteTFileStream(i add other permissions) works fineWhat's the correct permission? I add android.permission.WRITE_EXTERNAL_STORAGE but it still fails. sorry ,i do not know, i use the permission import from delphi xe5(add all permission). ---------------------------------------------------------------------- halflifezy · 2013-11-06 13:44 maybe SysUtils.ExecuteProcess can not work. ---------------------------------------------------------------------- Leledumbo · 2013-11-06 15:48 Quotemaybe SysUtils.ExecuteProcess can not work.I'm not sure, but perhaps direct binary execution is not allowed in android. It must reside in library and be called through android activity CMIIW. ---------------------------------------------------------------------- halflifezy · 2013-11-07 04:44 Quote from: Leledumbo on November 06, 2013, 04:48:14 pmQuotemaybe SysUtils.ExecuteProcess can not work.I'm not sure, but perhaps direct binary execution is not allowed in android. It must reside in library and be called through android activity CMIIW. i have see somebody use eclipse with 'su chmod 777 xxxxxxx' command.maybe it is only in java now,and perhaps lazarus  will improve in future version.