What does the logcat say?
You need to have
|<uses-permission android:name="android.permission.INTERNET"/>
|
in the Android manifest
And it has to be called in a new thread, unless you have
|if (android.os.Build.VERSION.SDK_INT> 9) {
StrictMode.ThreadPolicy policy=
new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
}
|
in the java file
On 05/27/2013 12:30 AM, Kjow wrote:
2013/5/26 Benito van der Zander <[email protected]
<mailto:[email protected]>>
Anyway, something is broken on (my?) lazarus/fpc... when I
compile for Android it builds, but app crashes at start
(Well, on Galaxy Note it crashes at start, on Nexus 10 the app
goes on loop flashing all time until I kill it)
Always or just with the internettools?
Did you check the logcat?
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]
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus