This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm trying to build an application that involves PushRegistry, JSR-179, and HTTP Connection.
It goes like this:
phone A wanted to know about phone B's whereabout. To do so, it needs to activate a MIDlet that has been installed inside of phone B using Push Registry. The MIDlet in phone B would later acquire it's coordinate position using a built-in GPS and the Location API and return 'lat' and 'lon' value. Since not everyone could read coordinates, I wanted to translate those coordinates into an address name (reverse geocoding). To do so, I need it to connect to the internet via HTTP connection.
The problem I'm facing is: Before I added the HTTP connection function, it worked just fine when I use push registry to activate the MIDlet in phone B. It brought me to the MIDlet page. But after I added the HTTP connection function, it won't display me the MIDlet page. Where did I go wrong? What should I do? please help