[Lazarus] Android and network
Kjow
antispammoni at gmail.com
Mon May 27 00:30:57 CEST 2013
2013/5/22 Benito van der Zander <benito at benibela.de>
> Hi,
> last week I ported my Internet Tools (
> http://benibela.de/sources_en.html#internettools) to Android
> e.g.:
>
> uses simpleinternet;
> Memo2.Lines.text := retrieve(edit1.text);
>
> or if you need the headers:
>
> uses androidinternetaccess;
> var internet: TAndroidInternetAccess;
> begin
> internet:=TAndroidInternetAccess.create;
> Memo2.Lines.text := internet.get(edit1.text);
> Memo1.Lines.Assign(internet.GetLastHTTPHeaders);
> internet.free;
> end;
>
2013/5/24 Kjow <antispammoni at gmail.com>
>
> Anyway, something is broken on (my?) lazarus/fpc... when I compile for
> Android it builds, but app crashes at start
>
>
Well, now I restored lazarus/fpc and I can compile for arm-android (*) with
also internettools requirement.
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).
Any ideas?
Thank you,
Kjow
*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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130527/dbdf7f8c/attachment-0003.html>
More information about the Lazarus
mailing list