Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 phone
[0012] 2. The problem of switching between online and offline communication methods: the unreasonable architecture leads to separate processing of online and offline push
When the user starts the application, he will request data from the backend server, and at this time the background process can also obtain the data from the server. In order not to cause confusion, both the client and the backend server need to do some switching processing, that is, the application The online and offline situations are distinguished and processed separately, resulting in a more complex architecture and prone to problems

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

Embodiment 1

[0042] This embodiment provides a method for an Android client to communicate with a server, such as figure 1 , 2 shown, which includes:

[0043] A persistent connection socket channel is established between the client background 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 foreground is online, the client background will pass the push message to the client foreground in the form of UNIX system inter-process communication, and the client foreground will display the push message in the application program;

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

[0047] Among the above, when the client front desk goes online, it checks whether the client background already exis...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products