Page 1 of 1

Android Socket Connection to PC not WORKING

Posted: Tue Jan 10, 2017 5:52 am
by gilar
Hello every body ...
dos anyone has problem like me?
I have built Port Connection apps, I built in Windows then Deploy for Andoid and PC
here the result:
- Livecode success build apk and exe file
- exe file works good in PC (can connect to server)
- apk file not working on Android.

Not working mean
Aplication cannot connect to Server

NOTE
I use CasparCG for Server http://www.casparcg.com/

here the code

Code: Select all

command connectIt
   if field ipport is among the lines of the opensockets then
      close socket field ipport
          set the backgroundcolor of button "server_btn" to 0, 0, 0
   else
      open socket to field ipport
            set the backgroundcolor of button "server_btn" to 128, 0, 0
      if the Result <> "" then
         put "result:" && the result
      else
         readLoop
      end if
   end if
end connectIt

command readLoop
   if field ipport is among the lines of the opensockets then
      read from socket field ipport until empty
      send "readLoop" to me in 50 milliseconds
   end if
end readLoop
Should I put another code for android Apps

Any comment and help wouldbe apreciate



Best Regards


Gilar Kadarsah | From Indonesia
Newbe programmer

Re: Android Socket Connection to PC not WORKING

Posted: Wed Feb 15, 2017 3:14 am
by gilar
For anyone has problem like
you just have to ceklis "INTERNET" option on "APPLCATION PERMISSION" in Standalone
Image