Android Socket Connection to PC not WORKING

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gilar
Posts: 96
Joined: Sat Sep 26, 2015 12:59 pm

Android Socket Connection to PC not WORKING

Post by gilar » Tue Jan 10, 2017 5:52 am

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
Gilar | from INDONESIA

gilar
Posts: 96
Joined: Sat Sep 26, 2015 12:59 pm

Re: Android Socket Connection to PC not WORKING

Post by gilar » Wed Feb 15, 2017 3:14 am

For anyone has problem like
you just have to ceklis "INTERNET" option on "APPLCATION PERMISSION" in Standalone
Image
Gilar | from INDONESIA

Post Reply

Return to “Android Deployment”