Reputation: 93
I am in the process of developing an Android
application for home automation system, one of the features is controlling lights and fans via internet(webpage).
As I'm new to this, it would be really helpful if someone could tell me how to proceed or where to start.
Should I be using a webserver on my android phone and triggering some script from web or is there an easier way.
Upvotes: 1
Views: 361
Reputation: 5893
What you are looking for is exactly GCM. With GMC, you can send a message to your android phone and according to the message you can redirect the phone to do something.
Take a look at DEMO application.
Upvotes: 2
Reputation: 1087
You should learn about broadcast receivers. Read here for more http://developer.android.com/reference/android/content/BroadcastReceiver.html
Upvotes: 0