Blackberry gps getting current Location Address?

What you are looking for is called "Reverse Geocoding. " RIM has an example of exactly how to do this on the BB platform (well, one way to do it anyway).

Please reply me – karthikeyan s Apr 8 at 13:33 it sounds like you should do some looking into the use of threading in BB applications. For example, you might see Blackberry UI Threading - The Very Basics: thinkingblackberry. Com/archives/182 – Scott W Apr 8 at 16:02.

You can use google map to resolve your issue, Google map will return a json(or xml) according to your choice if you request with a lattitude and longitude. The url is: maps.google.com/maps/geo?json&ll="+_latt... This will return all the details of the given lattitude and longitude in json format,And you have to parse the json returned by google map. You can use the below code: private void getLocationFromGoogleMaps() { try{ StreamConnection s = null; InputStream iStream = null; s=(StreamConnection)javax.microedition.io.Connector.

Open("maps.google.com/maps/geo?json&ll="+_latt...+getConnectionStringForGoogleMap());//&deviceside=false&ConnectionType=mds-public" HttpConnection con = (HttpConnection)s; con. SetRequestMethod(HttpConnection. GET); con.

SetRequestProperty("Content-Type", "//text"); int status = con.getResponseCode(); if (status == HttpConnection. HTTP_OK) { iStream=s.openInputStream(); int len=(int) con.getLength(); byte data = new byte8000; byte k; String result=""; while((k = (byte)iStream.read())! = -1){ result = result+(char)k; } try{ JSONObject jsonObjectMapData=new JSONObject(result); JSONArray jsonaryPlaceMark = jsonObjectMapData.

GetJSONArray("Placemark"); JSONObject address= jsonaryPlaceMark. GetJSONObject(0); String placeName=address. GetString("address"); if(placeName!

=null)lblLoc. SetText(address. GetString("address")); else lblLoc.

SetText("Location information currently unavilable"); }catch (Exception e) { lblLoc. SetText("location information Currently Unavilable"); } } }catch (Exception e) { System.out. Println(e); lblLoc.

SetText("location information Currently Unavilable"); } } Note: I use a FacebookBlackBerrySDK-0.3.5-src to parse json or you can xml aslo.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions