WiFi和3G同时 [英] Wifi and 3G same time

查看:159
本文介绍了WiFi和3G同时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关我的应用程序,我从都需要数据,本地网络和互联网。本地网络(WIFI)有到互联网没有关系,所以我必须使用移动连接(3G为例)。 但每当我连接到本地网络,3G stopps。询问三星服务后,就没有办法改变,在UI。但他们不能告诉我,如果对于一个可编程的接口。
有一种移动接入点内,所以有一种方法,以一个无线设备连接到因特网(这意味着两个,一个WiFi和3G连接是可能的,同时在该方式)。但对于我的应用程序的手机/选项卡来连接到现有的网络,使用3G互联网。
因此,这这里是我的问题。
有没有一种方法,以连接到现有网络,并使用3G互联网同一时间?

For my App I need Data from both, a local Network and the Internet. The local Network (Wifi) has no connection to the internet so I have to use the mobile connection (3G for Example). But whenever I connect to the local Network, 3G stopps. After asking the Samsung Service, there is no way to change that in the UI. But they couldn't tell me, if there is a programmable Interface for that.
There is a mobile access point inside, so there is a way to connect a Wifi device to the Internet (which means that both, a wifi and a 3G connection is possible the same time in that way). But for my App the phone/tab has to connect to the existing Network and use the 3G for Internet.
So this is my question here.
Is there a way to connect to an existing Network and using 3G for Internet the same time?

推荐答案

我看使用Android的无线系绳code。我认为这将是对你的工作有很大的帮助。 点击这里

I've looked at the code used by Android WiFi Tether. I think that will be of great help for your work. Click here

它的作用是加载了WiFi模块,一旦3G已打开。然后,它使用的iwconfig / ifconfig来配置接口并运行它。他们进一步作出适当修改路由表,以确保圈养。你可以更改路由选择,以满足您的要求。

What it does is load the WiFi module once 3G is turned on. Then it use iwconfig/ifconfig to configure the interfaces and run it. They further make appropriate changes to the routing table to ensure tethering. You could make changes to routing options to suit your requirements.

更新: 我的工作在我这里提到的方法。请找我的这个链接进步

Update: I worked on the approach I mentioned here. Please find my progress on this link

底线是,它有可能在Android手机同时使用3G和WiFi同时

Bottomline is that it is possible to use both 3G and WiFi concurrently on Android Phones.

这篇关于WiFi和3G同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