# US 2022/0046400 A1 · Method and device for controlling an application, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0046400 A1
- Document ID: US20220046400A1
- Status: Published application
- Kind: A1
- Application number: 17/240,029
- Filed: 2021-04-26
- Published: 2022-02-10
- Earliest claimed: 2020-08-10
- Assignees: Beijing Xiaomi Mobile Software Co., Ltd.
- Applicants: Beijing Xiaomi Mobile Software Co., Ltd.
- Inventors: Fengqi YANG; Xuan MA; Bo WANG
- Web page: https://patentgrep.com/patent/US20220046400A1

## CPC

- H04L 67/148: Migration or transfer of sessions
- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- H04B 5/20: characterised by the transmission technique; characterised by the transmission medium
- H04L 65/1083: In-session procedures
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 69/24: Negotiation of communication capabilities
- H04W 4/80: Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
- G06F 2209/485: Resource constraint
- H04L 67/303: Terminal profiles
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04B: TRANSMISSION
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A method for controlling an application includes: triggering reading information of a second device included in a near-field communication (NFC) sensor in response to a distance between a first device and the NFC sensor reaching an NFC effective communication distance, and determining the second device based on the information of the second device; determining a function currently executed by the first device, and determining a capability of the second device; and switching to the second device to continue to execute the function in response to the capability of the second device matching the function.

## Claims

### Claim 1

A method for controlling an application, comprising:
triggering reading of information of a second device included in a near-field communication (NFC) sensor in response to a distance between a first device and the NFC sensor external to the first device reaching an NFC effective communication distance, and determining the second device based on the information of the second device;
determining a function currently executed by the first device, and determining a capability of the second device; and
switching to the second device to continue to execute the function in response to determining that the capability of the second device matches the function.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
switching to the second device to continue to execute a part of the function that matches the capability of the second device in response to determining that the capability of the second device matches the part of the function.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
sending the function and the information of the second device to a cloud server;
wherein the determining the capability of the second device comprises:
determining the capability of the second device by the cloud server;
wherein the switching to the second device comprises:
switching to the second device to continue to execute the function according to an instruction of the cloud server in response to determining by the cloud server that the capability of the second device matches the function.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the function currently executed by the first device comprises an active application of the first device and a function currently executed by the active application, and the capability of the second device comprises at least one of:
hardware provided by the second device and
applications currently installed on the second device;
and the determining that the capability of the second device matches the function comprises:
determining that the capability of the second device matches the function currently executed by the first device, in response to the second device being installed with at least one of:
the active application of the first device,
an application with the same function as the function currently executed by the active application and
an application with the same function as a part of the function currently executed by the active application.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the function currently executed by the first device comprises an active application of the first device and a function currently executed by the active application, and the capability of the second device comprises at least one of:
hardware provided by the second device and
applications currently installed on the second device;
and wherein the determining that the capability of the second device matches the function comprises:
determining that the capability of the second device matches the function currently executed by the first device, in response to the second device being capable of installing with the active application.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the function currently executed by the first device comprises an active application of the first device and a function currently executed by the active application, and the capability of the second device comprises at least one of:
hardware provided by the second device and
applications currently installed on the second device;
and the determining that the capability of the second device matches the function comprises:
determining hardware required to execute the function currently executed by the first device according to the function currently executed by the first device; and
determining that the capability of the second device matches the function currently executed by the first device in response to the second device having the hardware required to execute the function currently executed by the first device.

### Claim 7 (depends on 2)

