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?

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.