I have rigged up a remote start system for my Droid using a WebRelay. I am currently hosting a web server with a small webpage that I access from my Droid. This webpage sends the Lock, Unlock, Trunk, and Start command to the WebRelay in my car via a WWAN connection.
I am looking to eliminate the hosted web server, and create a simple application that will just send the commands to the WebRelay when the corresponding onscreen button is pressed.
I am hardware oriented and have no Java experience. I was hoping someone could help me with the syntax and point me in the right direction.
I have not gotten very far, but I have Eclipse Java EE IDE up and running, with the Android SDK and with my Droid as a debug device.
I need to only send 4 commands, each to their respective feature (lock, unlock, trunk, start):
I am assuming I need to use some sort of HTTP POST method. I did some digging around in the plugins directory of eclipse and noticed there is an apache.commons with HttpClient features. I was hoping this would work to send POST commands in Java.
From what I have read there seem to be issues regarding the API (3.x vs. 4.0). This would obviously seem to cause a problem if the eclipse compiler is using a different version. Just something to think about...
If I am way off base, I'm sorry-- I have never looked at a Java program before yesterday. If this is harder than just creating a simple snippet for each command, I apologize -- please just let me know.
Thanks in advance!!!