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. build 2.3 mock-ril error

Hi,
I have downloaded the latest kernel code 2.3 and build
mock-ril (make all) after setup described as "README".
i have got the error.Following are the logs:

/hardware/ril/mock-ril$ make all
mkdir -p src/generated/cpp
protoc --cpp_out=src/generated/cpp --proto_path=src/proto src/proto/
msgheader.proto
protoc: error while loading shared libraries: libprotobuf.so.6: cannot
open shared object file: No such file or directory
make: *** [src/generated/cpp/msgheader.pb.cpp] Error 127

Can someone please help me by telling why i have got the error.
Thanks,
Ted

-- 

2. FYI Developer Android

Photo majalah tempo, rubrik Digital Android edisi Senin 9 May 2011..
Rubrik Digital Android:

"Mendulang Uang dari Aplikasi Android"

Silahkan dibeli majalah nya mngkin menambah inspirasi dan semangat utk
developer android Indonesia

Bravo Developer Android Indonesia

-rully
http://mobdroid.wordpress.com

-- 
"

3. HDMI not working on small LCDs + beagleboard

4. help for database ?

5. Motorola droid pro

6. Shoutcast streaming app

7. [NFC] Issue with IsoDep transceive()