IP Library Granted Patent US 9,370,032
Granted Patent B2
US 9,370,032 · App. 13/608,797 · Granted Jun 14, 2016

Service processing method and apparatus based on android system

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,370,032
App. No.
13/608,797
Granted
Jun 14, 2016
Kind
B2
Abstract

A service processing method and apparatus based on Android system are provided in the embodiments of the present invention. The technical solutions in the embodiments of the present invention enable the Android platform to support more PDPs other than one PDP by creating corresponding PDP based on the service type of a specific service, therefore avoiding the complicated procedure during which when the current Android platform is processing services and one pending service type can not be processed by an active PDP, interrupting the service in the processing and deactivating the current PDP, reestablishing a new PDP to process service and recovering the former PDP after processing the service, and therefore the parallel processing capability for various services in the Android system is achieved and the user experience is greatly improved.

Claims (28)

1. A method, performed by a mobile terminal, for processing service based on packet data protocol (PDP) by using an Android system, comprising:

determining a service type of a first service when a first service request is received, wherein the service type is one of preset service types including at least a default type and a MMS (Multimedia Messaging Service) type;

judging whether a PDP currently in an activated state can process the first service according to the service type of the first service;

creating a first PDP in the Android system according to the service type of the first service with the PDP currently in the activated state being retained, when the PDP currently in the activated state cannot process the first service, to generate a new network interface corresponding to the first PDP, so that multiple PDPs in the Android system are in activated state simultaneously and multiple network interfaces used for multiple activated PDPs correspond to multiple IP addresses, wherein creating the first PDP according to the service type of the first service with the PDP currently in the activated state being retained, when the PDP currently in the activated state cannot process the first service to generate a new network interface corresponding to the first PDP comprises:

if the Android system has an idle network interface, activating the first PDP according to a configuration of an Access Point Name (APN) that processes the first service, to generate a new network interface corresponding to the first PDP;

if the Android system does not have an idle network interface, deactivating a PDP in the activated state, activating the first PDP according to the configuration of the APN that processes the first service, to generate a new network interface corresponding to the first PDP;

before creating the first PDP according to the service type of the first service with the PDP currently in the activated state being retained, judging whether the Android system has any idle network interface;

establishing a connection channel between the first PDP and corresponding service type, so that the service data of such type can be transmitted through the first PDP;

notifying an application corresponding to the first service that the first PDP is activated to process the first service through the first PDP;

wherein establishing the connection channel between the first PDP and corresponding service type comprises:

adding a gateway address configured by an Access Point Name (APN) corresponding to the first PDP to a routing table of the Android system, if the APN has the gateway; and

binding a socket created by the application corresponding to the first service to the generated network interface corresponding to the first PDP, if the APN has no gateway.

2. The method according to claim 1 , further comprising:

processing the first service using the corresponding PDP currently in the activated state when the PDP in the activated state can process the first service.

3. A mobile terminal using an Android system, the mobile terminal comprising a processor connected to a computer readable a non-transitory memory, for processing service based on packet data protocol (PDP) by executing a computer readable program stored on the non-transitory memory, wherein the computer readable program, when executed, enables the mobile terminal to:

determine a service type of a first service when a first service request is received, wherein the service type is one of preset service types including at least a default type and a MMS (Multimedia Messaging Service) type;

judge whether a PDP currently in an activated state can process the first service according to the service type of the first service;

create a first PDP in the Android system according to the service type of the first service with the PDP currently in the activated state being retained, when the PDP currently in the activated state cannot process the first service, to generate a new network interface corresponding to the first PDP, so that multiple PDPs in the Android system are in activated state simultaneously and multiple network interfaces used for multiple activated PDPs correspond to multiple IP addresses, wherein creating the first PDP according to the service type of the first service with the PDP currently in the activated state being retained, when the PDP currently in the activated state cannot process the first service to generate the new network interface corresponding to the first PDP comprises: if the Android system has an idle network interface, activating the first PDP according to a configuration of an Access Point Name (APN) that processes the first service, to generate a new network interface corresponding to the first PDP;

if the Android system does not have an idle network interface, deactivating a PDP in the activated state, activating the first PDP according to the configuration of the APN that processes the first service, to generate a new network interface corresponding to the first PDP;

establish a connection channel between the first PDP and corresponding service type, so that the service data of such type can be transmitted through the first PDP; and

notify an application corresponding to the first service to process the first service through the first PDP;

wherein establishing the connection channel between the first PDP and corresponding service type comprises:

adding a gateway address configured by an Access Point Name (APN) corresponding to the first PDP to a routing table of the Android system, if the APN has the gateway; and

binding a socket created by the application corresponding to the first service to the generated network interface corresponding to the first PDP, if the APN has no gateway,

wherein before creating the first PDP according to the service type of the first service with the PDP currently in the activated state being retained, the computer readable program, when executed, enables the mobile terminal further to:

judge whether the Android system has any idle network interface.

4. The mobile terminal according to claim 3 , wherein the computer readable program, when is executed, further enables the mobile terminal to:

process the first service using the corresponding PDP currently in the activated state when the PDP in the activated state can process the first service.

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2012
From: LI, JIYOU
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 028929/0391 →