The method according to claim 2, wherein the function currently executed by the first device comprises an active application of the first device and a function currently executed by the active application, and the capability of the second device comprises at least one of:
hardware provided by the second device and
applications currently installed on the second device;
and wherein the determining that the capability of the second device matches the part of the function comprises:
determining hardware required to execute the function currently executed by the first device according to the function currently executed by the first device; and
determining that the capability of the second device matches the part of the function currently executed by the first device in response to the second device having a part of the hardware required to execute the function currently executed by the first device and the part of the hardware being capable of executing the part of the function currently executed by the first device.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the switching to the second device to continue to execute the function comprises:
controlling the first device to stop executing the function; and
determining an application running breakpoint, and switching to the second device to execute the function from the application running breakpoint.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the switching to the second device to continue to execute the function comprises:
determining a current running point of the function currently executed by the first device, and controlling the second device to execute the function from the current running point.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
presetting at least one application running on the second device when switching to the second device and a function executed by each of the at least one application; and
determining that an application running on the first device and a function executed by the application belong to the at least one application.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the information of the second device relates to a plurality of second devices, and wherein
the determining the capability of the second device comprises:
determining capability information of the plurality of second devices included in the information of the second device;
wherein, the switching to the second device to continue to execute the function in response to determining that the capability of the second device matches the function comprises:
determining a target second device whose capability matches the function from the plurality of second devices; and
switching to the target second device to continue to execute the function.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the determining the target second device whose capability matches the function from the plurality of the second devices comprises one of the following:
determining one of the plurality of the second devices having the shortest distance from the first device as the target second device in response to the plurality of the second devices having the same capability;
determining one of the plurality of the second devices having the strongest capability for executing the function as the target second device in response to the plurality of the second devices having different capabilities; and
determining one of the plurality of the second devices having the highest priority for executing the function as the target second device based on preset device priorities.

### Claim 13

A method for controlling an application, comprising:
triggering a second device to continue to execute a function currently executed by a first device in response to a distance between the first device and an external NFC sensor external to the first device reaching an NFC effective communication distance and a capability of the second device matching the function.

### Claim 14 (depends on 13)

The method according to claim 13, further comprising:
triggering the second device to continue to execute a part of the function that matches the capability of the second device in response to the capability of the second device matching the part of the function.

### Claim 15 (depends on 13)

The method according to claim 13, wherein the function currently executed by the first device comprises an active application of the first device and a function currently executed by the active application, and the capability of the second device comprises at least one of:
hardware provided by the second device and
applications currently installed on the second device;
and wherein the capability of the second device matching the function comprises at least one of:
the second device being installed with at least one of:
the active application of the first device,
an application with the same function as the function currently executed by the active application and
an application with the same function as a part of the function currently executed by the active application;
the second device being capable of installing with the active application; and
the second device having hardware required to execute the function currently executed by the first device.

### Claim 16 (depends on 14)

The method according to claim 14, wherein the function currently executed by the first device comprises an active application of the first device and a function currently executed by the active application, and the capability of the second device comprises at least one of:
hardware provided by the second device and
applications currently installed on the second device;
and the wherein the capability of the second device matching the part of the function comprises:
the second device having a part of hardware required to execute the function currently executed by the first device, and the part of the hardware being capable of executing the part of the function currently executed by the first device.

### Claim 17

A device for controlling an application, comprising:
a processor;
a memory for storing instructions executable by the processor;
wherein the processor is configured to execute the instructions for controlling an application comprising:
triggering reading of information of a second device included in a near-field communication (NFC) sensor in response to a distance between a first device and the NFC sensor external to the first device reaching an NFC effective communication distance, and determining the second device based on the information of the second device;
determining a function currently executed by the first device, and determining a capability of the second device; and
switching to the second device to continue to execute the function in response to determining that the capability of the second device matches the function.

### Claim 18 (depends on 17)

The device according to claim 17, wherein the processor is further configured to perform an operation of:
switching to the second device to continue to execute a part of the function that matches the capability of the second device in response to determining that the capability of the second device matches the part of the function.

### Claim 19 (depends on 17)

The device according to claim 17, wherein the processor is further configured to perform an operation of:
sending the function and the information of the second device to a cloud server;
wherein the determining the capability of the second device comprises:
determining the capability of the second device by the cloud server;
wherein the switching to the second device to continue to execute the function in response to determining that the capability of the second device matches the function comprises:
switching to the second device to continue to execute the function according to an instruction of the cloud server in response to determining by the cloud server that the capability of the second device matches the function.

### Claim 20 (depends on 13)

A device for controlling an application, comprising:
a processor;
a memory for storing instructions executable by the processor;
wherein the processor is configured to execute the method for controlling an application according to claim 13.
