javajava-memobilegismobile-phones

Geographical position from Java mobile application?


Is there a way of programmatically determining a rough geographical position of a mobile phone using J2ME application, for example determining the current cell? This question especially applies to non-GPS enabled devices.

I am not looking for a set of geographical coordinates, but an ability for a user to define location specific software behaviours.

Solution for any hardware will be highly appreciated; however the more generic a solution is — the better. Many thanks!


Solution

  • If the device supports the JSR 179 location API, you can use this. Last time I looked into this hardly any devices supported it, but that was a few years back.