java – Run function in android app when a button on a web page is pressed

Question:

I have an app (developed in android studio) that gets data from the accelerometer. Now I need to make a webpage with a button, when the webpage button is clicked, the accelerometer data that I already have in a variable, will be displayed on the webpage. I need tips on how I can implement the web part and the listening part of the android app. Thanks in advance!

Answer:

When you want to integrate web and app. Use an api. To build api in php it has laravel, slim framework and has many other frameworks you can use.

Scroll to Top