Quick method for capturing country...

by atrus123 » Mon, 03 Nov 2008 00:05:15 GMT


Sponsored Links
 Is there a class that provides quick method for capturing the user's
country without needing to query the GPS?
--~--~---------~--~----~------------~-------~--~----~



Quick method for capturing country...

by Kipling Inscore » Mon, 03 Nov 2008 00:19:27 GMT


 You can use cell- or WiFi-based coarse location. You still have to go
through the same process with a LocationManager and Geocoder as you do
for GPS, but you can probably usually get away with
getLastKnownLocation() instead of requestLocationUpdates()...unless
the user just got off of an international flight (and the radios have
been and may still be turned off).
Instead of using a Criteria with ACCURACY_FINE, use ACCURACY_COARSE
and in AndroidManifest.xml, instead of uses-permission
ACCESS_FINE_LOCATION, use ACCESS_COARSE_LOCATION.




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


Sponsored Links


Quick method for capturing country...

by Charlie Collins » Mon, 03 Nov 2008 08:05:25 GMT


 You can get the SIM country, and network country, from
TelephonyManager.

 http://code.google.com/android/reference/android/telephony/TelephonyManager.html 

That's not location aware of course, it's just where the SIM and
network are registered, but that may be more appropriate anyway,
depending on your use case.




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



Other Threads

1. can't show LOGO when booting kernel

hi all,

when I booting my kernel 2.6.35,
the LOGO can't show up,
but actually I do something really,

***************************************
i)
in my default config
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_CLUT264=y
and other configs for relative video & frame buffer setting is set to "y"

ii)
my panel is work and on when booting,
the display driver is really working
***************************************
but I can't see anything when my kernel booting now,
is it a frame buffer issue?
because frame buffer driver seems not to be work.

I really have no idea about this

please give me some suggestion,
thanks so much

-- 

2. listen to soft keyboard close event

Hi

I have a search box that is made visible only during search which will show 
up the soft keyboard.

when the user tap the "Back" button, the keyboard is closed but my search 
box is still visible.

I would like to know how I could listen to soft keyboard close event so that 
I could also hide the search box to terminate the search.

thanks in advance!

regards
pk

-- 

3. How to set static ip for wifi configuration

4. WTHelp: DHD update

5. Android Beginner Having Problems

6. how to increase voice recording time?

7. how to increase voice recoding time?