Android client communication device and method allowing Android client communication device to connect and communicate with server

A communication device and client technology, applied in the field of network communication, can solve the problems of unbearable user economy, unreasonable structure, and inability to push real-time messages to users, and achieve the effect of reducing the complexity of development and ensuring the arrival rate.

Inactive Publication Date: 2017-05-17
JINAN JOVISION TECH CO LTD
View PDF7 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 2) SMS (Push) method: By intercepting SMS messages and analyzing the content of the message to understand the server's command, but this method is generally difficult for users to bear economically, and few products adopt this method
[0011] 1. The problem of keeping the background process alive: the background process used by the mobile client for communication will die due to some reasons such as system recycling and user triggers. If the process dies, the long connection with the background server will be disconnected, and the backend server Real-time messages cannot be pushed to the user's mobile ph

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Android client communication device and method allowing Android client communication device to connect and communicate with server
  • Android client communication device and method allowing Android client communication device to connect and communicate with server
  • Android client communication device and method allowing Android client communication device to connect and communicate with server

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0041] Example 1

[0042] This embodiment provides a method for connecting and communicating between an Android client and a server, such as figure 1 , 2 As shown, it includes:

[0043] A persistent connection socket channel is established between the client backend and the server, and the socket channel is the only channel for connection and communication between the client and the server;

[0044] The client background receives the message pushed by the server through the socket channel;

[0045] When the client's front desk is online, the client's back-end will pass the push message to the client's front desk in the form of UNIX system inter-process communication, and the client's front-end will display the push message in the application;

[0046] When the client foreground is offline, the client background will display the push message through the system's notification mechanism.

[0047] In the above, when the client foreground is online, it checks whether the client background alr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to an Android client communication device and a method allowing the Android client communication device to connect and communicate with a server. The method includes: a persistently-connected socket channel is built between a client background and the server, wherein the socket channel is the only connection and communication channel between a client and the server; the client background receives a message pushed by the server through the socket channel; when a client foreground is online, the client background transmits the pushed message to the client foreground in a UNIX system process communication manner, and the client foreground displays the pushed message in an application program; when the client foreground is offline, the client background displays the pushed message through the notification mechanism of a system. The method has the advantages that the back-end server constantly communicates with the client background, the back-end server program does not need to respectively process according to the different conditions of online and offline, and development complexity is lowered greatly.

Description

technical field [0001] The invention relates to the field of network communication, in particular to an Android client communication device and a method for connecting and communicating with a server. Background technique [0002] Android (Android) is an open source smartphone operating system. Due to its free and open nature, it soon became the mobile operating system with the largest market share, providing a strong infrastructure for the development and popularization of the mobile Internet. Various mobile phone applications (Applications or APPs for short) developed based on the Android system provide great convenience for our lives. Generally speaking, mobile phone applications are C / S (client / server) architecture, the client is installed on the user's mobile phone, and the server is on the server of the reference provider. After the application is started, it needs to connect to the Internet, obtain a connection with the server, and go to the server to obtain the late...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/141H04L69/162H04L67/55H04L67/01
Inventor 李云龙
Owner JINAN JOVISION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products