CN106685777B - Ethernet connection method adaptive to Android game - Google Patents
Ethernet connection method adaptive to Android game Download PDFInfo
- Publication number
- CN106685777B CN106685777B CN201710146173.8A CN201710146173A CN106685777B CN 106685777 B CN106685777 B CN 106685777B CN 201710146173 A CN201710146173 A CN 201710146173A CN 106685777 B CN106685777 B CN 106685777B
- Authority
- CN
- China
- Prior art keywords
- ethernet connection
- ethernet
- android
- connection
- connection mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2869—Operational details of access network equipments
- H04L12/2878—Access multiplexer, e.g. DSLAM
- H04L12/2879—Access multiplexer, e.g. DSLAM characterised by the network type on the uplink side, i.e. towards the service provider network
- H04L12/2881—IP/Ethernet DSLAM
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
An Ethernet connection method adaptive to an Android game comprises the following steps: detecting the current network connection state of the intelligent terminal; disguising the Ethernet connection mode as a WiFi connection mode; and running the Android game on the intelligent terminal. According to the Ethernet connection method adaptive to the Android game, the Android game can run in the Ethernet environment, and a user can use Ethernet connection, so that the network running environment of the intelligent terminal is more stable.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a network connection method for an Android game.
Background
In the prior art, most Android games are operated in intelligent terminals such as mobile phones or tablets, a network connection mode only supports WiFi and 2G/3G/4G data connection and does not support Ethernet, and as more and more intelligent set-top box devices supporting Ethernet are provided, part of games cannot be operated on the intelligent set-top box devices, and user experience of the intelligent set-top box devices is influenced.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide an Ethernet connection method adaptive to Android games, so that all Android games can be connected by using the Ethernet, and the user experience of the Android games is improved.
In order to achieve the purpose, the Ethernet connection method adaptive to the Android game provided by the invention comprises the following steps:
(1) detecting the current network connection state of the intelligent terminal;
(2) disguising the Ethernet connection mode as a WiFi connection mode;
(3) and running the Android game on the intelligent terminal.
Further, the step (1) of detecting the current network connection state of the intelligent terminal is to check the current network connection state of the intelligent terminal through a connectivtyservice module.
Further, a step of judging whether the network connection is an ethernet connection is further included between the steps (1) and (2).
Further, the determining whether the network connection is an ethernet connection is performed by an mactivefaultnetwork in a ConnectivityService module.
Further, the disguising of the ethernet connection manner as the WiFi connection manner in step (2) is to disguise the NetworkInfo of the application program call interface API getNetworkInfo of the connectivities service module as the WiFi connection manner by the ethernet connection manner.
According to the Ethernet connection method adaptive to the Android game, the Android game can run in the Ethernet environment, and a user can use Ethernet connection, so that the network running environment of the intelligent terminal is more stable.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of an Ethernet connection method for an Android-adapted game according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Fig. 1 is a flowchart illustrating an ethernet connection method for an Android compliant game according to the present invention, and the ethernet connection method for an Android compliant game according to the present invention will be described in detail with reference to fig. 1.
First, in step 101, the smart terminal checks a current network connection state through a connection service module (Android frame connectivity service module) under an Android frame.
In step 102, judging whether the connection mode is an Ethernet connection mode, if so, carrying out the next step; otherwise go to step 104. In this step, the intelligent terminal determines whether the network connection is an ethernet connection mode through the mactivefaultnetwork in the ConnectivityService module. The network connection mode comprises three connection modes of Ethernet, WiFi and 2G/3G/4G network.
In step 103, the ethernet connection is disguised as a WiFi connection, avoiding system detection. In the step, the intelligent terminal disguises the NetworkInfo of an application program calling interface API getNetworkInfo of the connectivities service module into a WiFi connection mode through an Ethernet connection mode.
At step 104, the game player uses the intelligent terminal to run the game over the Ethernet connection.
According to the invention, the Android network game only supporting WiFi and 2G/3G/4G network connection modes is expanded to the Ethernet connection mode, more network mode selections are provided for users, the problem that part of games do not support Ethernet is solved, and better network experience is brought to the game.
Those of ordinary skill in the art will understand that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (4)
1. An Ethernet connection method adaptive to an Android game comprises the following steps:
(1) detecting the current network connection state of the intelligent terminal;
(2) disguising the Ethernet connection mode as a WiFi connection mode;
(3) running an Android game on the intelligent terminal by utilizing an Ethernet connection mode disguised as a WiFi connection mode;
the disguising of the ethernet connection mode into the WiFi connection mode in step (2) is to disguise the NetworkInfo of the application program call interface API getNetworkInfo of the connectivities service module into the WiFi connection mode from the ethernet connection mode.
2. The Android game-adapted Ethernet connection method of claim 1, wherein the step (1) of detecting the current network connection state of the smart terminal is to check the current network connection state of the smart terminal through a connectivities service module.
3. The Ethernet connection method for the Android game according to claim 1, further comprising a step of judging whether the network connection is an Ethernet connection between the steps (1) and (2).
4. The Android game-adapted Ethernet connection method of claim 3, wherein the determining whether the network connection is an Ethernet connection is determined by an mActiveDefaultNet in a ConnectionService module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710146173.8A CN106685777B (en) | 2017-03-13 | 2017-03-13 | Ethernet connection method adaptive to Android game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710146173.8A CN106685777B (en) | 2017-03-13 | 2017-03-13 | Ethernet connection method adaptive to Android game |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106685777A CN106685777A (en) | 2017-05-17 |
CN106685777B true CN106685777B (en) | 2021-03-05 |
Family
ID=58826155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710146173.8A Active CN106685777B (en) | 2017-03-13 | 2017-03-13 | Ethernet connection method adaptive to Android game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106685777B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098558A (en) * | 2011-01-29 | 2011-06-15 | 广州杰赛科技股份有限公司 | Three-network convergence digital television (TV) set top box and implementation method thereof |
EP2416586A2 (en) * | 2010-08-02 | 2012-02-08 | Vodafone Holding GmbH | Feed of audio and/or video signals to at least one external device for outputting audio and/or video signals |
CN103170136A (en) * | 2013-03-26 | 2013-06-26 | 深圳市九洲电器有限公司 | Method and system of achieving game control through set top box |
CN103986948A (en) * | 2014-05-15 | 2014-08-13 | 广西师范大学 | Three-network integrated dual-mode intelligent set top box |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973800B (en) * | 2014-05-19 | 2017-12-08 | 普天信息技术有限公司 | A kind of double netcard based on Android system and the implementation method deposited |
CN105376357B (en) * | 2015-09-30 | 2019-04-05 | 青岛海信移动通信技术股份有限公司 | A kind of antenna installation method and device of mobile device |
CN105744367B (en) * | 2016-03-08 | 2019-05-07 | 四川长虹电器股份有限公司 | Wireless quick networking methods on Android TV |
-
2017
- 2017-03-13 CN CN201710146173.8A patent/CN106685777B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2416586A2 (en) * | 2010-08-02 | 2012-02-08 | Vodafone Holding GmbH | Feed of audio and/or video signals to at least one external device for outputting audio and/or video signals |
CN102098558A (en) * | 2011-01-29 | 2011-06-15 | 广州杰赛科技股份有限公司 | Three-network convergence digital television (TV) set top box and implementation method thereof |
CN103170136A (en) * | 2013-03-26 | 2013-06-26 | 深圳市九洲电器有限公司 | Method and system of achieving game control through set top box |
CN103986948A (en) * | 2014-05-15 | 2014-08-13 | 广西师范大学 | Three-network integrated dual-mode intelligent set top box |
Non-Patent Citations (1)
Title |
---|
基于Android的机顶盒关键技术研究;王明亮;《中国优秀硕士学位论文全文数据库信息科技辑》;20140615;第2014卷(第6期);第36页-第60页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106685777A (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020147839A1 (en) | Paging indication method, paging method, terminal and network side device | |
US10616757B2 (en) | System and method of a mobile terminal to VOLTE according to SIM card and related mobile terminal | |
CN106714250B (en) | Cell registration method and device and computer readable storage medium | |
CN103052059B (en) | Intelligent terminal and data processing method in intelligent terminal | |
CN106961676B (en) | Network searching method, device and medium | |
CN106413036B (en) | Network access processing method and terminal equipment | |
CN110022553B (en) | User identity identification card management method and mobile terminal | |
US9491690B2 (en) | Efficient searching for communications networks | |
CN104581992B (en) | Business access method and mobile management entity | |
KR20160050448A (en) | Mobile Communication using a plurality of Subscriber Identity Module | |
CN105450857B (en) | Prevent voice incoming call from interrupting the implementation method and device of the contextual model that data network uses | |
US20210127310A1 (en) | Electronic device for providing communication service and method thereof | |
US20190281604A1 (en) | Method for transmitting carrier combination for carrier aggregation and electronic device therefor | |
CN107147781A (en) | A kind of dialing process method, mobile terminal and computer-readable recording medium | |
CN107682916B (en) | Network searching connection adaptation method and device and computer readable storage medium | |
CN107277871B (en) | VoLTE network registration method, device and terminal thereof | |
CN111356231A (en) | Method and apparatus for detecting paging message, storage medium and electronic device | |
US20220182925A1 (en) | Network information processing method and terminal device | |
CN108541046B (en) | Network selection method, terminal and storage medium | |
CN107431524B (en) | Antenna configuration method and terminal | |
CN106685777B (en) | Ethernet connection method adaptive to Android game | |
CN113099514A (en) | Method, device and computer readable storage medium for accessing independent networking network | |
CN105657691B (en) | Mobile terminal and data sharing method of double-chip system thereof | |
CN107040985A (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN107734496A (en) | Mobile terminal searches network control method, device and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |