How to get the current city/country name?

by Kakyoin » Tue, 25 Nov 2008 18:11:06 GMT


Sponsored Links
 Is it possible to get the city name(I mean the city where the phone is
in at the current time)?

I need it as a parameter for google weather API, like this:

 http://www.google.com/ig/api?weather=city_name ,country_name

I tried browsing the classes in "android.location" package but have
yet to find a method to get the 'exact city name' and country name
needed for google weather API.

Thank you in advance. =)
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Is possible to change the preferred contact telephone number?

modifying the database?






--~--~---------~--~----~------------~-------~--~----~

2. Building emulator for windows incorrectly detects byteswap.h

I tried to build platform\external\qemu on Windows, like this:
./android-rebuild.sh --sdl-config=/cygdrive/g/mydroid/prebuilt/windows/
sdl/bin/sdl-config

The build fails: android-configure.sh incorrectly detects that
byteswap.h is available. The detection does not use the -mno-cygwin
compiler flag, while real build uses it. I added the following:

# on windows, use -mno-cygwin
if [ "$OS" == "windows" ] ; then
    CFLAGS="$CFLAGS -mno-cygwin"
fi

This enabled the emulator to build properly.

--
timo

--~--~---------~--~----~------------~-------~--~----~

3. UW-LAnguage Institute

4. How can I start an Intent to launch the IM applicaiotn

5. Android Market and EULAs

6. android socket server

7. What's the individual file size limit imposed on assets file?