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. How to autorun program when Android start running?

I have one program and I used adb to connect FR to execute it.
I hope this program would auto-execute when entering Android OS of FR
How to add it to initial schedule? Modify init.rc or some files?

Thanks for your big help.
--~--~---------~--~----~------------~-------~--~----~

2. Help me in Creating a AVD

Hi there...

I am quiet new to the Android platform. I am unable to create an AVD
( Command not found error when i execute create AVD Command), I
followed the steps shown in Developer Guide. I work on Os X 10.5.7.

Please help me in this regard.....


Thanks A Bunch.

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

3. anybody knows about Linkify

4. accuracy of Mock location

5. display thumbnail images from sdcard

6. How to exchange data between different users

7. All viewgroup redraw when an internal ImageView is changed