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: ,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:
./ --sdl-config=/cygdrive/g/mydroid/prebuilt/windows/

The build fails: 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"

This enabled the emulator to build properly.



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?