This is an idea not a solution...
Take a look at the parse.com
REST push notification service and the
Android push notification service.
I experimented recently with this and found it was relatively easy to send notifications to a device from a PHP script.
The notification could be just that - a notification displayed on the device.
Or it could be a command for the device to execute some code.
This was all done in Eclipse using native android SDK and java.
We have a very basic B4A parse.com library here:
http://www.b4x.com/forum/additional...y-beta-simple-backend-solution.html#post71147, and i was hoping to find time to create a more complete B4A library but so far haven't had the time (
http://www.b4x.com/forum/bugs-wishlist/21980-parse-com-sdk.html#post127635).
Rather than trying to create a new B4A Parse library that contains all available functionality i could probably put together some code to enable you to use the Android push notification service.
That'd leave you to create PHP scripts to send notifications to your device - i have some code samples that would help here.
Does Parse push notifications sound like a viable option for your project?
Martin.