GPS position is a bit overkill and I don't think my users would really
be happy with my app doing that. I do like the idea of running in the
background and using the last-known (cell tower) coordinates. I'm just
affraid many users might not have a data plan and so the coordinates
can get easily outdated if they don't connect to wi-fi with a certain
frequency. The whole point of having this feature is for the users
that travel a lot and there is a good chance that they won't have open
wi-fi available just anywhere.

The app is actually for use in Brazil but I think it might not be so
hard to get hold of a database of cities and their area codes.

On Oct 20, 5:59 pm, Kostya Vasilyev <[email protected]> wrote:
>   Right, there is only less than a thousand area codes in the US,
> actually much less because they can't start with "0", "1", or "2" (if I
> remember right).
>
> So having a predefined mapping from GPS coordinates in the application
> seems feasible.
>
> Now getting area code coordinates for the mapping is another issue
> entirely. Maybe this info is available.... somewhere?
>
> -- Kostya
>
> 20.10.2010 23:40, Miguel Morales пишет:
>
>
>
>
>
>
>
>
>
> > Ah my mistake, I didn't read the last part.  You could also just do
> > the network operation in the background and when the user is about to
> > make a call just use the last-known co-ordinates.
>
> > On Wed, Oct 20, 2010 at 12:36 PM, Miguel Morales
> > <[email protected]>  wrote:
> >> Perhaps by using GPS position and some sort of area code database you
> >> might be able to conjure up something.
>
> >> On Wed, Oct 20, 2010 at 11:37 AM, Denis Souza<[email protected]>  
> >> wrote:
> >>>> Is that really possible?
> >>> Frankly I don't think so... but not 100% sure either. Just wanted to
> >>> see if there are any ideas out there that could solve the problem.
>
> >>> On Oct 20, 12:42 pm, Julie Andrews<[email protected]>  wrote:
>
> >>>> On Wed, Oct 20, 2010 at 6:29 PM, Denis Souza<[email protected]>  
> >>>> wrote:
> >>>>> Hi
> >>>>> I'm trying to find out if the user is still within range of his own
> >>>>> area code. Detecting roaming doesn't solve the problem since the user
> >>>>> may still be in the same network with a different area code. I thought
> >>>>> about getting the user's coarse location to find the city he's is in
> >>>>> but this approach needs Internet access and might not be fast enough
> >>>>> (this is done as the user is making a call and needs to finish before
> >>>>> the call is made).
> >>>>> Is there any way I can do this with just the info from the cellular
> >>>>> network?
> >>>>> Denis Souza
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "Android Developers" group.
> >>>>> To post to this group, send email to [email protected]
> >>>>> To unsubscribe from this group, send email to
> >>>>> [email protected]<android-developers%2Bunsubs
> >>>>>  [email protected]>
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/group/android-developers?hl=en
> >>>> --
> >>>> Juliehttp://tradinglogically.blogspot.com<http://tradinglogically.blogspot.com>http://vikitionary.blogspot.comhttp://gandhi-the-man-of-millenium.blo...
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to [email protected]
> >>> To unsubscribe from this group, send email to
> >>> [email protected]
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> ~ Jeremiah:9:23-24
> >> Android 2D MMORPG:http://developingthedream.blogspot.com/,
> >>http://www.youtube.com/user/revoltingx
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to