This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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