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. Show dialog on creation - question?

I'm trying to show dialog OK/Cancel and then continue construction
after user closed the dialog.
Unfortunately the dialog get visibility only AFTER the creation of
myclass was completed.
In my example Run( ) method will never run.

There is code:

public class MyClass extends Activity
private _boolFlag = false;

    public void onCreate(Bundle savedInstanceState) {
        try {

                ....some code...
                 Run().// never run

    protected Dialog onCreateDialog(int id)
        switch (id)
        case Dialog.BUTTON2:
                return  new AlertDialog.Builder(this)
            .setPositiveButton("Ok", new
DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int
whichButton) {
                            _boolFlag = true;
        return null;

     private void Run()



What can I do except to move the dialog to the caller activity?

Thanks in advance,

2. Paid applications - are they downloadable now? By Al Sutton

Hang on, how did you find out that they will be available today? Where
did you hear it from, or you're guessing by Google's "mid next week"

On Thu, Feb 19, 2009 at 9:54 PM, ellipsoidmob...@googlemail.com


3. Checkout email notification

4. Replacing the dialer responding to [number keys] pressed ?

5. Paid applications - are they downloadable now? By Al Sutton

6. Any reason for not supporting capital letters in image file names of aapt tool

7. Hint not showing on an EditText if gravity is center?