<div dir="ltr">2013/5/22 Benito van der Zander <span dir="ltr"><<a href="mailto:benito@benibela.de" target="_blank">benito@benibela.de</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
last week I ported my Internet Tools
(<a href="http://benibela.de/sources_en.html#internettools" target="_blank">http://benibela.de/sources_en.html#internettools</a>) to Android<br>
e.g.:<br>
<br>
uses simpleinternet;<br>
Memo2.Lines.text := retrieve(edit1.text);<br>
<br>
or if you need the headers:<br>
<br>
uses androidinternetaccess;<br>
var internet: TAndroidInternetAccess;<br>
begin<br>
internet:=TAndroidInternetAccess.create;<br>
Memo2.Lines.text := internet.get(edit1.text);<br>
Memo1.Lines.Assign(internet.GetLastHTTPHeaders);<br>
internet.free;<br>
end;<br></div></blockquote><div><br>2013/5/24 Kjow <span dir="ltr"><<a href="mailto:antispammoni@gmail.com" target="_blank">antispammoni@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br><div dir="ltr"><div><div><div>Anyway, something is broken on (my?) lazarus/fpc... when I compile for Android it builds, but app crashes at start<br><br></div></div></div></div></blockquote><div> <br>Well, now I restored lazarus/fpc and I can compile for arm-android (*) with also internettools requirement.<br>
<br>About
internettools, with only "Memo1.Lines.Text:= retrieve(Edit1.Text);" for
x86_64-win64 (or i386-win32) it works, but on arm-android (Nexus 10 or
Galaxy Note) the app crashes as soon as I launch the code (e.g. in
buttonclick).<br><br>Any ideas?<br><br>Thank you,<br></div><div>Kjow<br><br>*I don't know exactly which was the problem, but now seems to be ok [I also reverted lazarus to r41240 and fpc to r24523]</div></div></div></div>
</div>