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.
Legal claims defining the scope of protection. Each claim is shown in both the original legal language and a plain English translation.
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.
A computer application manages communication with an external device while running on an operating system. The application can be in a foreground state (active communication), a background state (limited communication), or a suspended state (inactive). When the application moves from foreground to background, it automatically disconnects any active communication link to the external device via the OS. The application also saves the connection status as "inactive". This ensures that when the app is later suspended, the connection remains inactive, preventing unintended data transfer or battery drain.
2. The non-transitory storage medium storing a computer program of claim 1 , wherein the application further includes a continuous operation setter configured to selectively set whether or not continuous operation is performed in the background state, and when the execution state shifts to the background state, if it is set that the application performs the continuous operation in the background state, the communication connection cutter of the application does not cut off the communication connection even in the case where the communication connection between the application and the external device is in the active state, and only if it is set that the application does not perform the continuous operation in the background state, and the communication connection between the application and the external device is in the active state, the communication connection cutter of the application cuts off the communication connection.
The application, which disconnects communication with an external device when moving to the background, includes an option to enable continuous operation in the background. If continuous operation is enabled, the application will NOT disconnect the communication link when moving to the background, even if a connection is active. Disconnection only occurs when continuous operation is disabled AND a communication link to the external device is active when the application transitions to the background. This provides control over background activity and power consumption.
3. The non-transitory storage medium storing a computer program of claim 1 , wherein the application further includes a communication connection activator configured to, in a case where the communication connection between the application and the external device is in the inactive state, activate the communication connection between the application and the external device when the execution state shifts to the foreground state.
The application, which disconnects communication with an external device when moving to the background, automatically reconnects to the external device when it returns to the foreground. Specifically, if the application's saved connection status indicates an inactive connection, the application re-establishes the communication link when it moves from the background or suspended state back to the foreground. This ensures that communication is readily available when the user returns to the application.
4. The non-transitory storage medium storing a computer program of claim 2 , wherein the application further includes a communication connection activator configured to, in a case where the communication connection between the application and the external device is in the inactive state, activate the communication connection between the application and the external device when the execution state shifts to the foreground state.
The application that manages external device communication and allows continuous background operation reconnects to the external device when returning to the foreground. If the connection state is "inactive," the application re-establishes the communication link upon transitioning from the background or suspended state back to the foreground, providing immediate functionality. This applies whether or not continuous background operation is enabled. Thus, the app always attempts to reconnect when going to the foreground if the connection was previously terminated.
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.
An information processing system, connectable to external devices, includes an operating system and an application. The OS manages the application's state: foreground (active communication), background (limited communication), or suspended (inactive). The application automatically disconnects from any active external device when moving from foreground to background via the OS. The application also saves the connection status as "inactive," ensuring the connection remains terminated when the application is suspended, thus preventing unintended background processes and saving power.
6. The information processing system of claim 5 , wherein the application further includes a continuous operation setter configured to selectively set whether or not continuous operation is performed in the background state, and when the execution state shifts to the background state, if it is set that the application performs the continuous operation in the background state, the communication connection cutter of the application does not cut off the communication connection even in the case where the communication connection between the application and the external device is in the active state, and only if it is set that the application does not perform the continuous operation in the background state, and the communication connection between the application and the external device is in the active state, the communication connection cutter of the application cuts off the communication connection.
The information processing system that manages external device communication includes an option for continuous background operation. If enabled, the application will NOT disconnect the communication link when transitioning to the background, even if a connection is active. Disconnection only occurs when continuous operation is disabled AND a communication link to the external device is active during the transition to the background. This provides control over application behavior and optimizes resource usage according to user preference.
7. The information processing system of claim 5 , wherein the application further includes a communication connection activator configured to, in a case where the connection state information indicates that the communication connection between the application and the external device is in the inactive state, activate the communication connection between the application and the external device when the execution state shifts to the foreground state.
The information processing system that manages external device communication automatically reconnects to the external device when the application returns to the foreground. Specifically, if the application's stored connection status is "inactive", the application re-establishes the communication link as it transitions from the background or suspended state back to the foreground. This ensures the user experience is seamless and immediately functional upon reopening the application.
8. The information processing system of claim 6 , wherein the application further includes a communication connection activator configured to, in a case where the connection state information indicates that the communication connection between the application and the external device is in the inactive state, activate the communication connection between the application and the external device when the execution state shifts to the foreground state.
The information processing system with external device communication management and optional continuous background operation reconnects to the external device upon returning to the foreground. If the connection is "inactive", the application re-establishes the communication link during the transition from background or suspended states. This behavior is consistent, regardless of whether continuous background operation is enabled, thus, any time that a connection is marked as inactive, the application will try to automatically reconnect upon going to the foreground.
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.
A method for an application on a computer with an OS manages connections to external devices. When the application is in the foreground (active communication), data is exchanged with the external device. The connection state ("active" or "inactive") is saved and updated. When the application moves from foreground to background, the active communication link is automatically disconnected via the OS. The connection state is then updated to "inactive." This disconnection ensures that when the app is later suspended, the connection remains inactive, thus avoiding undesired resource consumption.
10. The method for performing processing of claim 9 , further comprising: a step of selectively setting whether or not continuous operation is performed in the background state, wherein the communication connection cutting step is a step of, when the execution state shifts to the background state, if it is set that the application performs the continuous operation in the background state, not cutting off the communication connection even in the case where the communication connection between the application and the external device is in the active state, and only if it is set that the application does not perform the continuous operation in the background state, and the communication connection between the application and the external device is in the active state, cutting off the communication connection.
The application's connection management method includes a step for selectively enabling or disabling continuous operation in the background. If continuous operation is enabled, the communication link is NOT disconnected when the application goes to the background, even if the connection is active. Disconnection only occurs when continuous operation is disabled AND the communication link to the external device is active as the application goes to the background. This provides a user-configurable behavior that balances functionality and resource conservation.
11. The method for performing processing of claim 9 , further comprising: a communication connection activation step of, in a case where the connection state information indicates that the communication connection between the application and the external device is in the inactive state, activating the communication connection between the application and the external device when the execution state shifts to the foreground state.
The application connection management method includes a step to automatically reconnect to the external device when the application returns to the foreground. If the connection state is "inactive," the communication link is re-established as the application transitions from the background or suspended state back to the foreground. This ensures that the application quickly resumes communication without user intervention, improving usability and responsiveness.
12. The method for performing processing of claim 10 , further comprising: a communication connection activation step of, in a case where the connection state information indicates that the communication connection between the application and the external device is in the inactive state, activating the communication connection between the application and the external device when the execution state shifts to the foreground state.
The application connection management method, featuring optional continuous background operation, includes a step to automatically reconnect to the external device when the application returns to the foreground. Specifically, if the connection state is "inactive," the communication link is re-established as the application transitions from background or suspended states, regardless of whether continuous operation is enabled. This ensures that the application restores connectivity whenever possible after being in the background.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
March 5, 2015
July 18, 2017
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.