I have Android app and 1 php application. I want to invoke android function when the button is clicked on my php application (on latop-pc browser). So basically Php to android communication. How to achieve that?

Recommended Answers

You'll need to implement a polling mechanism on your android.

Jump to Post

All 3 Replies

You'll need to implement a polling mechanism on your android.

create a background service which keeps checking if there is any new data from the php api..if there is new data, just invoke the android function

Hi,
I think that the best way to do so, is a communication with json or XML both php and Android implement this nativelly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.