Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to communicate between Firefox addon and android process?

I want to write an Firefox mobile addon, which needs to communicate or invoke some android program with some data. I want to know what is the best way to communicate between an Firefox addon and android process. One way I can think of is to write data on Clipboard from addon, and continuously poll for clipboard from the android process, but that is not the efficient way. So any other ideas, please.

like image 575
Priyank Bolia Avatar asked Apr 17 '11 17:04

Priyank Bolia


1 Answers

Unfortunately, there isn't a public way to communicate between Firefox and Android. We have been discussing how to expose such a mechanism.

In the meantime, I have been able to communicate with other applications using sockets. For example, the Android Scripting Layer (http://code.google.com/p/android-scripting/) can act as a RPC server. I have been able to open a socket to the server and communicate that way.

like image 156
Mark Finkle Avatar answered Nov 01 '22 07:11

Mark Finkle