Skip to main content
Known Participant
Oct 30, 2023 3:55 AM UTC
Question

LocalConnection between desktop app and android app

I'm trying to do a LocalConnection between an application (.exe) file and an android application, I've tried almost every domain and I keep getting errors. What should I do?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    kglad
    Community Expert
    Community Expert
    Oct 30, 2023 1:23 PM UTC

    localconnection is not supported on mobiles.

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Oct 30, 2023 12:32 PM UTC

    Hi.

     

    Can you provide details about the code you are using?

     

    Regards,

    JC

    Translate
    Known Participant
    Oct 30, 2023 1:56 PM UTC

    Of course.

     

    SWF or Desktop Application:

    var test:LocalConnection = new LocalConnection;
     
    show_btn.addEventListener(MouseEvent.CLICK, showtest);
     
    function showtest(event:MouseEvent):void
    {
    test.send("_myConnection","game");
    }
     
    AIR:
    var test:LocalConnection = new LocalConnection;
    test.client=this;
    test.allowDomain("app#screen");
    test.connect("_myConnection");
     
    function game():void{
    test_txt.text="THIS IS A TEST."
    }
    Translate
    kglad
    Community Expert
    Community Expert
    Oct 30, 2023 2:04 PM UTC

    again, localconnection is not supported on mobiles. ie, read the api.

    Translate