<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    What does the logcat say?<br>
    <br>
    <br>
    You need to have<br>
    <pre style="" class="default prettyprint prettyprinted"><code><span class="tag"><uses-permission</span><span class="pln"> </span><span class="atn">android:name</span><span class="pun">=</span><span class="atv">"android.permission.INTERNET"</span><span class="tag">/>
</span></code></pre>
    in the Android manifest<br>
    <br>
    <br>
    And it has to be called in  a new thread, unless you have<br>
    <pre style="" class="default prettyprint prettyprinted"><code><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">android</span><span class="pun">.</span><span class="pln">os</span><span class="pun">.</span><span class="typ">Build</span><span class="pun">.</span><span class="pln">VERSION</span><span class="pun">.</span><span class="pln">SDK_INT </span><span class="pun">></span><span class="pln"> </span><span class="lit">9</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
</span><span class="typ">StrictMode</span><span class="pun">.</span><span class="typ">ThreadPolicy</span><span class="pln"> policy </span><span class="pun">=</span><span class="pln"> 
        </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">StrictMode</span><span class="pun">.</span><span class="typ">ThreadPolicy</span><span class="pun">.</span><span class="typ">Builder</span><span class="pun">().</span><span class="pln">permitAll</span><span class="pun">().</span><span class="pln">build</span><span class="pun">();</span><span class="pln">
</span><span class="typ">StrictMode</span><span class="pun">.</span><span class="pln">setThreadPolicy</span><span class="pun">(</span><span class="pln">policy</span><span class="pun">);</span><span class="pln">
</span><span class="pun">}

</span></code></pre>
    in the java file<br>
    <br>
    <br>
    <br>
    On 05/27/2013 12:30 AM, Kjow wrote:
    <blockquote
cite="mid:CADatRmhe17Yodi+=NyMRe86kJAfCJY-TzKWMWA90ipAQpOnoTA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=ISO-8859-1">
      <div>
        <div>
          <div>2013/5/26 Benito van der Zander <span><<a
                moz-do-not-send="true" href="mailto:benito@benibela.de">benito@benibela.de</a>></span><br>
            <blockquote>
              <div>
                <div>
                  <blockquote type="cite"><br>
                    Anyway, something is broken on (my?) lazarus/fpc...
                    when I compile for Android it builds, but app
                    crashes at start<br>
                    (Well, on Galaxy Note it crashes at start, on Nexus
                    10 the app goes on loop flashing all time until I
                    kill it)</blockquote>
                  <br>
                </div>
                Always or just with the internettools?<br>
                <br>
                Did you check the logcat?<br>
              </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>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>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
    </blockquote>
  </body>
</html>