Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

LocalConnection between desktop app and android app

Community Beginner ,
Oct 29, 2023 Oct 29, 2023

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?

190
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2023 Oct 30, 2023

Hi.

 

Can you provide details about the code you are using?

 

Regards,

JC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 30, 2023 Oct 30, 2023

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2023 Oct 30, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2023 Oct 30, 2023

localconnection is not supported on mobiles.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines