I am building android app that can post or get data to ubidots using API
but when data is published to a variable I need to send http request to notify the app that there is data to get
Greetings, my advise is to use MQTT in your app to subscribe to the variable that is updated, you can find the official MQTT reference here.
All the best