Here's another one - it bit me just the other day.

- I was at a restaurant that offered a free HotSpot.  (although
exactly the same scenario would apply if I was staying at many hotels,
or at an airport, or any number of other locations that offer "free"
WiFi)
- I told my phone to connect to the HotSpot.  It attached to the AP
and got an IP address.
- At that point the phone "preferred" to use WiFi - even though all I
was able to see was the login page for the WiFi service.
- Suddenly my app is unable to communicate with servers - I had to
disable WiFi to get it to use the cellular network.

Now, you could argue that all I needed to do was open my browser and
accept the terms of the HotSpot and I'd have access to (at least some)
data services, but:

1) What if my app doesn't connect using a "well known" port?  (i.e.
one that the HotSpot will *probably* allow... HTTP/S, IMAP, SMTP,
POP3)
2) What if my application communicates with my carriers servers which
are inside their walled-garden, and for obvious reasons are only
accessible via the cellular network?
3) What if the AP's internet connection is down?

I suggest that Android be extended to allow an application to specify
(and this is only a start) whether it wishes to take advantage of WiFi
should it be available.  That would allow an application to choose to
"pass" on a WiFi connection and continue to use cellular data.
(obviously the default would be the status quo)

Its not like you'd be leading in this area - many (most?) of the other
mobile platforms allow an app (either programmatically or via
configuration) to specify which data services it will use - regardless
of the presence of other options.

Doug


On Feb 2, 9:35 pm, Kevin Duffey <andjar...@gmail.com> wrote:
> For development reasons, I have to switch wifi off to make use of 3G to
> route my requests to a domain name that then maps to one of my internal
> servers (using no-ip.com to forward a dns name to my provider IP.. and
> setting up my router to forward http requests to proper server). I can also
> do this by using the internal IP of my computer, but then I have to set up
> hosts and such to get it out to find the dns entry that then routes it back
> to my ip. It's a development issue only.. but thought I'd share that issue.
> I manually switch it off myself tho, so not quite the same thing.
>
> 2010/2/2 Dongjoon Lee <sky...@gmail.com>
>
>
>
> > The application needs to get some information from operator's server.
> > And operator want us to make use operator's network, not wifi, even
> > though wifi is available.
>
> > It's very difficult to find solution. May I need to search alternative
> > way.
>
> > Anyway, thanks for your advice.
>
> > Best regards,
> > Dongjoon.
>
> > On 1월15일, 오후7시17분, Jens <dunkingbikk...@gmail.com> wrote:
> > > For the same reason you added the "feature" that allows the MMS
> > > application to switch to a specific APN even when WiFi is
> > > available..... lots of mobile apps require you to go through a
> > > specific APN - for billing purposes amongst other things.
>
> > > Dongjoon: You could check if the same crazed hack that allows the MMS
> > > application to work can be used by you?
>
> > > Br
> > > Jens
>
> > > On 14 Jan, 19:07, Dianne Hackborn <hack...@android.com> wrote:
>
> > > > Sorry, I don't believe you can.  Why do you want to do this?
>
> > > > On Thu, Jan 14, 2010 at 12:39 AM, Dongjoon Lee <sky...@gmail.com>
> > wrote:
> > > > > Hello.
>
> > > > > My question is, as you can see the title, can i use3gnetwork even
> > > > > though wi-fi is available?
> > > > > i heard wi-fi priority is higher than3gor cdma. can i change that
> > > > > priority in specific application?
> > > > > this is one of requirement of the project. if anybody has an answer,
> > > > > plz help me.
>
> > > > > thanks in advance.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs
> > > > >  cr...@googlegroups.com>
> > <android-developers%2bunsubs-cr...@googlegroups.com<android-developers%252B 
> > unsubs-cr...@googlegroups.com>
>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
>
> > > > Note: please don't send private questions to me, as I don't have time
> > to
> > > > provide private support, and so won't reply to such e-mails.  All such
> > > > questions should be posted on public forums, where I and others can see
> > and
> > > > answer them.- 원본 텍스트 숨기기 -
>
> > > - 원본 텍스트 보기 -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs 
> > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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

Reply via email to