Storage medium storing computer program, information processing system, and information processing method
First Claim
1. A non-transitory storage medium storing a computer program read and executed by a computer including an operating system, whereinthe computer causes the computer program to function as an application running on the operating system,while the application is running, the operating system controls and shifts an execution state of the application among a foreground state in which the application is executed in a foreground and can communicate with an external device using a communication connection, a background state in which the application is executed in a background and can communicate with an external device using a communication connection, and a suspended state in which the application is inexecutable, andthe application includesa communication connection-used processor configured to, when the execution state of the application is the foreground state, perform processing using a communication connection established between the application and an external device,a communication connection manager configured to save connection state information indicating an active or inactive state of the communication connection between the application and the external device and to update the connection state information depending on a change in active or inactive state of the communication connection between the foreground state and the background state of the application, anda communication connection cutter configured to, in a case where the execution state of the application is the foreground state and the communication connection between the application and the external device is in the active state, cut off, via the operating system, the communication connection when the execution state of the application shifts to the background state and before the execution state of the application shifts to the suspended state, whereupon the communication connection manager updates the connection state information for the application from the active state to the inactive state, and if the application is subsequently shifted to the suspended state, the connection state information for the application continues to indicate the inactive state.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer program, an information processing system, and an information processing method are capable of properly managing the connection state of communication connection with an external device. When an operating system shifts an application to a background state, the operating system provides the application with a background shift notification. In the case where communication connection, targeted for management, between the application and an external accessory system is in an active state, the application having received the background shift notification cuts off, via the operating system, the communication connection established between the application and the accessory system, and switches the state of the communication connection, targeted for management, to an inactive state.
7 Citations
12 Claims
-
1. A non-transitory storage medium storing a computer program read and executed by a computer including an operating system, wherein
the computer causes the computer program to function as an application running on the operating system, while the application is running, the operating system controls and shifts an execution state of the application among a foreground state in which the application is executed in a foreground and can communicate with an external device using a communication connection, a background state in which the application is executed in a background and can communicate with an external device using a communication connection, and a suspended state in which the application is inexecutable, and the application includes a communication connection-used processor configured to, when the execution state of the application is the foreground state, perform processing using a communication connection established between the application and an external device, a communication connection manager configured to save connection state information indicating an active or inactive state of the communication connection between the application and the external device and to update the connection state information depending on a change in active or inactive state of the communication connection between the foreground state and the background state of the application, and a communication connection cutter configured to, in a case where the execution state of the application is the foreground state and the communication connection between the application and the external device is in the active state, cut off, via the operating system, the communication connection when the execution state of the application shifts to the background state and before the execution state of the application shifts to the suspended state, whereupon the communication connection manager updates the connection state information for the application from the active state to the inactive state, and if the application is subsequently shifted to the suspended state, the connection state information for the application continues to indicate the inactive state.
-
5. An information processing system connectable to an external device, comprising:
-
an operating system implemented by a computer executing a stored computer program; and an application implemented by a computer executing a stored computer program and running on the operating system, wherein while the application is running, the operating system controls and shifts an execution state of the application among a foreground state in which the application is executed in a foreground and can communicate with an external device using a communication connection, a background state in which the application is executed in a background and can communicate with an external device using a communication connection, and a suspended state in which the application is inexecutable, and the application includes a communication connection-used processor configured to, when the execution state of the application is the foreground state, perform processing using a communication connection established between the application and the external device, a communication connection manager configured to save connection state information indicating an active or inactive state of the communication connection between the application and the external device and to update the connection state information depending on a change in active or inactive state of the communication connection between the foreground state and the background state of the application, and a communication connection cutter configured to, in a case where the execution state of the application is the foreground state and the communication connection between the application and the external device is in the active state, cut off, via the operating system the communication connection when the execution state of the application shifts to the background state and before the execution state of the application shifts to the suspended state, whereupon the communication connection manager updates the connection state information for the application from the active state to the inactive state, and if the application is subsequently shifted to the suspended state, the connection state information for the application continues to indicate the inactive state. - View Dependent Claims (6, 7, 8)
-
-
9. A method for performing processing by an application running on an operating system of a computer,
in which the operating system controls and shifts, while the application is running, an execution state of the application among a foreground state in which the application is executed in a foreground and can communicate with an external device using a communication connection, a background state in which the application is executed in a background and can communicate with an external device using a communication connection, and a suspended state in which the application is inexecutable, the method for performing processing comprising: -
a communication connection-used processing step of, when the execution state of the application is the foreground state, performing processing using a communication connection established between the application and an external device; a connection state information management step of saving connection state information indicating an active or inactive state of the communication connection between the application and the external device and updating the connection state information depending on a change in active or inactive state of the communication connection between the foreground state and the background state of the application; and a communication connection cutting step of, in a case where the execution state of the application is the foreground state and the communication connection between the application and the external device is in the active state, cutting off, via the operating system, the communication connection when the execution state of the application shifts to the background state and before the execution state of the application shifts to the suspended state, whereupon the connection state information management step further comprises updating the connection state information for the application from the active state to the inactive state, and if the application is subsequently shifted to the suspended state, the connection state information for the application continues to indicate the inactive state. - View Dependent Claims (10, 11, 12)
-
Specification