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


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


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 store the Higest Scores of the players who download my Game

   Hey  i have gone through Iphone Game where there is option called "
Higest Scores "  where it displays the score,  Name of the User and
Place(Country), This list will get Updated always if some one breaks
the higest score...

i think we have to track all the users who download our
application......  and if we any users beats the Present HigestScore
he/she should be  intimated tat he has crossed the higest score ( than
we have to take the user name,n country name and we have to update the
HigestScore list with the current HigestScore )

i to want to implement this type of thing... can any tell how is it
possible.... . please....

Cheers ,


2. attempt to acquire a reference on a close SQLiteClosable

Hi all!
First of all i wanted to say thank you to Google for the new SDK!
Lookin forward to the phones!

now to my problem:
as soon as i push the back button in some of my application's
activities, i get the following error:

08-19 14:10:13.050: ERROR/AndroidRuntime(1183): Caused by:
java.lang.IllegalStateException: attempt to acquire a reference on a
close SQLiteClosable
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     at
08-19 14:10:13.050: ERROR/AndroidRuntime(1183):     ... 10 more

What does that mean? and is there a workaround? i already tried
different callback functions (onRestart(), onResume(),
onRestoreInstanceState()) but none gets called before the error
occurs. how can i do something before that error occurs? and what
should i do against it once i get a callback? i don't understand the
error message. it worked on m5, but 0.9 just won't do it.

please help me. Thanx a lot!

3. Does android calendar support meeting request?

4. Usage of Radio Group and radio Button

5. If I am not using "ListActivity" do I need to id a ListView as the predefined id "android:id/list"?

6. How to check if System Wallpaper is now Visible to the user?

7. .getSelectedItemId() always selecting 0 when using the touch screen