WO2024078412A1 - 跨屏分享方法、图形界面及相关装置 - Google Patents

跨屏分享方法、图形界面及相关装置 Download PDF

Info

Publication number
WO2024078412A1
WO2024078412A1 PCT/CN2023/123376 CN2023123376W WO2024078412A1 WO 2024078412 A1 WO2024078412 A1 WO 2024078412A1 CN 2023123376 W CN2023123376 W CN 2023123376W WO 2024078412 A1 WO2024078412 A1 WO 2024078412A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
account
display screen
application
content
Prior art date
Application number
PCT/CN2023/123376
Other languages
English (en)
French (fr)
Inventor
高红亮
付天福
李猛
吕鑫
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024078412A1 publication Critical patent/WO2024078412A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • the present application relates to the field of terminal and communication technology, and in particular to a cross-screen sharing method, a graphical interface and related devices.
  • a device can be equipped with multiple display screens, which can display at the same time, improving the utilization rate of the device.
  • the meeting content can be displayed on multiple display screens so that participants in different locations can view the meeting content through different display screens; for example, in a home scene, the content required by different family members can be displayed on different display screens to meet the entertainment needs of different family members; for example, in a car scene, display screens can be installed in different locations in the car to provide entertainment services for members in different seats.
  • the present application provides a cross-screen sharing method, a graphical interface and related devices, which realize the management of content shared between multiple display screens of an electronic device based on permissions.
  • the present application provides a cross-screen sharing method, which is applied to an electronic device comprising a first display screen and a second display screen, and the method includes: the electronic device logs in a first account on the first display screen; the electronic device displays first content or indication information of the first content on the first display screen; the electronic device detects a first operation to share the first content to the second display screen, and a second account is logged in on the second display screen; when the authority of the first account is higher than the authority of the second account, the electronic device displays the first content or the second content obtained based on the first content on the second display screen.
  • the electronic device can log in to different accounts on different display screens, and when it detects that a user is sharing content displayed on one display screen to another display screen for display, if the authority of the account logged in on the previous display screen is higher than the authority of the account logged in on the next display screen, the electronic device can share the displayed content on the previous display screen to the next display screen, thereby enabling the electronic device to control the content shared across screens based on authority, thereby strengthening the electronic device's control over the content shared across screens.
  • the method when the authority of the first account is lower than or equal to the authority of the second account, the method also includes: the electronic device refuses to respond to the first operation; or, the electronic device outputs a first prompt message, and the first prompt message is used to prompt the user to share the first content to the second display screen; the electronic device receives a second operation of agreeing to share, and displays the first content or the second content obtained based on the first content on the second display screen, or, the electronic device receives a third operation of refusing to share, and refuses to respond to the first operation.
  • an electronic device detects that a user is sharing content displayed on one display screen to another display screen for display, if the authority of the account logged in on the previous display screen is lower than the authority of the account logged in on the subsequent display screen, the cross-screen sharing of the electronic device fails, or the electronic device outputs a prompt message and determines whether to perform cross-screen sharing based on the user's choice.
  • the electronic device can determine whether to share content across screens based on the permissions of the accounts logged in on the two display screens, or whether user intervention is needed to decide whether to share content across screens, thereby enhancing the user's sense of participation in cross-screen sharing.
  • the method before the first operation of sharing the first content to the second display screen, no account was logged in on the second display screen, and after the electronic device detects the first operation of sharing the first content to the second display screen, the method also includes: the electronic device automatically logs in to the second account on the second display screen, or the electronic device receives a fourth operation and logs in to the second account on the second display screen.
  • the electronic device After the electronic device detects the operation of sharing the display content on one display screen to another display screen for display, if the account is not logged in on the latter display screen, the electronic device can automatically log in the account on the display screen, or, under the operation of the user, complete the login of the account on the display screen. In this way, it can be ensured that the display screen can only realize cross-screen sharing under the premise of logging in the account, and it is convenient for users to realize cross-screen sharing.
  • the first operation includes: a user operation acting on a display on the first display screen to indicate an option of the second display screen.
  • the user when the user triggers cross-screen sharing, the user can determine the target display screen for cross-screen sharing by selecting an option corresponding to the target display screen displayed on the display screen.
  • the first account corresponds to a first storage space in the electronic device
  • the second account corresponds to a second storage space in the electronic device
  • the first storage space and the second storage space are isolated from each other.
  • the method before the electronic device displays the first content or the second content on the second display screen, the first content is located in a first storage space, and before the electronic device displays the second content obtained based on the first content on the second display screen, the method also includes: the electronic device sends the first content to the second storage space.
  • the electronic device can realize cross-screen sharing of content by specifically sharing the content in the storage space of the account logged in on one display screen to the storage space of the account logged in on another display screen. In this way, when the electronic device displays the cross-screen shared content on the latter display screen, the content can be obtained from the storage space of the account logged in on the latter display screen and displayed on the display screen.
  • the first content is provided by a first application
  • the electronic device displays the first content or the second content on a second display screen, specifically including: the electronic device displays the first content or the second content provided by the second application on the second display screen, and the second application is the same application as the first application, or an application of the same type.
  • an electronic device when an electronic device shares the content of an application displayed on one display screen across the screen to another display screen, it can display the cross-screen shared content on the latter display screen through the same application or the same type of application, thereby better displaying the cross-screen shared content.
  • the electronic device can display the destination or the navigation route to the destination on display screen 2 through the same navigation application or other navigation applications that also provide navigation functions, so that the user can view the same display effect of the destination on display screen 2 as on display screen 1.
  • the first application originates from the first account, and the second application originates from the second account. Further, the first application originates from the storage space of the first account, and the second application originates from the storage space of the second account.
  • the first application and the second application can be independent applications, and the application content displayed on the display screen of the electronic device can come from the storage space of the account logged in on the display screen.
  • each display screen is equivalent to an independent device, and multiple users can independently operate different display screens at the same time, thereby maximizing the utilization rate of devices with multiple display screens, thereby meeting the usage and entertainment needs of multiple users at the same time.
  • the first application or the second application belongs to one or more of the following: an application involving privacy data, a third-party application, and an application that does not need to run for a long time.
  • the first application or the second application is an application involving private data. Since the storage space of different accounts is isolated from each other, the private data input by the user when using the application through the electronic device can be prevented from being stolen by other users, thereby ensuring the security of the private data.
  • the first application or the second application is a third-party application. Since the storage space of different accounts is isolated from each other, different users can install the required applications according to their own needs and preferences when operating the display screen, and the applications installed by each user on different display screens do not affect each other.
  • the first application or the second application is an application that does not need to run for a long time. Since the storage spaces of different accounts are isolated from each other, the applications running under different accounts do not affect each other.
  • the method before the electronic device displays the first content or the second content provided by the second application on the second display screen, the method also includes: the electronic device automatically installs the second application in the storage space of the second account, or the electronic device receives a fifth operation and installs the second application in the storage space of the second account.
  • the electronic device can automatically install an application for displaying the display content or related content of the display content in the account logged in on the latter display screen, or, under the user's operation, install an application for displaying the display content or related content of the display content in the account logged in on the latter display screen, thereby facilitating the user's operation and providing the user with a more intelligent cross-screen sharing experience.
  • the first content and the second content are located in a third storage space shared by the first account and the second account.
  • the content shared across screens by an electronic device can be located in a storage space shared by multiple accounts, and the electronic device can realize cross-screen sharing of shared content by multiple accounts based on account permissions.
  • both the first content and the second content are provided by a shared application installed in the third storage space.
  • the shared application is any one or more of the following: an application not involving privacy data, a system application, and an application that needs to run for a long time.
  • the first application or the second application is an application that does not involve privacy data, there is no need to worry about whether the data will be stolen by other users, causing the user's privacy data to be leaked;
  • the first application or the second application is a system application, which reduces the trouble of users pre-setting some necessary applications in their accounts and improves the convenience of users controlling electronic devices;
  • the first application or the second application is a long-running application, which can reduce the concurrent data of the application displayed on each display screen in a multi-screen display scenario, thereby reducing the consumption of system resources, speeding up the efficiency of system operations, and improving the performance of the device.
  • the first content includes one or more of the following: text, picture, video, audio, link, file, table.
  • the electronic device includes a system-level chip, and the operation of storage spaces corresponding to multiple accounts is supported by the system-level chip.
  • the electronic device may be a "one chip, multiple screens" device, in which all display screens of the electronic device are driven by a system-level chip, and all computing and processing processes in the electronic device are supported by the system-level chip.
  • the authority of the first account and the authority of the second account are automatically determined by the electronic device or based on a user's operation.
  • the first account is: the owner's account
  • the second account is: the guest account or the owner's authorized account, and the authority of the first account is higher than the authority of the second account
  • the first account is: the owner's authorized account
  • the second account is: the guest account
  • the authority of the first account is higher than the authority of the second account
  • the first display screen is: the central control screen
  • the second display screen is: the co-pilot screen, the rear seat screen, and the authority of the first account logged in on the first display screen is higher than the authority of the second account logged in on the second display screen.
  • an embodiment of the present application provides an electronic device, characterized in that it includes multiple display screens, a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device executes the method described in the first aspect or any one of the embodiments of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, comprising instructions, characterized in that when the instructions are executed on an electronic device, the electronic device executes the method described in the first aspect or any one of the embodiments of the first aspect.
  • an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a computer, the computer executes the method described in the first aspect or any one of the implementation modes of the first aspect.
  • FIG1 is a schematic diagram of the layout of multiple display screens of an in-vehicle device provided in an embodiment of the present application
  • FIG2 is a schematic diagram of the layout of multiple display screens in a home scenario provided by an embodiment of the present application.
  • FIG3A is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.
  • FIG3B is a schematic diagram of the software structure of the electronic device 100 provided in an embodiment of the present application.
  • FIG. 4 is a flowchart of an internal interaction involved in cross-screen sharing of the electronic device 100 provided in an embodiment of the present application;
  • FIG. 5 is another internal interaction flow chart of the electronic device 100 provided in an embodiment of the present application when performing cross-screen sharing;
  • 6A-6G and 7A-7E are some user interfaces provided in the embodiments of the present application.
  • FIG8 is a flow chart of a cross-screen sharing method provided in an embodiment of the present application.
  • first and second are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality” means two or more.
  • GUI graphical user interface
  • the embodiment of the present application provides a cross-screen sharing method, which is applied to an electronic device including multiple display screens.
  • the electronic device can log in different accounts on different display screens, access the storage space corresponding to the account, and display the content from the storage space corresponding to the account logged in on the display screen on the display screen.
  • the electronic device can log in to account 1 on display screen 1 and account 2 on display screen 2. Different accounts have different permissions.
  • the electronic device detects that the user shares the content on display screen 1 to display on display screen 2, the electronic device can determine whether account 2 receives the content and displays the content on display screen 2 based on the permissions of account 1 and account 2.
  • the electronic device when the authority of account 1 is higher than that of account 2, the electronic device can directly share the content on display screen 2 for display; when the authority of account 1 is equal to or lower than that of account 2, the electronic device can share the content on display screen 2 for display after receiving an operation on display screen 2 to agree to display the content, or the electronic device refuses to display the content on display screen 2.
  • the authority of the account please refer to the subsequent method flow, which will not be expanded here.
  • each display screen is equivalent to each independent device, and multiple users can independently operate each display screen at the same time, which maximizes the utilization rate of devices containing multiple display screens, thereby meeting the use and entertainment needs of multiple users at the same time.
  • electronic devices can realize cross-screen sharing of content, and strengthen the association and interaction between different display screens, so that users who operate different display screens can communicate based on the display screens, and when cross-screen sharing of content on electronic devices, it can be determined based on the permissions of the accounts logged in on different display screens how to perform cross-screen display, so that the electronic device can only realize cross-screen sharing of content when the specified conditions are met, avoiding the electronic device directly sharing the content on one display screen to another display screen for display. In this way, the content shared between different display screens is managed based on permissions, and the control of electronic devices over cross-screen shared content is strengthened.
  • Scenario 1 In-vehicle scenario
  • the electronic device including multiple display screens may refer to the vehicle-mounted device in the vehicle, and the vehicle-mounted device may include: a central control screen, a co-pilot screen, a rear seat screen, a head-up display screen, and other multiple display screens.
  • the vehicle-mounted device may also include an intelligent cockpit processor, which is used to control and manage the display of these multiple display screens.
  • the intelligent cockpit processor may be located inside the central control screen.
  • FIG1 is a schematic diagram of the layout of multiple display screens of a vehicle-mounted device provided in an embodiment of the present application.
  • the vehicle-mounted equipment may include a central control screen, a co-pilot screen, a head-up display screen, a rear seat screen 1, and a rear seat screen 2.
  • the central control screen may be located in the middle of the workbench facing the front driver's seat, and may be used to display the reversing image, the navigation interface, and provide entertainment services such as watching dramas and listening to songs, etc.
  • the head-up display screen may be located in front of the workbench facing the main driver's seat, and may be used to display important driving information such as vehicle speed, engine speed, remaining fuel, navigation, etc.
  • the co-pilot screen may be located in front of the workbench facing the co-pilot seat, and may be used to provide entertainment services for the co-pilot passenger, and the rear seat screen 1 and the rear seat screen 2 may be located in front of the rear seat, such as being installed behind the headrest of the front driver's seat as shown in FIG1 , and may be used to provide entertainment services for the rear seat passengers.
  • a user in conjunction with the in-vehicle device shown in FIG1 , in an in-vehicle scenario, a user can log in to different accounts on each display screen in the in-vehicle device, and each display screen can be independently displayed based on the account, and the content displayed on each display screen is independent of each other. Furthermore, the in-vehicle device can detect the user's operation of sharing the content on one display screen to another display screen for display, and by comparing the permissions of the accounts logged in on the two display screens, determine whether to directly share the content to another display screen for display.
  • the rear seat screen 1 can be used to display the content of the navigation application.
  • the vehicle-mounted device can send the location A entered by the passenger on the rear seat screen 1 to the central control screen for display.
  • the central control screen can directly display the driving route from the current location to location A provided by the navigation application. In this way, during the taxi-hailing process, the driver avoids the trouble of asking the passenger for the destination, and also avoids the driver's distraction to query the navigation route during driving, thereby improving the safety of the vehicle during driving.
  • the driver can send the payment code containing the fare amount to the rear seat screen 1 through the central control screen, and the rear seat screen 1 can directly display the payment code so that the passenger can quickly pay the fare, providing a convenient electronic payment method for the passenger.
  • the electronic device including multiple display screens may refer to an indoor smart home device, which may include multiple display screens such as a living room screen, a bedroom screen, and a study screen.
  • the smart home device may also include a processor for controlling and managing the display of the multiple display screens.
  • FIG. 2 is a schematic diagram of the layout of multiple display screens indoors in a home scenario provided in an embodiment of the present application.
  • the smart home device may include multiple display screens, such as a living room screen, a bedroom screen, and a learning screen.
  • the living room screen may be located in the living room to provide entertainment services for family members in the living room
  • the bedroom screen may be located in the bedroom to provide entertainment services for family members in the bedroom
  • the learning screen may be located in the study to provide learning services such as listening to classes and reviewing for family members in the study.
  • a user in a home scenario, can log in to different accounts on each display screen in the smart home device, and each display screen can be independently displayed based on the account, and the content displayed on each display screen is independent of each other. Furthermore, the smart home device can detect the user's operation of sharing the content on one display screen to another display screen for display, and by comparing the permissions of the two display screens, determine whether to directly share the content to the other display screen for display.
  • the living room screen can be used to display the content of the schedule application. Parents can set the child's schedule activities through the schedule application on the living room screen and send the schedule activities to the account logged in on the learning screen. The child can view the schedule activities through the learning screen. In addition, after the child completes online learning through the learning screen, the child can send the completed homework to the account logged in on the living room screen through the learning screen. At this time, the living room screen can display a prompt message whether to view the homework. Parents can determine whether to view the homework based on their own wishes.
  • smart home devices when smart home devices need to transfer data between different display screens, they can determine whether to transfer data or how to transfer data based on the permissions, thereby strengthening the control of smart home devices over data shared across screens and improving the user experience of multiple display screens in home scenarios.
  • the multiple display screens included in the electronic device can be connected to the main body of the electronic device through a wired connection or a wireless connection, wherein the wireless connection can be a short-distance connection such as a Wi-Fi connection, a Bluetooth connection, an infrared connection, an NFC connection, a ZigBee connection, or a long-distance connection, and the long-distance connection includes but is not limited to a long-distance connection based on 2G, 3G, 4G, 5G and subsequent standard protocols of mobile networks.
  • these multiple display screens can be display screens that can only realize the display function, or can be other electronic devices that have independent computing functions but provide display functions as display screens, and the embodiments of the present application do not limit this.
  • the embodiments of the present application do not limit the application scenarios of the cross-screen sharing method.
  • the application scenarios may also include conference scenarios, exhibition scenarios, monitoring scenarios, etc.
  • the electronic device may include multiple display screens, and different display screens may have different permissions.
  • the electronic device may determine whether to implement cross-screen display of the content based on the permissions.
  • FIG. 3A shows a schematic diagram of the hardware structure of the electronic device 100 .
  • the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and/or a smart city device.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • the electronic device 100 may be a device that includes only one system-level chip, one operating system, and is equipped with multiple display screens.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
  • the electronic device 100 may be a device that includes only one system-level chip and one operating system and is equipped with multiple display screens.
  • the system-level chip may integrate multiple key components of the electronic device 100, such as a processor 110, an external memory interface 120, an internal memory 121, and the like.
  • the electronic device 100 may drive multiple display screens and support the operation of storage spaces of multiple accounts through the one system-level chip.
  • the structure shown in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the processor 110 can be used to control and manage multiple accounts in the electronic device 100, obtain the content in the storage space corresponding to the account, and determine whether to send the content in one account to another account based on the permissions of the accounts logged in on the two display screens.
  • the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the charging management module 140 is used to receive charging input from a charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status (leakage, impedance).
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • Display screen 194 is used to display images, videos, etc.
  • the electronic device may include N display screens 194, where N is a positive integer greater than 1.
  • the display screen 194 may include a central control screen, a co-pilot screen, a rear seat screen, a head-up screen, etc.
  • the display screen 194 may be used to display the login interface of the account, the display content provided by the application, etc.
  • the user interface mentioned later please refer to the user interface mentioned later, which will not be expanded here.
  • the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
  • ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise and brightness of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural-network (NN) computing processor. It can quickly process input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn.
  • NN neural-network
  • the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • RAM random access memories
  • NVM non-volatile memories
  • the internal memory 121 may provide independent storage spaces for each account, and the different storage spaces are used to store data of applications installed in different accounts, as well as data generated during the operation of the applications.
  • the external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100.
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
  • the electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
  • the receiver 170B also called a "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “speaker” is used to convert sound signals into electrical signals.
  • the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C.
  • the electronic device 100 can be provided with at least one microphone 170C.
  • the earphone jack 170D is used to connect a wired earphone.
  • the pressure sensor 180A is used to sense pressure signals and convert the pressure signals into electrical signals.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outward through the light emitting diode.
  • the electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed brightness of the ambient light.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
  • the touch sensor 180K is also called a "touch control device”.
  • the touch sensor 180K can be set on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Bone conduction sensor 180M can obtain vibration signals.
  • the key 190 includes a power key, a volume key, etc.
  • the key 190 may be a mechanical key or a touch key.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet computer, a wearable device, etc., and may also be a non-portable terminal device such as a laptop computer with a touch-sensitive surface or a touch panel, a desktop computer with a touch-sensitive surface or a touch panel.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes a mobile operating system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
  • FIG. 3B is a schematic diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, each with clear roles and division of labor.
  • the layers communicate with each other through software interfaces.
  • the mobile operating system is divided into four layers, from top to bottom: application layer, program framework layer/core service layer, underlying library and kernel layer.
  • the application layer can include a series of application packages.
  • the application layer may divide the application packages contained in different accounts based on the accounts.
  • the application packages contained in different accounts do not affect each other, wherein different accounts may contain different application packages or the same application packages, and the application packages of different accounts are installed in the storage space of their corresponding accounts.
  • the application layer may also include application packages shared by various accounts, and the shared application packages may be installed in the storage space shared by various accounts.
  • the application package may include desktop, settings, SystemUI, application 1, application 2, application 3 and other applications.
  • the desktop, settings, and SystemUI are shared applications
  • SystemUI is a system-level APK application that can provide display content such as the status bar, notification bar, recent task interface, and navigation bar.
  • Application 1, application 2, and application 3 are independent applications.
  • the electronic device 100 includes: account 1 and account 2, wherein the independent applications installed in account 1 include: application 1, application 2, and the independent applications installed in account 2 include: application 1, application 2, and application 3.
  • the display screen can display the contents of application 1, application 2, desktop, settings, and SystemUI, where the contents of application 1 and application 2 come from the storage space of account 1, and the contents of desktop, devices, and SystemUI come from the storage space shared by various accounts in the electronic device 100; when the electronic device 100 logs in to account 1 on a display screen, the content of application 1 and application 2 comes from the storage space of account 1, and the content of desktop, devices, and SystemUI comes from the storage space shared by various accounts in the electronic device 100.
  • the display screen can display the contents of application 1, application 2, application 3, desktop, settings, and System UI, wherein the contents of application 1, application 2, and application 3 come from the storage space of account 2, and the contents of desktop, settings, and System UI come from the storage space shared by each account in the electronic device 100.
  • some applications in an account can be displayed only on a designated display screen, which can refer to a display screen preset by the electronic device 100, a display screen set by the user, or a display screen with the best performance in the electronic device 100, etc.
  • the embodiment of the present application does not limit the definition of the designated display screen. Taking the application in account 1 shown in FIG. 3B as an example, the application 1 can be displayed only on display screen 1. Then, when the electronic device 100 logs in to account 1 on display screen 1, the display screen 1 can display the content of the application 1. When the electronic device 100 logs in to account 1 on display screen 2, the display screen 1 cannot display the content of the application 1.
  • the display screen 1 refers to the central control screen, and application 1 is the application market. Then, among all the display screens of the electronic device 100, only the central control screen can display the application market, providing the user with the function of installing and uninstalling applications.
  • the shared applications in the electronic device 100 are not limited to the desktop, settings and SystemUI shown in FIG. 3B.
  • the shared applications may only include the desktop and SystemUI, or the shared applications may also include: text messages, gallery, calendar, navigation, clock, map, etc.
  • the embodiment of the present application does not limit the shared applications contained in the electronic device 100.
  • the electronic device 100 may also include more or fewer accounts.
  • the embodiment of the present application does not limit the number of accounts in the electronic device 100, nor does it limit the applications contained in each account.
  • account 1 may include application 1, application 2, application 3, etc.
  • account 2 may include application 4, application 5, application 6, etc.
  • These applications may be applications installed by the electronic device 100 from the application market, or applications downloaded by the electronic device 100 through a web page, or applications that come with the electronic device 100 when it leaves the factory.
  • the embodiment of the present application does not limit the source of these applications.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a phone manager, a resource manager, a notification manager, a view system, a sharing module, a permission management module, and the like.
  • the sharing module is used to determine whether the current sharing condition is met when the electronic device 100 needs to share the application content displayed on a display screen to the target display screen for display.
  • the sharing condition includes one or more of the following: the target display screen has logged in to the account, the account logged in to the target display screen has installed the application, etc. The specific description of the sharing condition can be found in the subsequent method flow, which will not be repeated here.
  • the permission management module is used to manage the permissions of each account contained in the electronic device 100, and when the electronic device 100 needs to share the application content on one display screen to another display screen, it compares the permissions of the accounts logged in on the two display screens.
  • the electronic device 100 sharing application content according to permissions please refer to the subsequent method flow, which will not be repeated here.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information).
  • the raw input event is stored in the kernel layer.
  • the application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.
  • FIG. 4 shows an internal interaction flow chart involved when the electronic device 100 performs cross-screen sharing.
  • the cross-screen sharing method involves display screen 1, display screen 2, sharing module, and permission management module in the electronic device 100.
  • Display screen 1 and display screen 2 may be any two display screens in the electronic device 100.
  • the sharing module and the permission management module please refer to the relevant content in FIG3B above, which will not be repeated here.
  • the electronic device 100 logs in to the account 1 on the display screen 1 .
  • Account 1 may be an account registered in the electronic device 100 .
  • registering an account for the electronic device 100 may include the following steps:
  • the electronic device 100 may display the account registration interface through the display screen, and obtain the account registration information entered by the user through the registration interface.
  • the registration information may include: account number, password, nickname, etc. Further, the registration information may also include the authority of the account.
  • the electronic device 100 may determine whether to share across screens or how to share across screens based on the authority.
  • the server is used to obtain the registration information of the account and determine whether the account already exists based on the registration information. If not, the server stores the registration information of the account locally so that when the electronic device 100 logs in to the account, it can determine whether the account logged in by the electronic device 100 is legal through the registration information. If it does, the account registration fails.
  • the indication information returned by the server is used to indicate that the account registration is successful; otherwise, the indication information is used to indicate that the account registration fails.
  • the registration information can also be directly saved locally.
  • the account registration process of the electronic device 100 does not involve the server, and the electronic device 100 determines whether the account already exists based on the stored registration information. If not, the registration information is saved locally, otherwise, the account registration fails.
  • the electronic device 100 can allocate a storage space for the account locally, and the storage space is used to store the data of each application installed in the account, such as the installation file of the application or the data generated during the operation of the application, etc. It should be noted that when the account registration is completed, the storage space can pre-store some initial information, such as the data of the initial application preset in the account, initial configuration information, etc.
  • the electronic device 100 when the electronic device 100 registers account 1, the electronic device 100 can obtain the registration information of the account 1 and send the registration information of the account 1 to the server. After obtaining the indication information of successful registration returned by the server, the electronic device 100 allocates a storage space for account 1 in the storage space, thereby completing the registration of account 1.
  • the account 1 may also be an account registered for other devices.
  • the account 1 may also be an account registered for other devices. For specific steps of registering an account for other devices, reference may be made to the steps of registering an account for the electronic device 100 , which will not be repeated here.
  • the electronic device 100 may log in to the account 1 on the display screen 1 in the following two cases:
  • the electronic device 100 may automatically log in to the account 1 on the display screen 1 after being powered on, or the electronic device 100 may automatically log in to the account 1 on the display screen 1 after the display screen 1 is turned on.
  • the electronic device 100 logs in to the account 1 on the display screen 1 based on the user operation
  • the electronic device 100 may display a login interface of an account on the display screen 1, and after detecting a user operation to confirm the login to the account 1 on the login interface, the electronic device 100 may log in the account 1 on the display screen 1.
  • the user operation may include one or more of the following: an operation of inputting an account number, an operation of inputting a password, and an operation acting on a login control, and the user operation may be expressed as a touch operation acting on the display screen 1, or a click operation acting on a mouse connected to the electronic device 100, etc.
  • the embodiment of the present application does not limit the form of expression of the user operation.
  • the electronic device 100 logging into an account may include the following steps:
  • the login information may include account number, password, login time, login location, etc., which is not limited in this embodiment of the present application.
  • the authentication account can include: server authentication and local authentication.
  • authentication by the server means that the electronic device 100 sends the login information of the account to the server, and the server authenticates the account based on the login information and all the stored registration information.
  • the server if the account is a registered account and has not been logged in, the authentication of the account is passed, and the server records the login information of the account. Otherwise, the authentication of the account is not passed, and then the server returns the indication information of whether the account is authenticated to the electronic device 100.
  • Local authentication means that the electronic device 100 authenticates the account based on the account login information and all the registration information stored locally. For example, if the account is not a registered account and is not logged in, the account authentication passes, otherwise, the account authentication fails.
  • the electronic device 100 displays the content in the account on the display screen of the currently logged-in account.
  • the content may include the user interface provided by each application. For example, assuming that application 1 and application 2 are installed in account 1, after the electronic device 100 logs in to account 1 on display screen 1, the electronic device 100 may display the application content of application 1 and application 2 on the display screen 1.
  • the electronic device 100 logging into the account 1 on the display screen 1 may include: the electronic device 100 obtains the login information of the account 1, authenticates the account according to the login information, and displays the content in the account 1 on the display screen 1 after the authentication is passed.
  • the electronic device 100 logs in to the account 2 on the display screen 2 .
  • the account 2 may be an account registered locally by the electronic device 100, or an account registered by other devices, and the electronic device 100 logging into the account 2 on the display screen 2 may include: the electronic device 100 obtains the login information of the account 2, authenticates the account according to the login information, and after the authentication is passed, displays the content in the account 2 on the display screen 2.
  • the electronic device 100 obtains the login information of the account 2, authenticates the account according to the login information, and after the authentication is passed, displays the content in the account 2 on the display screen 2.
  • step S102 For the specific description in step S102, reference may be made to the relevant content of the aforementioned step S101, which will not be repeated here.
  • the display screen 1 and the display screen 2 mentioned in the embodiment of the present application are only used to indicate that the display screen 1 and the display screen 2 are two different display screens of the electronic device 100, and do not constitute a limitation on the embodiment of the present application.
  • the account 1 and the account 2 provided in the embodiment of the present application are only used to indicate that the account 1 and the account 2 are two different accounts in the electronic device 100, and do not constitute a limitation on the embodiment of the present application, and will not be elaborated below.
  • the electronic device 100 detects on the display screen 1 a user operation of sharing data A to the display screen 2 for display.
  • the data A may come from the storage space of account 1, and the data A may refer to data in the form of text, pictures, tables, videos, audios, documents, links, etc.
  • the embodiment of the present application does not limit the presentation form of the data A.
  • the data A may be data provided by application A.
  • the data A may refer to data input by a user for starting a function provided by application A when the electronic device 100 displays application A on the display screen 1, or the data A may refer to data of application A itself when the electronic device 100 displays application A on the display screen 1.
  • application A may refer to a navigation application, and data A may refer to a destination location input by a user.
  • application A may refer to a video playback application, and data A may be a video played by the video playback application.
  • step S103 can be the electronic device 100 detecting the user operation of sharing data A from the account logged in on display screen 1 (i.e., account 1) to another account (e.g., account 2).
  • account 1 i.e., account 1
  • account 2 i.e., account 2
  • account 3 another account
  • the data A may also come from a storage space shared by all accounts in the electronic device 100, and this embodiment of the present application does not limit this.
  • the electronic device 100 determines whether the sharing condition is met through the sharing module.
  • the sharing condition may include one or more of the following: the electronic device 100 has logged into an account on the display screen 2 , an application for displaying data A is installed in the account logged into the display screen 2 , and the like.
  • step S105 the electronic device 100 executes step S105 , otherwise, the cross-screen sharing of data A fails.
  • the electronic device 100 determines whether the authority of account 1 is higher than the authority of account 2 through the authority management module.
  • the electronic device 100 can directly share data A from account 1 to account 2, that is, execute step S107; otherwise, the electronic device 100 refuses to share data A, or the electronic device 100 determines whether to share data A based on user operation, that is, executes step S106.
  • the electronic device 100 determines whether to share data A through user operations on the display screen 2 .
  • the electronic device 100 can output a prompt message on the display screen 2 to prompt the user whether to agree to share data A with account 2 .
  • the electronic device 100 shares data from a display screen with lower authority to a target display screen with higher authority or the same authority, the electronic device 100 needs to obtain the consent of the user who controls the target display screen before displaying the data on the display screen with higher authority.
  • step S107 the electronic device 100 executes step S107 , otherwise, the cross-screen sharing of the data A fails.
  • the electronic device 100 shares data A from account 1 to account 2 through the sharing module.
  • the electronic device 100 sends the data A to the storage space of the account 2 , so that the electronic device 100 can display the data A from the storage space of the account 2 on the display screen 2 .
  • step S107 is an optional step. This is because when data A is the content in the storage space shared by all accounts in the electronic device 100, the electronic device 100 does not need to share data A from account 1 to account 2. Any account in the electronic device 100 can access the data A and display the data A on the display screen of the account logged in.
  • the electronic device displays data A on display screen 2.
  • the electronic device 100 can play the video through the display screen 2, so that the electronic device 100 can share the video from the display screen 1 to the display screen 2 for playback.
  • data A is a picture
  • the electronic device 100 can display the picture through the display screen 2, so that the electronic device 100 can share the picture from the display screen 1 to the display screen 2 for display.
  • the electronic device 100 may also display content related to the data A, which may be content obtained by the electronic device 100 in further response based on the data A. For example, when the electronic device 100 shares a certain location on another display screen for display, the electronic device 100 may display a map containing the location on the other display screen, or display a route map to the location.
  • the embodiment of the present application does not limit the content displayed on another display screen after the electronic device 100 shares the data across screens.
  • the electronic device 100 may also output voice prompts, vibrations, etc. related to the data A.
  • FIG. 5 shows another internal interaction flow chart involved when the electronic device 100 performs cross-screen sharing.
  • the cross-screen sharing method involves display screen 1, display screen 2, sharing module, and permission management module in the electronic device 100.
  • Display screen 1 and display screen 2 may be any two display screens in the electronic device 100.
  • the sharing module and the permission management module please refer to the relevant content in FIG3B above, which will not be repeated here.
  • the electronic device 100 logs in to account 1 on the display screen 1 .
  • the electronic device 100 logs in to the account 2 on the display screen 2 .
  • the electronic device 100 detects a user operation of sharing data A of application A on the display screen 2 for display.
  • steps S201-S203 are similar to steps S101-S103 shown in FIG4, and the specific description of steps S201-S203 can refer to the related description of the aforementioned steps S101-S103, which will not be repeated here.
  • step S202 is an optional step.
  • the electronic device 100 determines whether there is a login account on the display screen 2 through the sharing module.
  • the electronic device 100 After the electronic device 100 detects the user operation of sharing data A to display on the display screen 2, the electronic device 100 can determine whether there is an account logged in on the display screen 2. If not, the electronic device 100 executes step S205, otherwise the electronic device 100 executes step S206.
  • step S203 can be changed to the electronic device 100 detecting a user operation of sharing data A of application A to account 2.
  • the electronic device 100 can determine whether the electronic device 100 has account 2 logged in on a display screen through the sharing module. If not, the electronic device 100 logs in account 2 on a display screen (e.g., display screen 2), otherwise the electronic device 100 executes step S206. Wherein, when the electronic device 100 determines that there is no display screen logged in account 2, the electronic device 100 can automatically select a display screen to log in account 2, or log in account 2 on a display screen based on the user's choice. The embodiment of the present application is not limited to this.
  • the electronic device 100 logs in to the account 2 on the display screen 2 through the sharing module.
  • the electronic device 100 logging into the account 2 on the display screen 2 may include the following two situations:
  • the electronic device 100 determines that the account is not logged in on the display screen 2, it automatically triggers the login of the account on the display screen 2.
  • the account 2 logged in by the electronic device 100 on the display screen 2 can be an account randomly selected by the electronic device 100, or it can be the account logged in the most recent time on the display screen 2, etc.
  • the embodiment of the present application does not limit the account logged in on the display screen 2.
  • the electronic device 100 prompts the user to log in to the account on the display screen 2, and logs in to the account 2 on the display screen 2 based on the user operation.
  • the electronic device 100 can output a prompt message to prompt the user whether to log in the account on the display screen 2.
  • the electronic device 100 can display an account login interface on the display screen 2 to prompt the user to log in the account on the display screen 2.
  • the electronic device 100 can detect the user's operation of selecting an account and logging in on the account login interface, and log in the account on the display screen 2. In this way, the user can determine whether to log in the account on the display screen 2 according to his own wishes, and further, the user can also select the account to log in according to his own wishes.
  • the electronic device 100 determines whether the authority of account 1 is higher than the authority of account 2 through the authority management module.
  • the electronic device 100 can further determine whether an application for displaying the data A is installed in account 2, that is, execute step S208; otherwise, the electronic device 100 refuses to share data A, or the electronic device 100 determines whether to share data A based on user operations, that is, executes step S207.
  • the electronic device 100 determines whether to share data A through user operations on the display screen 2 .
  • the electronic device 100 can input a prompt message on the display screen 2 to prompt the user whether to agree to share data A with account 2 .
  • the electronic device 100 shares data from a display screen with lower authority to a target display screen with higher authority or the same authority for display, the electronic device 100 needs to obtain the consent of the user who controls the target display screen before displaying the data on the display screen with higher authority.
  • the electronic device 100 determines to share data A based on the user operation, the electronic device 100 further determines whether an application for displaying the data A is installed in the account 2, that is, executes step S208, otherwise, the cross-screen sharing of the data A fails.
  • the electronic device 100 determines whether the account 2 has an application for displaying the data A installed through the sharing module.
  • the application may refer to the application A mentioned in step S203, or may refer to an application of the same type as the application A.
  • the application A is a video playback application and the data A is a video
  • the electronic device 100 determines whether the account 2 has an application for displaying the data A installed, it may determine whether the account 2 has the application A installed, or other video playback applications that can also play videos.
  • step S209 If the electronic device 100 determines that the application for displaying the data A is not installed in the account 2, the electronic device 100 executes step S209; otherwise, the electronic device 100 executes step S210.
  • step S208 is an optional step.
  • the electronic device 100 installs application B in account 2 through the sharing module.
  • the application B may be the application A, or may be an application of the same type as the application A and capable of identifying the data A.
  • Electronic device 100 prompts the user to install application B, and installs application B in account 2 based on the user operation
  • the electronic device 100 can output a prompt message to prompt the user whether to install application B in account 2.
  • the electronic device 100 can display multiple applications available for installation on the display screen 2, and the user can select one of the applications to install, or refuse to install the application, etc. In this way, the user can determine whether to install the application in account 2 according to his own wishes, and further, the user can also select the application to be installed according to his own wishes.
  • the electronic device 100 may first execute steps S206-S207, and then execute steps S208-S209. In this way, the electronic device 100 may first determine whether the authority of account 1 is higher than the authority of account 2, and then determine whether an application for displaying data A is installed in account 2. Alternatively, the electronic device 100 may first execute steps S208-S209, and then execute steps S206-S207. In this way, the electronic device 100 first determines whether an application for displaying data A is installed in account 2, and then determines whether the authority of account 1 is higher than the authority of account 2. Alternatively, the electronic device 100 may execute steps S206 and S208 at the same time. In this way, the electronic device 100 may simultaneously determine whether the authority of account 1 is higher than the authority of account 2, and whether an application for displaying data A is installed in account 2.
  • the electronic device 100 shares data A from account 1 to account 2 through the sharing module.
  • the electronic device 100 sends the data A to the storage space of the account 2 , so that the electronic device 100 can display the data A from the storage space of the account 2 on the display screen 2 .
  • step S201 is an optional step. This is because when data A is the content in the storage space shared by all accounts in the electronic device 100, the electronic device 100 does not need to share data A from account 1 to account 2. Any account in the electronic device 100 can access the data A and display the data A on the display screen of the account logged in.
  • the electronic device 100 displays data A on the display screen 2 through application B.
  • the electronic device 100 can display the content of the application B installed in the account 2 on the display screen 2 , wherein the electronic device 100 can display the data A through the application B on the display screen 2 .
  • application B when data A is a video, application B can be a video playback application, and the electronic device 100 can display the playback interface of the video playback application on the display screen 2, and play the video in the playback interface.
  • application B when data A is a location C, application B can be a navigation application, and the electronic device 100 can display the user interface of the navigation application on the display screen 2, and display the navigation route from the current location of the electronic device 100 to the location C in the user interface. In this way, the effect of the electronic device 100 sharing data from one display screen to another display screen for display is achieved.
  • the following describes the relevant user interfaces involved when the electronic device 100 shares the destination input by the user in the navigation application across the screen.
  • Figures 6A-6G and 7A-7E are some user interfaces provided in the embodiments of the present application. Among them, Figures 6A-6G show the relevant user interfaces displayed on the display screen 1 in the electronic device 100, and Figures 7A-7E show the relevant user interfaces displayed on the display screen 2 in the electronic device 100.
  • the electronic device 100 may refer to a vehicle-mounted device
  • the display screen 1 may be a rear seat screen in the vehicle-mounted device
  • the display screen 2 may be a central control screen in the vehicle-mounted device.
  • FIG. 6A shows an exemplary user interface 10 for logging into an account displayed on the display screen 1 of the electronic device 100 .
  • the user interface 10 may include: an account selection area 101 and a create account option 102.
  • the account selection area 101 may be used to display account options corresponding to one or more accounts created or logged in by the electronic device 100.
  • the electronic device 100 may detect a user's operation on one of the account options and log in the account corresponding to the account option on the display screen 1.
  • the create account option 102 may be used to trigger account creation.
  • the account selection area 101 may include: a first account option 101A and a second account option 101B.
  • the first account option 101A is used to indicate an account 1 in the electronic device 100
  • the second account option 101B is used to indicate an account 2 in the electronic device 100 .
  • the electronic device 100 detects a user operation on the first account option 101A, such as a click operation, the response In this operation, the electronic device 100 logs in to the account 1 on the display screen 1 , and the display screen 1 can display the content from the storage space of the account 1 .
  • a user operation on the first account option 101A such as a click operation
  • the accounts created in the electronic device 100 are not limited to the account 1 and account 2 shown in FIG. 6A above, and the embodiment of the present application does not limit the number of accounts included in the electronic device 100.
  • the account 1 and account 2 can be accounts preset in the electronic device 100 in advance, or accounts created by the user, and the embodiment of the present application does not limit the way of creating the accounts of the electronic device 100.
  • the account 1 and account 2 shown in FIG. 6A may be only some of the accounts in the electronic device 100, and the account 1 and account 2 may be accounts in the electronic device 100 that can be logged in on the display screen 1.
  • the electronic device 100 also creates other accounts, such as account 3, but only account 1 and account 2 can be used to log in on the display screen 1.
  • the account 1 and account 2 may refer to accounts created by the electronic device 100 on the display screen 1, and the account 3 is an account created by the electronic device 100 on other display screens, or the account 1 and account 2 may refer to accounts in the electronic device 100 that are not logged in on the display screen, and the account 3 is an account that the electronic device 100 has logged in on other display screens.
  • the electronic device 100 may display the user interface 10 on the display screen 1 when the electronic device 100 is turned on or the display screen 1 is turned on, or the electronic device 100 may display the user interface 10 provided by the setting application through the display screen 1 when the user views the setting application through the display screen 1.
  • the embodiment of the present application does not limit the timing when the electronic device 100 displays the user interface 10 on the display screen 1.
  • FIG. 6B shows an exemplary user interface 20 for an application menu displayed on the display screen 1 of the electronic device 100.
  • the user interface 20 may be content provided by the account 1.
  • the user interface 20 may be used to display information such as weather, time, date, etc. and one or more application icons.
  • the one or more application icons may be one or more independent applications installed by the electronic device 100 in the account 1, and/or icons of one or more shared applications shared by various accounts.
  • the one or more application icons may include: a navigation icon 201.
  • the navigation icon 201 may be an icon of a navigation application installed by the electronic device 100 in the account 1. The content of the navigation application displayed on the display screen 1 of the electronic device 100 comes from the storage space of the account 1.
  • the electronic device 100 when the electronic device 100 detects a user operation on the navigation icon 201, such as a click operation, in response to the operation, the electronic device 100 opens the navigation application and displays the user interface 30 provided by the navigation application on the display screen 1 as shown in Figure 6C.
  • a user operation on the navigation icon 201 such as a click operation
  • the user interface 30 may include: a map display area 301 and a navigation bar 302.
  • the map display area 301 is used to display a map of the area where the electronic device 100 is located and the position of the electronic device 100 in the map
  • the navigation bar 302 is used to display the starting point and destination of the navigation route.
  • the electronic device 100 may detect the user's operation of inputting or changing the starting point or destination in the navigation bar 302, input the user-specified starting point or destination in the navigation bar 302, and display the navigation route from the starting point to the destination in the navigation bar 302 in the map display area 301.
  • navigation bar 302 may include: destination option 302A.
  • destination option 302A When electronic device 100 detects that destination option 302A is acted upon and a user-specified destination "Point C" is input, electronic device 100 may display the user-input destination "Point C" in destination option 302A as shown in Fig. 6D.
  • the electronic device 100 can trigger the sending of the destination "Point C" to the storage space of another account (for example, Account 2), and determine whether to display the relevant content of the destination "Point C" on the display screen of the account logged in (for example, Display screen 2) based on the permissions of the other account and the account currently logged in on the display screen 1 (that is, Account 1).
  • another account for example, Account 2
  • Display screen 2 the relevant content of the destination "Point C” on the display screen of the account logged in
  • the account currently logged in on the display screen 1 that is, Account 1).
  • the electronic device 100 can detect a drag operation on the destination option 302A. In response to the operation, the electronic device 100 can display an option bar 303 as shown in Figure 6E in the user interface 30.
  • the option bar 303 can be used to display options corresponding to other display screens in the electronic device 100 except for display screen 1.
  • the electronic device 100 may display a screenshot of the destination option 302A moving along with the drag operation.
  • the electronic device 100 may display the option bar 303 as shown in FIG. 6E upon detecting that the destination option 302A is dragged in a specified direction or to a specified area.
  • the option bar 303 may be displayed in the user interface at all times. The embodiment of the present application does not impose any restrictions on the timing of the appearance of the option bar 303.
  • the option bar 303 may include: option 303A, which corresponds to the display screen 2 in the electronic device 100.
  • option 303A which corresponds to the display screen 2 in the electronic device 100.
  • the electronic device 100 can send the data indicated by the destination option 303A, that is, the destination "point C", to the account logged in on the display screen 2 corresponding to the option 303A, so that the electronic device 100 displays the relevant content of the destination "point C" on the display screen 2.
  • the option bar 303 can also be used to display options corresponding to the account.
  • the electronic device 100 can detect the user's dragging operation on the destination option 302A to the option corresponding to one of the accounts in the option bar 303, triggering the data indicated by the destination option 302A to be sent to the account corresponding to the option.
  • the electronic device 100 can determine whether the electronic device 100 can successfully share the data by combining whether the sharing conditions are met and whether the permissions of the two accounts meet the preset requirements, etc.
  • the sharing conditions may include: account 2 has been logged in on the display screen of the electronic device 100, the navigation application has been installed in account 2, etc.
  • the permissions of the two accounts meeting the preset requirements may mean that the permissions of account 1 are higher than the permissions of account 2, etc.
  • the electronic device 100 may display a prompt message 304 as shown in FIG. 6G in the user interface 30 , where the prompt message 304 is used to prompt that the cross-screen sharing of the data has failed.
  • the prompt information 304 may include: a cancel option 304A and a switch display screen 304B.
  • the cancel option 304A may be used to cancel cross-screen sharing of data
  • the switch display screen 304B may be used to switch the target display screen for data sharing.
  • the electronic device 100 can display the relevant content of the data on the display screen where the account that successfully received the data is located.
  • the relevant content of the subsequent Figures 7C-7E please refer to the relevant content of the subsequent Figures 7C-7E, which will not be expanded here.
  • the electronic device 100 detects that the user acts on a certain content displayed in the user interface and shares it on another display screen for display, the content acted on by the user may be different from the content finally shared by the electronic device 100.
  • the content acted on by the user is the destination option 302A shown in FIG. 6E, and the data shared by the electronic device 100 is the destination "point C".
  • the content acted on by the user on the display screen is the presentation form of the content finally shared by the electronic device 100 on the interface. For example, when a user acts on a movie played online in a video playback application and shares the movie on another display screen for display, the data shared by the electronic device 100 may be the name of the movie.
  • Figures 6A-6G use the location entered by the user in the navigation application as the content shared across the screen of the electronic device 100. It should be understood that the embodiment of the present application does not limit the content shared across the screen of the electronic device 100. In other embodiments of the present application, the content shared across the screen may include various forms of content such as text, tables, pictures, documents, videos, audio, links, etc. The embodiment of the present application does not limit the data format of the content shared across the screen. In addition, in addition to sharing the content in the navigation application, the electronic device 100 can also share the content of any other application, and the embodiment of the present application does not limit this application.
  • FIG. 7A shows an exemplary user interface 40 for logging into an account displayed on the display screen 2 of the electronic device 100 .
  • the user interface 40 may include: an account selection area 401 and a create account option 402.
  • the account selection area 401 may be used to display account options corresponding to one or more accounts created or logged in by the electronic device 100.
  • the electronic device 100 may detect the user's operation on one of the account options and log in the account corresponding to the account option on the display screen 2.
  • the create account option 402 may be used to trigger the creation of an account.
  • the account selection area 401 may include: a first account option 401A and a second account option 401B.
  • the first account option 401A is used to indicate an account 1 in the electronic device 100
  • the second account option 401B is used to indicate an account 2 in the electronic device 100 .
  • the electronic device 100 when the electronic device 100 detects a user operation on the second account option 401B, for example, a click operation, in response to the operation, the electronic device 100 logs in to account 2 on the display screen 2, and the display screen 2 can display the content from the storage space of account 2.
  • a user operation on the second account option 401B for example, a click operation
  • the electronic device 100 logs in to account 2 on the display screen 2, and the display screen 2 can display the content from the storage space of account 2.
  • the user interface 40 is similar to the user interface 10 shown in FIG. 6A .
  • the relevant contents of FIG. 6A please refer to the relevant contents of FIG. 6A , which will not be repeated here.
  • FIG. 7B shows an exemplary user interface 50 for an application menu displayed on the display screen 2 of the electronic device 100.
  • the user interface 50 may be content provided by the account 2.
  • the user interface 50 may be used to display information such as weather, time, date, etc. and one or more application icons.
  • the one or more application icons may be one or more independent applications installed by the electronic device 100 in the account 2, and/or icons of one or more shared applications shared by various accounts.
  • the electronic device 100 may display a prompt message 501 as shown in FIG. 7C on the display screen 2, wherein the prompt message 501 is used to prompt the user whether to start navigation to the destination “Point C” through the navigation application on the display screen 2.
  • the electronic device 100 detects that the user sends the destination "point C" displayed on the display screen 1 to the display screen 2 for display, and the authority of the account 2 is higher than the authority of the account 1, the prompt message 501 as shown in FIG. 7C may be displayed on the display screen 2.
  • the prompt information 501 may include: a cancel option 501A and a confirmation option 501B.
  • the cancel option 501A may be used to trigger the electronic device 100 to refuse to display the relevant information of the destination “Point C” on the display screen 2
  • the confirmation option 501B may be used to trigger the electronic device 100 to determine to display the relevant information of the destination “Point C” on the display screen 2, that is, to start navigation to the destination “Point C” on the display screen 2 through the navigation application.
  • the electronic device 100 can output voice prompt information to prompt the user whether to start navigation to the destination "point C" through the navigation application on the display screen 2. In this way, in the vehicle-mounted scenario, the user can avoid being distracted from viewing the display content on the display screen 2, thereby ensuring the driving safety of the vehicle.
  • the electronic device 100 when the electronic device 100 detects a user operation acting on the determination option 501B, for example, a click operation, in response to the operation, the electronic device 100 can display the relevant information of the destination "Point C" shared by the display screen 1 on the display screen 2, that is, display the user interface 60 shown in FIG7E. Further, if the account logged in by the display screen 2 does not have a navigation application installed, then after the electronic device 100 detects the user operation acting on the determination option 501B, the electronic device 100 can change the prompt information 501 to the prompt information 502 shown in FIG7D.
  • a user operation acting on the determination option 501B for example, a click operation
  • the electronic device 100 when the electronic device 100 detects a user operation acting on the cancel option 501A, such as a click operation, in response to the operation, the electronic device 100 can close the prompt message 501 on the display screen 2. Further, the electronic device 100 can also display a prompt message 304 as shown in FIG. 6G on the display screen 1, and the prompt message 304 is used to prompt the user that the cross-screen sharing fails.
  • a user operation acting on the cancel option 501A such as a click operation
  • the electronic device 100 can also determine whether the user starts navigation to the destination "Point C" through the navigation application on the display screen 2 by detecting the user's voice commands. That is to say, the user can control the electronic device 100 through voice to adjust the display content on the display screen 2. In this way, in the in-vehicle scenario, the user can avoid being distracted from viewing or operating the display screen 2.
  • the following user operations detected by the electronic device 100 are similar and will not be repeated below.
  • prompt information 502 is used to prompt the user whether to install the navigation application, wherein prompt information 502 may include: cancel option 502A and confirm option 502B.
  • the cancel option 502A is used to trigger the electronic device 100 to refuse to install the navigation application
  • the confirm option 502B is used to trigger the electronic device 100 to confirm the installation of the navigation application.
  • the electronic device 100 may install a navigation application, and after the navigation application is installed, display the user interface 60 as shown in FIG. 7E .
  • the electronic device 100 when the electronic device 100 detects a user operation acting on the cancel option 502A, such as a click operation, in response to the operation, the electronic device 100 can close the prompt message 502 on the display screen 2. Further, the electronic device 100 can also display a prompt message 304 as shown in FIG. 6G on the display screen 1, and the prompt message 304 is used to prompt the user that the cross-screen sharing fails.
  • the electronic device 100 when the electronic device 100 detects a user operation acting on the cancel option 502A, such as a click operation, in response to the operation, the electronic device 100 can open an application installed in the account 2 that is similar to the navigation application and has a navigation function, and display the navigation route provided by the application from the current location of the electronic device 100 to point C.
  • the user interface 60 may be a user interface provided by a navigation application installed in the account (i.e., account 2) logged in on the display screen 2, and the user interface 60 may be used to display the navigation route from the current location of the electronic device 100 to point C, and navigation related information, such as the distance from the current location of the electronic device 100 to point C, and the travel time, etc.
  • the electronic device 100 may also voice-play the navigation route from the current location of the electronic device 100 to point C, and navigation related information, such as the distance from the current location of the electronic device 100 to point C, and the travel time, etc.
  • the electronic device 100 when the authority of account 2 is lower than that of account 1, when the electronic device 100 detects that the user sends the destination "point C" displayed on display screen 1 to display on display screen 2, the electronic device 100 can directly send the destination "point C" to account 2 and display the user interface 60 shown in FIG. 7E. In this way, the electronic device 100 does not need to display the prompt information 501 shown in FIG. 7C, and directly displays the navigation route to the destination "point C" on display screen 2.
  • the electronic device 100 when the electronic device 100 detects that the user sends the destination "point C" displayed on the display screen 1 to the display screen 2 for display, if the account is not logged in on the display screen 2, the electronic device 100 automatically logs in the account on the display screen 2.
  • the account can be a sub-account of the account logged in on the display screen 1, or it can be the account that was logged in most recently on the display screen 2. The embodiment of the present application does not limit this.
  • the electronic device 100 can display a prompt message on the display screen 2, prompting the user whether to log in the account on the display screen 2.
  • the display content on the display screen 2 may not be affected.
  • the user interface 50 shown in FIG. 7B may be displayed on the display screen 2.
  • the failure of the cross-screen sharing of the destination "Point C” may include: the account is not logged in on the display screen 2, the navigation application is not installed in the account logged in on the display screen 2, and the authority of the account logged in on the display screen 2 is higher than that of the account logged in on the display screen 1.
  • the permissions of the logged-in account, etc. please refer to the subsequent method flow chart, which will not be repeated here.
  • the electronic device 100 can change the destination "point A" entered on the display screen 2 to the destination "point C", or set the destination "point C" as an intermediate destination, that is, the navigation application can first display the navigation route from the current location to "point C" on the display screen 2, and then display the navigation route from "point C" to "point A", or the electronic device 100 sets "point A” as an intermediate destination and sets "point C” as the final destination, that is, the navigation application can first display the navigation route from the current location to "point A" on the display screen 2, and then display the navigation route from "point A” to "point C”.
  • the electronic device 100 when the electronic device 100 sends the content in the account 1 to the account 2 and displays the content on the display screen 2, the electronic device 100 can retain the content originally displayed on the display screen 2, or replace the content originally displayed on the display screen 2 with the content of the account 1.
  • the embodiment of the present application is not limited to this.
  • electronic device 100 can display prompt information on display screen 2, and the prompt information is used to prompt the user whether to display the content shared from display screen 1 on display screen 2.
  • electronic device 100 can directly display the content shared from display screen 1 on display screen 2, or electronic device 100 refuses to display the content shared from display screen 1 on display screen 2.
  • FIG8 shows a schematic flow chart of a cross-screen sharing method provided in an embodiment of the present application.
  • the method includes:
  • the electronic device 100 logs in to the account 1 on the display screen 1 , and displays the content from the storage space of the account 1 on the display screen 1 .
  • the electronic device 100 may include multiple display screens, which may be connected to the main body of the electronic device 100 via a wired or wireless connection.
  • Display screen 1 may refer to any one of the multiple display screens.
  • the display screen 1 may also be referred to as a first display screen, and the account 1 may also be referred to as a first account.
  • the electronic device 100 may include multiple accounts, each of which has an independent storage space, and each storage space is isolated from each other.
  • the storage space can be used to store the data of the application itself when the application is installed, as well as the data generated and changed during the operation of the application.
  • These multiple accounts can be accounts registered by the electronic device 100 or other devices. For a specific description of the account registered by the electronic device 100, please refer to the relevant content of the aforementioned step S101, which will not be repeated here.
  • the electronic device 100 may log in to the account 1 on the display screen 1 in the following two cases:
  • the electronic device 100 logs in to the account 1 on the display screen 1 based on the user operation
  • the electronic device 100 may display the user interface 10 as shown in FIG. 6A on the display screen 1 , and the electronic device 100 may detect a user operation on the first account option 101A and log in to the account 1 on the display screen 1 .
  • step S101 For a detailed description of how to log into the account of the electronic device 100, please refer to the relevant content in the aforementioned step S101, which will not be repeated here.
  • the electronic device 100 may also include a storage space shared by all accounts. In this case, in addition to displaying the contents of the storage space of the account logged in on the display screen, the electronic device 100 may also display the contents of the storage space shared by all accounts on the display screen.
  • applications installed in a storage space independent of each account may be referred to as independent applications, and applications installed in a storage space shared by all accounts may be referred to as shared applications.
  • independent applications are applications independently installed by each account. Only the display screen with the account logged in can display the content of the independent application installed from the storage space of the account, and the data generated during the operation of the independent application is also stored in the independent storage space of the account.
  • Shared applications are applications shared by each account. The content of the shared application displayed on each display screen comes from the shared storage space, and the data generated during the operation of the shared application is also stored in the shared storage space. It can be seen that the changes made by the user to the content of the independent application displayed on one display screen will not affect the content of the independent application displayed on other display screens.
  • the independent applications displayed on each display screen are independent of each other, and the changes made by the user to the content of the shared application displayed on one display screen on the other display screen will synchronously change the content of the shared application displayed on other display screens.
  • Determining whether an application in the electronic device 100 is an independent application or a shared application may include the following three situations:
  • the developer can predefine which part of the application belongs to independent applications and which part of the application belongs to shared applications. In this way, when pre-setting the system application of the electronic device 100, or when the electronic device 100 downloads an application from a third party, the developer can determine how to install the application based on the pre-division of the application, that is, whether to install the application in a storage space shared by all users or to install the application in an independent storage space of each user.
  • the electronic device 100 divides independent applications and shared applications
  • the developer can import the classification standard of the application into the electronic device 100 in advance, and the electronic device 100 can classify the application according to the classification standard.
  • the specific description of the classification standard can be found in the subsequent content, which will not be expanded here.
  • the electronic device 100 may display a prompt message to ask the user whether to install the application as an independent application or a shared application.
  • independent applications and shared applications can also be divided in combination with the above multiple situations.
  • some of the applications that come with the electronic device 100 will be pre-installed in advance.
  • the built-in applications can be pre-determined by the developer as independent applications or shared applications.
  • the applications installed on the electronic device 100 can be determined by the user who uses the electronic device 100 as independent applications or shared applications.
  • the embodiment of the present application does not limit how the electronic device 100 divides independent applications and shared applications.
  • the classification criteria for independent applications and shared applications can include the following three:
  • each storage space is isolated from each other, and the data in the storage spaces of different accounts cannot be accessed by each other, shared applications are installed in the storage space shared by each account, and each account can access the storage space. Therefore, the independent storage space of each account can be used to store the data of independent applications with private data, and the storage space shared by each account can be used to store the data of shared applications without private data.
  • privacy data may refer to the user's personal information, which is inconvenient to share with others.
  • it may include personal browsing history, playback history, personal data, identity information, etc.
  • Third-party applications are applications that users need to obtain from application markets, web pages, and other channels when using electronic device 100. Users can choose the applications they want to install based on their own needs and preferences.
  • System applications are applications pre-installed on electronic device 100, such as phone, text messages, settings, and other applications.
  • determining the installation location of an application based on whether the application is an application that the user chooses to install based on their own needs can not only meet the usage and entertainment needs of each user, but also ensure that the use of the application by each user will not affect each other.
  • the electronic device can also display the functions of some basic applications on each display screen by itself, reducing the trouble of users installing these basic applications and improving the convenience of users controlling electronic devices.
  • Independent applications are applications that do not need to run for a long time
  • shared applications are applications that need to run for a long time.
  • the electronic device 100 Since the electronic device 100 includes multiple display screens, different users can view their installed applications through different display screens. At this time, it is easy for multiple applications to concurrently run data, resulting in more system resources being occupied at the same time, greatly affecting the performance of the device. Therefore, for applications that need to run for a long time, such as desktop, systemUI, etc., the electronic device 100 can be installed only once and installed in the storage space shared by each account.
  • each display screen display the content of the application, but at the same time, the application is displayed on multiple displays through only one process, reducing the concurrent data of the application displayed on each display screen in the multi-screen display scenario, reducing the consumption of system resources, speeding up the efficiency of system operations, and improving the performance of the device.
  • independent applications and shared applications are not limited to the above three.
  • independent applications and shared applications can be determined according to any splitting and combination of the above three classification criteria.
  • an independent application can be a third-party application involving privacy data
  • a shared application can be an application that does not involve privacy data and needs to run for a long time.
  • an independent application can be a third-party application that does not need to run for a long time
  • a shared application can be a system application that does not involve applications and needs to run for a long time.
  • the embodiments of the present application do not limit the definition of independent applications and shared applications.
  • the electronic device 100 installs an application specifically including: creating a file directory of the application in the storage space, copying and decompressing the installation package of the application into the file directory, and creating a data directory in the storage space for storing data generated during the running of the application.
  • the electronic device 100 when the electronic device 100 installs application 1 as an independent application on the display screen 1 logged in by account 1, the electronic device 100 installs the application 1 in the storage space of the account 1, that is, creates a file directory and a data directory of the application 1 in the storage space of the account 1, and copies and decompresses the installation package of the application 1 into the file directory; when the electronic device 100 installs application 1 as a shared application on the display screen 1, the electronic device 100 installs the application 1 in the shared storage space, that is, creates a file directory and a data directory of the application 1 in the shared storage space, and copies and decompresses the installation package of the application 1 into the file directory.
  • the electronic device 100 can obtain the application only once.
  • the installation package of an independent application is used to install the independent application multiple times, so that different accounts can install the same independent application.
  • the electronic device 100 can set an application identifier of the independent application, such as an index, and use the application identifier to distinguish the same independent application installed by the electronic device 100 in different storage spaces. In this way, for installing applications on multi-screen devices, the application developer does not need to adapt the application and provide multiple installation packages of the application so that the application can be installed multiple times on the multi-screen device.
  • the electronic device 100 can provide an application identifier on its own to distinguish the application that has been installed multiple times, reducing the difficulty of ecological promotion of multi-screen devices.
  • the electronic device 100 installs an independent application on the display screen, which may include the following two situations:
  • the electronic device 100 detects an operation of installing the independent application on a display screen, and installs the independent application in the storage spaces of multiple accounts respectively.
  • the electronic device 100 detects the operation of installing the independent application on one display screen, which can trigger the installation of the independent application on multiple display screens. For example, in a car-mounted scenario, the electronic device 100 detects the operation of installing a music application on the central control screen. In response to the operation, the electronic device 100 installs the music application on the central control screen, the co-pilot screen, and the rear seat screen. In this way, the user only needs to perform the operation of installing the application once to complete multiple installations of the application and use the application on multiple display screens, which improves the convenience of application installation.
  • the electronic device 100 when the electronic device 100 detects the operation of installing the independent application on a display screen, it can trigger the installation of the independent application on all display screens with logged-in accounts.
  • the multiple accounts are some of the accounts selected based on account permissions
  • the electronic device 100 can control the cross-screen sharing of content by the electronic device 100 according to the level of permissions. For example, an account with low permissions cannot share content across the screen to an account with low permissions, and an account with high permissions can share content across the screen to an account with high permissions.
  • an account with low permissions cannot share content across the screen to an account with low permissions
  • an account with high permissions can share content across the screen to an account with high permissions.
  • permissions and cross-screen sharing based on permissions please refer to the subsequent content, which will not be expanded here.
  • electronic device 100 has created account 1 and account 2, and the authority of account 1 is higher than that of account 2.
  • the account with higher authority is allowed to install all types of applications, and the account with lower authority is prohibited from installing game applications.
  • electronic device 100 detects the operation of installing a game application on the account logged in with account 1, electronic device 100 installs the game application in the storage space of account 1, and does not install it in the storage space of account 2.
  • the multiple accounts are accounts selected by the user
  • the electronic device 100 can display a prompt message to prompt the user to select an account that is allowed to install the application.
  • the electronic device 100 detects the operation of installing the independent application on a display screen, and only installs the independent application in the storage space of the account logged in on the display screen
  • each display screen is independent of each other.
  • the electronic device 100 only performs the installation of the independent application on the display screen 1.
  • each display screen is equivalent to an independent device, and the user installs different applications on different display screens to meet the usage and entertainment needs of users using different display screens.
  • the permissions of an account can be used to indicate the account's ability to install and uninstall applications, use functions and applications, access resources, etc. The higher the permissions, the stronger the account's ability to do so.
  • the electronic device 100 can control cross-screen sharing of content based on account permissions, wherein a high-authority account can directly share content with a low-authority account, and an account with the same authority or a low-authority account needs to ask the user before cross-screen sharing with a high-authority account, or cross-screen sharing of content is impossible.
  • the electronic device 100 can also control the functions that the user can use on the display screen according to the authority of the account.
  • the display screen where the account with high authority is located allows the user to uninstall applications and modify settings, while the display screen where the account with low authority is located does not allow the user to uninstall applications and modify settings, etc.
  • the display screen where the account with high authority is located allows the user to install any type of application, while the display screen where the account with low authority is located does not allow the user to install game applications, etc.
  • the electronic device 100 can set permissions for different accounts in the following two ways:
  • the electronic device 100 sets permissions for different accounts based on the display screen where the account is located
  • the electronic device 100 may set permissions for an account logged into the display screen based on parameters such as the position, size, performance, and properties of the display screen.
  • the electronic device 100 is a vehicle-mounted device, which may include multiple display screens such as a central control screen, a co-pilot screen, and a rear seat screen.
  • the account logged in to the central control screen has the greatest authority
  • the account logged in to the rear seat screen has the least authority.
  • the electronic device 100 sets the account permissions according to the account type
  • the electronic device 100 may provide multiple types of accounts, and different types of accounts have different permissions.
  • the type of account may be determined according to the order in which the account is created or logged in or the user's choice.
  • different account types can be divided according to the user's role, for example, the account types can be divided into: parent account, child account, etc., and the parent account has greater authority than the child account.
  • the account types can be divided into: machine owner account, machine owner authorized account, guest account, etc., where the machine owner account has greater authority than the machine owner authorized account, which is greater than the guest account.
  • the electronic device 100 detects on the display screen 1 an operation of sharing data A to the display screen 2 for display.
  • the data A may come from the storage space of account 1, and the data A may refer to data in the form of text, pictures, tables, videos, audios, documents, links, etc.
  • the embodiment of the present application does not limit the presentation form of the data A.
  • the data A may be content provided by application A. Specifically, the data A may be data input for starting a function provided by application A when the electronic device 100 displays application A on the display screen 1, or the data A may be data provided by application A when the electronic device 100 displays application A on the display screen 1.
  • Application A is an independent application or a shared application installed in account 1.
  • the electronic device 100 may display data A or information indicating data A on the display screen 1, detect an operation (e.g., a first operation) by a user to share data A to the display screen 2, and in response to the operation, the electronic device 100 obtains the data A and uses the data A as content that the account 1 needs to share with the account 2.
  • the data A may also be referred to as the first content
  • the display screen 2 may also be referred to as the second display screen.
  • the first content may refer to the destination option 302A shown in Figure 6E
  • the data A may refer to the destination "Point C" corresponding to the destination option 302A
  • the application A may refer to the navigation application
  • the operation may refer to the operation of the user acting on the destination option 302A to confirm the input of the destination "Point C" as shown in Figures 6C-6D, or it may refer to the operation of acting on the destination option 302A and dragging it to option 303A as shown in Figures 6E-6F.
  • the data A may also come from a storage space shared by all accounts in the electronic device 100.
  • the electronic device 100 when the electronic device 100 finally determines to share the data A across screens, the electronic device 100 does not need to share the data A across accounts, and can also share the content displayed on one display screen to another display screen when sharing across screens.
  • the electronic device 100 determines whether the display screen 2 meets the main conditions.
  • the main condition includes one or more of the following: an account is logged in on the display screen 2, a designated application is installed in the account logged in on the display screen 2, the authority of the account logged in on the display screen 2 is lower than the authority of the account 1, etc.
  • the designated application may refer to an application used to display the data A, and the application may refer to the application to which the data A belongs when the display screen 1 displays the data A, that is, the application A mentioned in step S302, or may refer to an application of the same type or having the same function as the application A.
  • the electronic device 100 determines that the display screen 2 does not meet the main condition, the electronic device 100 refuses to share the data A on the display screen 2 for display, or the electronic device 100 executes step S304.
  • the electronic device 100 determines that the display screen 2 meets the main condition, the electronic device 100 executes step S306.
  • the electronic device 100 can perform step S306 when it is determined that an account is logged in on the display screen 2, that is, share data A to the storage space of the account logged in on the display screen 2, and display the data A on the display screen 2.
  • step S306 when it is determined that an account is logged in on the display screen 2, that is, share data A to the storage space of the account logged in on the display screen 2, and display the data A on the display screen 2.
  • the electronic device 100 can perform step S306 when it is determined that the account logged in on the display screen 2 has a designated application installed, that is, share data A to the storage space of the account logged in on the display screen 2, and display the data A on the display screen 2.
  • the designated application can refer to a video player.
  • the electronic device 100 can send the video to the storage space of the account logged in on the display screen 2, and play the video on the display screen through the video player installed in the account 2. In this way, it can be ensured that the display screen 2 can better display the data A, so that the effect of the electronic device 100 displaying the data A on the display screen 2 is close to the effect of displaying the data A on the display screen 1.
  • the electronic device 100 can perform step S306 when it is determined that the authority of the account logged in on display screen 2 is lower than that of account 1, that is, share data A to the storage space of the account logged in on display screen 2, and display the data A on display screen 2.
  • step S306 when it is determined that the authority of the account logged in on display screen 2 is lower than that of account 1, that is, share data A to the storage space of the account logged in on display screen 2, and display the data A on display screen 2.
  • the content shared across screens in a multi-screen device can be managed by the authority of the account, so that accounts that do not meet the authority requirements cannot directly realize cross-screen sharing of content.
  • the main conditions include: an account is logged in on display screen 2, a specified application is installed in the account logged in on display screen 2, and the authority of the account logged in on display screen 2 is lower than the authority of account 1, the electronic device 100 needs to determine that an account is logged in on display screen 2, a specified application is installed in the account, and the authority of the account is lower than the authority of account 1 before executing step S306, that is, sharing data A to the storage space of the account logged in on display screen 2 and displaying the data A on display screen 2.
  • the main condition may also include other contents, for example, the main condition may also include: a specified application is displayed on the display screen 2, so that when the electronic device 100 determines that the specified application is displayed on the display screen 2, the data A may be shared to be displayed on the display screen 2.
  • the embodiment of the present application does not limit the main condition.
  • the electronic device 100 when the data A is content provided by a shared application installed in the electronic device 100, the electronic device 100 does not need to determine whether the specified application is installed in the account logged in on the display screen 2. This is because the shared application is an application shared by all accounts and is installed in a storage space shared by all accounts.
  • the electronic device 100 detects that the data A provided by the application A displayed on the display screen 1 is shared to the display screen 2, if the electronic device 100 determines to share it to the display screen 2, the electronic device 100 can provide the data A through the application A displayed on the display screen 2.
  • the account logged in on the display screen can also be referred to as the second account.
  • the electronic device 100 adjusts the relevant configuration of the display screen 2.
  • the relevant configuration of the display screen 2 can be further adjusted, so that the electronic device 100 can display the data A on the display screen 2.
  • the electronic device 100 adjusting the relevant configuration of the display screen 2 may include one or more of the following: logging in to an account on the display screen 2, installing a specified application in the account logged in on the display screen 2, switching the account logged in on the display screen 2, etc.
  • the electronic device 100 adjusts the configuration of the display screen 2 in the following two cases:
  • the electronic device 100 can automatically adjust the relevant configuration of the display screen 2 so that the display screen 2 can meet the main condition.
  • the electronic device 100 outputs prompt information and adjusts the relevant configuration of the display screen 2 according to the user's selection
  • the electronic device 100 outputting the prompt information may refer to the electronic device 100 displaying the prompt information on the display screen 2 to prompt the user to adjust the relevant configuration of the display screen 2.
  • the electronic device 100 can adjust the relevant configuration of the display screen 2 based on the user operation so that the display screen 2 can meet the main condition.
  • the electronic device 100 when the main condition is that an account is logged in on the display screen 2, when the electronic device 100 determines that no account is logged in on the display screen 2, the electronic device 100 can automatically log in the account on the display screen 2, or output a prompt message and log in the account on the display screen 2 according to the user's choice (such as the fourth operation).
  • the electronic device 100 when the main condition is that the specified application is installed in the account logged in on the display screen 2, when the electronic device 100 determines that the specified application is not installed in the account logged in on the display screen 2, the electronic device 100 can automatically install the specified application in the account, or output a prompt message and install the application in the account according to the user's choice (for example, the fifth operation).
  • the electronic device 100 when the main condition is that the authority of the account logged in on display screen 2 is lower than the authority of account 1, when the electronic device 100 determines that the authority of the account logged in on display screen 2 is not lower than the authority of account 1, the electronic device 100 can automatically switch the account logged in on display screen 2, or output a prompt message to switch the account logged in on display screen 2 according to the user's choice.
  • the electronic device 100 can automatically or based on the user's choice log in or switch accounts on display screen 2 and install the application in the account logged in on display screen 2 if it is determined that display screen 2 does not meet the main conditions.
  • step S304 is an optional step, and the electronic device 100 may not adjust the relevant configuration of the display screen 2.
  • the electronic device 100 may determine whether the display screen 2 meets the secondary condition when determining that the display screen 2 does not meet the primary condition.
  • the electronic device 100 determines whether the display screen 2 meets the secondary condition.
  • the electronic device 100 may determine whether the display screen 2 meets the secondary condition when determining that the display screen 2 does not meet the primary condition, or the electronic device 100 may determine whether the display screen 2 meets the secondary condition after adjusting the relevant configuration of the display screen 2.
  • step S306 the electronic device 100 executes step S306 , otherwise the electronic device 100 refuses to share the data A across screens.
  • the secondary condition may be equal to the primary condition or may be different from the primary condition.
  • the electronic device 100 when the secondary condition is equal to the primary condition, the electronic device 100 will share the data A on the display screen 2 for display only when the display screen 2 meets the primary condition.
  • the secondary condition may not be equal to the primary condition.
  • the electronic device 100 may further share the data A on the display screen 2 for display when the display screen 2 meets the secondary condition.
  • the secondary condition may refer to receiving the user's consent to display the data A on the display screen 2 when the display screen 2 does not meet the primary condition. That is, even if the display screen 2 does not meet the primary condition, or, further, after the electronic device 100 adjusts the relevant configuration of the display screen 2 and still does not meet the primary condition, the electronic device 100 may display the data A on the display screen 2 after obtaining the user's consent. In this way, the user's participation in the cross-screen data sharing process can be enhanced.
  • the electronic device 100 determines that the display screen 2 satisfies the secondary condition, the electronic device 100 executes step S306. That is, in the case where the authority of the account logged in on the display screen 2 is higher than or equal to the authority of the account 1, if the user agrees to display the data A on the display screen 2 (for example, the second operation), the electronic device 100 may also send the data A from the account 1 to the account 2 and display the data A on the display screen 2. Otherwise, if the user refuses to display the data A on the display screen 2 (for example, the third operation), the electronic device 100 refuses cross-screen sharing.
  • the electronic device 100 can output a prompt message to prompt the user whether to display the data A on the display screen 2.
  • the electronic device 100 detects that the user agrees to display the data A on the display screen 2, the electronic device 100 can display the data A on the display screen 2.
  • the electronic device 100 can also realize the cross-screen sharing of the data A with the permission of the user, thereby enhancing the user's control over the cross-screen shared data.
  • Figure 7C shows that when the authority of account 2 logged in on display screen 2 is higher than the authority logged in on display screen 1, prompt information 501 displayed on display screen 2 by electronic device 100, and prompt information 501 is used to prompt the user whether to display the navigation route to the destination "Point C" shared on display screen 1 on display screen 2.
  • the electronic device 100 determines that the display screen 2 meets the secondary condition, the electronic device 100 executes step S306. That is, if the designated application is not installed in the account logged in on the display screen 2, if the user agrees to display data A on the display screen 2, the electronic device 100 may also send data A from account 1 to account 2 and display the data A on the display screen 2.
  • the electronic device 100 sends the data A to the storage space of the account 2 logged in on the display screen 2 , and displays the data A on the display screen 2 .
  • the electronic device 100 can send the data A to the storage space of the account logged in to the display screen 2, and display the data A through the display screen 2.
  • the electronic device 100 can also display content obtained based on the data A.
  • the content can be content obtained by the electronic device 100 in further response based on the data A, that is, content used to indicate the data A.
  • the electronic device 100 can display the text on the display screen 2; when the data A is a picture, the content displayed by the electronic device 100 on the display screen 2 can be a thumbnail of the picture; when the data A is a link, the content displayed by the electronic device 100 on the display screen 2 can be the content of the web page indicated by the link.
  • the electronic device 100 can display the content obtained according to the application A provided by the application on the display screen 2 through the application installed in the account 2.
  • the electronic device 100 can display the user interface of the application on the display screen 2, and the user interface includes the data A or includes content indicating the data A.
  • the data A may refer to a location “Point C”
  • the electronic device 100 may display on the display screen 2 a navigation route from the current location of the electronic device 100 to the location “Point C” as shown in FIG. 7E .
  • the electronic device 100 can also output voice prompts, vibrations, etc. related to the data A.
  • the cross-screen sharing method realizes that when an electronic device needs to share data across screens, it can determine whether to share data across screens based on the relevant information of the account logged in on the display screen, such as the account's permissions, the applications installed in the account, etc., or whether the user's authorization is required to complete the cross-screen sharing of data. In this way, the electronic device can share data across screens only when the preset conditions are met. Only sub-devices can realize cross-screen sharing of data, which strengthens the control of electronic devices over cross-screen shared data.
  • each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software.
  • the method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
  • the present application also provides an electronic device, which may include: a memory and a processor.
  • the memory may be used to store a computer program; the processor may be used to call the computer program in the memory, so that the electronic device executes the method executed by the electronic device 100 in any of the above embodiments.
  • the present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method performed by the electronic device 100 in any of the above embodiments.
  • the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
  • the chip system may be composed of the chip, or may include the chip and other discrete devices.
  • the processor in the chip system may be one or more.
  • the processor may be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, etc.
  • the processor may be a general-purpose processor implemented by reading software code stored in a memory.
  • the memory in the chip system may also be one or more.
  • the memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application.
  • the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively.
  • the embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
  • the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit
  • NP network processor
  • DSP digital signal processor
  • MCU microcontroller unit
  • PLD programmable logic device
  • the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute any method executed by the electronic device 100 in any of the above embodiments.
  • a computer program also referred to as code, or instruction
  • the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction).
  • a computer program also referred to as code or instruction.
  • the computer program executes any method executed by the electronic device 100 in any of the above embodiments.
  • the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities.
  • each step of the above method embodiment can be completed by the hardware integrated logic circuit in the processor or the instruction in the form of software.
  • the above processor can be a general processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general processor can be a microprocessor or the processor can also be any conventional processor.
  • the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • an embodiment of the present application further provides a device.
  • the device may be a component or a module, and the device may include one or more processors and a memory connected to each other.
  • the memory is used to store a computer program.
  • the computer program is executed by one or more processors, the device executes the method in each of the above method embodiments.
  • the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
  • all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof.
  • the computer program When the computer program is loaded and executed on a computer, the process or function described in the present application is generated in whole or in part.
  • the computer program may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instruction may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated.
  • the available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
  • the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed, it can include the processes of the above-mentioned method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Abstract

本申请公开了跨屏分享方法、图形界面及相关装置,该方法涉及包含多个显示屏的电子设备,在该方法中,不同的显示屏上可以登陆不同的账号,在电子设备检测到将一个显示屏上的内容分享到另一个显示屏上时,电子设备可以根据这两个显示屏上登陆的账号权限高低,来确定是否进行分享,或是否询问用户,并在用户的同意下进行分享。这样,避免了电子设备直接将一个显示屏上的内容分享到另一个显示屏上进行显示,实现了基于权限来管理不同显示屏之间分享的内容,加强电子设备对跨屏分享的内容的管控。

Description

跨屏分享方法、图形界面及相关装置
本申请要求在2022年10月12日提交中国国家知识产权局、申请号为202211249885.X的中国专利申请的优先权,发明名称为“跨屏分享方法、图形界面及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端及通信技术领域,尤其涉及跨屏分享方法、图形界面及相关装置。
背景技术
随着计算机技术的不断发展,越来越多的电子产品,例如,手机、平板、电脑等等设备逐渐走入大众的生活。
现今,一个设备可以配备有多个显示屏,这多个显示屏可以同时显示,提升设备的使用率。例如,在开展会议时,可以在多个显示屏上展示会议内容,以便处在不同位置的参会者可以通过不同的显示屏查看会议内容;又例如,在居家场景中,可以在不同的显示屏上显示不同家庭成员所需的内容,同时满足不同家庭成员的娱乐需求;又例如,在车载场景中,可以在车内不同位置安装显示屏,为处在不同座位上的车内成员提供娱乐服务。
发明内容
本申请提供了跨屏分享方法、图形界面及相关装置,实现了基于权限来管理电子设备的多个显示屏之间分享的内容。
第一方面,本申请提供了一种跨屏分享方法,该方法应用于包含第一显示屏和第二显示屏的电子设备,该方法包括:电子设备在第一显示屏上登陆第一账号;电子设备在第一显示屏上显示第一内容或第一内容的指示信息;电子设备检测到将第一内容分享到第二显示屏的第一操作,第二显示屏上登陆有第二账号;在第一账号的权限高于第二账号的权限的情况下,电子设备在第二显示屏上显示第一内容或根据第一内容得到的第二内容。
实施第一方面提供的方法,电子设备可以在不同的显示屏上登陆不同的账号,并在检测到用户将一个显示屏上显示的内容分享到另一个显示屏上进行显示的操作时,如果前一个显示屏上登陆的账号的权限高于后一个显示屏上登陆的账号的权限,则电子设备可以实现将前一个显示屏上的显示内容分享到后一个显示屏上,实现了电子设备能够基于权限来管控跨屏分享的内容,加强了电子设备对跨屏分享的内容的管控。
结合第一方面,在一种实施方式中,在第一账号的权限低于或等于第二账号的权限的情况下,该方法还包括:电子设备拒绝响应第一操作;或者,电子设备输出第一提示信息,第一提示信息用于提示用户将第一内容分享到第二显示屏;电子设备接收到同意分享的第二操作,在第二显示屏上显示第一内容或根据第一内容得到的第二内容,或者,电子设备接收到拒绝分享的第三操作,拒绝响应第一操作。
也就是说,在电子设备检测到用户将一个显示屏上显示的内容分享到另一个显示屏上进行显示的操作时,如果前一个显示屏上登陆的账号的权限低于后一个显示屏上登陆的账号的权限,则电子设备跨屏分享失败,或者,电子设备输出提示信息,根据用户的选择来确定是否进行跨屏分享。
这样,电子设备可以基于跨屏分享中,两个显示屏上登陆的账号的权限高低,来确定是否进行内容的跨屏分享,或者,是否需要用户介入,来决定是否进行内容的跨屏分享,加强了用户在跨屏分享中的参与感。
结合第一方面,在一种实施方式中,第一内容分享到第二显示屏的第一操作之前,第二显示屏上未登陆账号,电子设备检测到将第一内容分享到第二显示屏的第一操作之后,该方法还包括:电子设备自动在第二显示屏上登陆第二账号,或者,电子设备接收到第四操作,在第二显示屏上登陆第二账号。
在电子设备检测到将一个显示屏上的显示内容分享到另一个显示屏上进行显示的操作之后,如果后一个显示屏上未登录账号,则电子设备可以自动在该显示屏上登陆账号,或者,在用户的操作下,完成该显示屏上账号的登陆。这样,可以保证显示屏只有在登陆账号的前提下才能够实现跨屏分享,并且为用户实现跨屏分享提供便捷。
结合第一方面,在一种实施方式中,第一操作包括:作用于第一显示屏上显示的,用于指示第二显示屏的选项的用户操作。
也就是说,在用户触发跨屏分享时,用户可以通过选择显示屏上显示的目标显示屏所对应的选项,来确定跨屏分享的目标显示屏。
结合第一方面,在一种实施方式中,第一账号对应电子设备中的第一存储空间,第二账号对应电子设备中的第二存储空间,第一存储空间和第二存储空间相互隔离。
不同账号对应不同的存储空间,且各存储空间相互隔离,这样可以保证各账号的内容相互独立。
结合第一方面,在一种实施方式中,电子设备在第二显示屏上显示第一内容或第二内容之前,第一内容位于第一存储空间中,电子设备在第二显示屏上显示根据第一内容得到的第二内容之前,该方法还包括:电子设备将第一内容发送到第二存储空间中。
电子设备实现内容的跨屏分享,可以具体实现为将一个显示屏上登陆的账号的存储空间中的内容,分享到另一个显示屏登陆的账号的存储空间中。这样,电子设备在后一个显示屏上显示跨屏分享的内容时,可以从后一个显示屏登陆的账号的存储空间中获取该内容并显示在显示屏上。
结合第一方面,在一种实施方式中,第一内容由第一应用提供,电子设备在第二显示屏上显示第一内容或第二内容,具体包括:电子设备在第二显示屏上显示第二应用提供的第一内容或第二内容,第二应用与第一应用为同一应用,或者,同一类型的应用。
也就是说,电子设备在将一个显示屏上显示的某一应用的内容,跨屏分享到另一个显示屏上时,可以在后一个显示屏上通过相同的应用或同一类型的应用,展示跨屏分享的内容,从而更好的展示跨屏分享的内容。例如,假设电子设备将显示屏1上用户在导航应用中输入的目的地分享到显示屏2时,电子设备可以在显示屏2上通过该相同的导航应用或同样提供导航功能的其他导航应用,展示该目的地或到该目的地的导航路线,使用户能够在显示屏2上查看到在显示屏1上展示该目的地的相同的展示效果。
结合第一方面,在一种实施方式中,第一应用来源于第一账号,第二应用来源于第二账号,进一步,第一应用来源于第一账号的存储空间,第二应用来源于第二账号的存储空间。
也就是说,第一应用和第二应用可以为独立应用,电子设备在显示屏上显示的应用内容可以来源于该显示屏上登陆的账号的存储空间,这样,各个显示屏相当于各个独立的设备,多个用户可以同时独立操控不同的显示屏,更大限度地开发了包含多个显示屏的设备的使用率,从而同时满足多个用户的使用和娱乐需求。
结合第一方面,在一种实施方式中,第一应用或第二应用属于以下一项或多项:涉及隐私数据的应用,第三方应用,不需要长时间运行的应用。
第一应用或第二应用属于涉及隐私数据的应用,由于不同账号的存储空间相互隔离,可以避免用户在通过该电子设备使用应用时,其输入的隐私数据被其他用户窃取,保障隐私数据的安全。
第一应用或第二应用属于第三方应用,由于不同账号的存储空间相互隔离,不同用户可以在操纵显示屏时,根据自己的需求喜好来安装所需的应用,各个用户在不同显示屏上安装的应用互不影响。
第一应用或第二应用属于不需要长时间运行的应用,由于不同账号的存储空间相互隔离,不同账号下运行的应用互不影响。
结合第一方面,在一种实施方式中,电子设备在第二显示屏上显示第二应用提供的第一内容或第二内容之前,该方法还包括:电子设备自动将第二应用安装在第二账号的存储空间中,或者,电子设备接收到第五操作,将第二应用安装在第二账号的存储空间中。
也就是说,在电子设备将一个显示屏上的显示内容分享到另一个显示屏上时,电子设备可以自动在后一个显示屏登陆的账号中,安装用于显示该显示内容或该显示内容的相关内容的应用程序,或者,在用户的操作下,在后一个显示屏登陆的账号中,安装用于显示该显示内容或该显示内容的相关内容的应用程序,便捷用户的操作,为用户提供更加智能化的跨屏分享体验。
结合第一方面,在一种实施方式中,第一内容和第二内容位于第一账号和第二账号共享的第三存储空间。
也就是说,电子设备跨屏分享的内容可以位于多个账号共享的存储空间中,电子设备可以实现基于账号权限的,多个账号的共享内容的跨屏分享。
结合第一方面,在一种实施方式中,第一内容和第二内容均由第三存储空间中安装的共享应用提供。
结合第一方面,在一种实施方式中,共享应用属于以下任意一项或多项:不涉及隐私数据的应用,系统应用,需要长时间运行的应用。
由于不同账号都能够访问该共享的存储空间中的内容,第一应用或第二应用属于不涉及隐私数据的应用,则无需担心数据是否会被其他用户窃取,而造成用户的隐私数据泄露;第一应用或第二应用属于系统应用,减少了用户预置账号中部分必须的应用的麻烦,提高了用户操控电子设备的便利性;第一应用或第二应用属于长时间运行的应用,可以减少多屏显示的场景下,各个显示屏上显示的该应用并发的数据,降低了系统资源的消耗,加快了系统运算的效率,提升了设备的性能。
结合第一方面,在一种实施方式中,第一内容包括以下一项或多项:文字、图片、视频、音频、链接、文件、表格。
结合第一方面,在一种实施方式中,电子设备包括一个系统级芯片,多个账号对应的存储空间的运行由一个系统级芯片支持。
该电子设备可以为“一芯多屏”设备,该电子设备所有显示屏的显示由一个系统级芯片驱动,电子设备中的所有运算处理过程由该一个系统级芯片支撑。
结合第一方面,在一种实施方式中,第一账号的权限和第二账号的权限由电子设备自动确定或基于用户的操作确定。
结合第一方面,在一种实施方式中,第一账号为:机主账号,第二账号为:访客账号或机主授权账号,第一账号的权限高于第二账号的权限;或者,第一账号为:机主授权账号,第二账号为:访客账号,第一账号的权限高于第二账号的权限;或者,第一显示屏为:中控屏,第二显示屏为:副驾屏、后座屏,第一显示屏上登陆的第一账号的权限高于第二显示屏上登陆的第二账号的权限。
第二方面,本申请实施例提供了一种电子设备,其特征在于,包括多个显示屏,存储器,一个或多个处理器,以及一个或多个程序;一个或多个处理器在执行一个或多个程序时,使得电子设备执行如第一方面或第一方面的任意一种实施方式所描述的方法。
第三方面,本申请实施例提供了一种计算机可读存储介质,包括指令,其特征在于,当指令在电子设备上运行时,使得电子设备执行如第一方面或第一方面的任意一种实施方式所描述的方法。
第四方面,本申请实施例提供了一种计算机程序产品,其特征在于,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面或第一方面的任意一种实施方式所描述的方法。
附图说明
图1为本申请实施例提供的一种车载设备的多个显示屏在车内的布局示意图;
图2为本申请实施例提供的一种家庭场景下多个显示屏在室内的布局示意图;
图3A为本申请实施例提供的电子设备100的硬件结构示意图;
图3B为本申请实施例提供的电子设备100的软件结构示意图;
图4为本申请实施例提供的电子设备100在进行跨屏分享时,涉及到的一种内部交互流程图;
图5为本申请实施例提供的电子设备100在进行跨屏分享时,涉及到的另一种内部交互流程图;
图6A-图6G、图7A-图7E为本申请实施例提供的一些用户界面;
图8为本申请实施例提供的跨屏分享方法的流程示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电 子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
本申请实施例提供了一种跨屏分享方法,该方法应用在包含多个显示屏的电子设备,在该方法中,电子设备可以在不同的显示屏上登录不同的账号,访问该账号对应的存储空间,并在显示屏上显示来自该显示屏上登录的账号所对应的存储空间中的内容。其中,电子设备可以在显示屏1上登录账号1,在显示屏2上登录账号2,不同账号的权限不同,在电子设备检测到用户将显示屏1上的内容分享到显示屏2上进行显示的操作时,电子设备可以基于账号1和账号2的权限,来判断账号2是否接收该内容并在显示屏2上显示该内容。
其中,当账号1的权限高于账号2的权限时,电子设备可以直接将该内容分享到显示屏2上进行显示,当账号1的权限等于或低于账号2的权限时,电子设备可以在接收到作用于显示屏2上同意显示该内容的操作后,将该内容分享到显示屏2上进行显示,或者,电子设备拒绝在显示屏2上显示该内容。具体关于账号的权限的描述可以参见后续方法流程,这里先不展开。
可以看出,电子设备能够在不同的显示屏上基于账号显示不同的内容,各显示屏上的显示内容相互独立,这样,各个显示屏相当于各个独立的设备,多个用户可以同时独立操控各个显示屏,更大限度地开发了包含多个显示屏的设备的使用率,从而同时满足多个用户的使用和娱乐需求。另外,电子设备可以实现内容的跨屏分享,又加强了不同显示屏之间的关联互动,使操控不同显示屏的用户又能够基于显示屏进行沟通交流,并且,在电子设备上进行内容的跨屏分享时,可以基于不同显示屏上登录的账号的权限,来确定如何执行跨屏显示,使电子设备只有在满足指定条件的情况下,才能够实现内容的跨屏分享,避免了电子设备直接将一个显示屏上的内容分享到另一个显示屏上进行显示。这样,实现了基于权限来管理不同显示屏之间分享的内容,加强了电子设备对跨屏分享的内容的管控。
下面介绍本申请实施例提供的几种应用场景。
场景1:车载场景
在车载场景中,该包含多个显示屏的电子设备可以是指车内的车载设备,该车载设备可以包括:中控屏、副驾屏、后座屏、抬显屏等多个显示屏。另外,车载设备还可以包括智能座舱处理器,该智能座舱处理器用于控制和管理这多个显示屏的显示。示例性地,该智能座舱处理器可以位于中控屏的内部。
图1为本申请实施例提供的一种车载设备的多个显示屏在车内的布局示意图。
如图1所示,车载设备可以包括中控屏、副驾屏、抬显屏、后座屏1、后座屏2这多个显示屏。其中,中控屏可以位于前排驾驶座面向的工作台的中间,可用于显示倒车影像、导航界面以及提供看剧听歌等等娱乐服务,抬显屏可以位于主驾驶座面向的工作台的前方,可用于显示车速、发动机转速、剩余燃油量、导航等等重要的行驶信息,副驾屏可以位于副驾驶座面向的工作台的前方,用于为副驾乘客提供娱乐服务,后座屏1和后座屏2可以位于后座的前方,例如图1所示的安装在前排驾驶座的头枕后部,用于为后座乘客提供娱乐服务。
结合图1所示的车载设备,在车载场景中,用户可以在该车载设备中的各显示屏上登录不同的账号,各显示屏可以基于账号进行独立显示,各显示屏上显示的内容相互独立。进一步地,车载设备可以检测到用户将一个显示屏上的内容分享到另一个显示屏进行显示的操作,通过比较这两个显示屏上登陆的账号的权限,来确定是否直接将该内容分享到另一个显示屏上显示。
例如,假设中控屏上登录的账号的权限高于后座屏1上登录的账号的权限。后座屏1上可用于显示导航应用的内容,车载设备可以将乘客在后座屏1上输入的地点A发送给中控屏上显示,在车载设备检测到司机同意接收该地点A的操作后,中控屏可以直接显示导航应用提供的从当前位置到地点A的行驶路线,这样,在打车过程中,避免了司机向乘客询问目的地的麻烦,同时也避免了司机在开车过程中分散注意力去查询导航路线,提高了车辆行驶过程中的安全性。之后,在车辆行驶到目的地后,司机可以通过中控屏将包含车费金额的收款码发送到后座屏1,后座屏1可以直接显示该收款码,以便乘客快速支付车费,为乘客提供便捷的电子支付途径。
可以看出,为车载设备包含的不同显示屏设置不同的权限,可以使得车载设备需要在不同显示屏之间传递数据时,能够基于该权限来确定是否传递数据,或者,如何实现数据的传递,加强车载设备对跨屏分享的数据的管控,提升车载场景中,用户对多个显示屏的使用体验。
场景2:家庭场景
在家庭场景中,该包含多个显示屏的电子设备可以是指室内的智能家居设备,该智能家居设备可以包括:客厅屏、卧室屏、学习屏等多个显示屏。另外,该智能家居设备还可以包括处理器,该处理器用于控制和管理这多个显示屏的显示。
图2为本申请实施例提供的一种家庭场景下多个显示屏在室内的布局示意图。
如图2所示,智能家居设备可以包括客厅屏、卧室屏、学习屏这多个显示屏。其中,客厅屏可以位于客厅,用于为客厅中的家庭成员提供娱乐服务,卧室屏可以位于卧室,用于为卧室中的家庭成员提供娱乐服务,学习屏可以位于书房,用于为书房中的家庭成员提供听课、复习等等学习服务。
结合图2所示的智能家居设备,在家庭场景中,用户可以在该智能家居设备中的各显示屏上登录不同的账号,各显示屏可以基于账号进行独立显示,各显示屏上显示的内容相互独立。进一步地,智能家居设备可以检测到用户将一个显示屏上的内容分享到另一个显示屏上进行显示的操作,通过比较这两个显示屏的权限,来确定是否直接将该内容分享到另一个显示屏上进行显示。
例如,假设客厅屏上登录的账号的权限高于学习屏上登录的账号的权限。客厅屏上可用于显示日程应用的内容,家长可以在客厅屏上,通过该日程应用设置孩子的日程活动,并将该日程活动发送到学习屏上登录的账号中,孩子可以通过学习屏查看到该日程活动。另外,孩子在通过学习屏完成网上学习之后,可以通过学习屏将其完成的作业发送到客厅屏上登录的账号中,这时客厅屏可以显示是否查看该作业的提示信息,家长可以基于自己的意愿来确定当前是否查看该作业。
可以看出,为智能家居设备包含的不同显示屏设置不同的权限,可以使得智能家居设备需要在不同显示屏之间传递数据时,能够基于该权限确定是否传递数据,或者,如何实现数据的传递,加强智能家居设备对跨屏分享的数据的管控,提升家庭场景中,用户对多个显示屏的使用体验。
需要注意的是,电子设备中包含的多个显示屏可以通过有线连接或无线连接与电子设备的主体相连,其中,该无线连接可以是Wi-Fi连接、蓝牙连接、红外线连接、NFC连接、ZigBee连接等近距离连接,也可以是远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。另外,这多个显示屏可以为仅能够实现显示功能的显示屏,可以为其他具备独立运算功能,但作为显示屏提供显示功能的电子设备,本申请实施例对此不作限制。
应理解,本申请实施例对跨屏分享方法的应用场景不作限制。例如,该应用场景还可以包括会议场景、展览场景、监控场景等等。在这些应用场景中,电子设备可以包括多个显示屏,不同显示屏可以存在不同的权限,电子设备在进行内容的跨屏分享时,可以基于该权限来确定是否实现内容的跨屏显示。
图3A示出了电子设备100的硬件结构示意图。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。示例性地,电子设备100可以为仅包含一个系统级芯片,以及一个操作系统,并配备有多个显示屏的设备。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
示例性地,电子设备100可以为仅包含一个系统级芯片,以及一个操作系统,并配备有多个显示屏的设备。该系统级芯片可以集成有电子设备100的多个关键部件,例如,处理器110,外部存储器接口120,内部存储器121等等。电子设备100可以通过该一个系统级芯片来实现对多个显示屏的驱动,支持多个账号的存储空间的运行。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施 例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在一些实施例中,处理器110可用于控制和管理电子设备100中的多个账号,获取账号对应的存储空间中的内容,并根据两个显示屏登录的账号的权限,来确定是否将一个账号中的内容发送给另一个账号。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。
充电管理模块140用于从充电器接收充电输入。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号解调以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。
在一些实施例中,电子设备可以包括N个显示屏194,N为大于1的正整数。示例性地,当电子设备100为车载设备时,该显示屏194可以包括中控屏、副驾屏、后座屏、抬头屏等等。其中,该显示屏194可用于显示账号的登录界面、应用提供的显示内容等等。具体关于显示屏194显示的内容可以参见后续提及的用户界面,这里先不展开。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
在一些实施例中,内部存储器121可以为各账号分别提供独立的存储空间,该不同的存储空间分别用于存放不同账号中安装的应用本身的数据,以及,应用运行过程中,产生的数据。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。
耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。
骨传导传感器180M可以获取振动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
电子设备可以是搭载iOS、Android、Microsoft或者其它操作系统的便携式终端设备,例如手机、平板电脑、可穿戴设备等,还可以是具有触敏表面或触控面板的膝上型计算机(Laptop)、具有触敏表面或触控面板的台式计算机等非便携式终端设备。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的移动操作系统为例,示例性说明电子设备100的软件结构。
图3B是本申请实施例的电子设备100的软件结构示意图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将移动操作系统分为四层,从上至下分别为应用程序层,程序框架层/核心服务层,底层库以及内核层。
应用程序层可以包括一系列应用程序包。
其中,由于电子设备100可以包括多个账号,应用程序层可以基于账号划分出不同账号中包含的应用程序包。不同账号中包含的应用程序包互不影响,其中,不同账号可以包含不同的应用程序包,也可以包含相同的应用程序包,不同账号的应用程序包安装在其对应的账号的存储空间中。另外,可选地,应用程序层还可以包括各账号共享的应用程序包,该共享的应用程序包可以安装在各账号共享的存储空间中。
为了便于描述,在本申请以下实施例中,不同账号包含的应用程序称为独立应用,各账号共享的应用程序称为共享应用,具体关于独立应用和共享应用的描述可以参见后续内容,这里先不展开。
如图3B所示,应用程序包可以包括桌面、设置、SystemUI、应用1、应用2、应用3等等应用程序。其中,桌面、设置、SystemUI为共享应用,SystemUI是一个系统级别的APK应用,可以提供状态栏、通知栏、最近任务界面、导航栏等等显示内容。应用1、应用2、应用3为独立应用。电子设备100包括:账号1和账号2,其中,账号1中安装的独立应用包括:应用1、应用2,账号2中安装的独立应用包括:应用1、应用2、应用3。
也就是说,当电子设备100在一个显示屏上登录账号1时,该显示屏上可以显示该应用1、应用2、桌面、设置、SystemUI的内容,其中,应用1和应用2的内容来源于该账号1的存储空间,桌面、设备、SystemUI的内容来源于该电子设备100中各个账号共享的存储空间;当电子设备100在一个显示屏上登录 账号2时,该显示屏上可以显示该应用1、应用2、应用3、桌面、设置、SystemUI的内容,其中,应用1、应用2和应用3的内容来源于该账号2的存储空间,桌面、设置、SystemUI的内容来源于该电子设备100中各个账号共享的存储空间。
在一些实施方式中,账号中的某些应用程序可以仅在指定的显示屏上显示,该指定显示屏可以是指电子设备100预设的显示屏,也可以是指用户设置的显示屏,也可以是指电子设备100中性能最好的显示屏等等,本申请实施例对该指定显示屏的定义不作限制。以图3B所示的账号1中的应用为例,该应用1可以仅在显示屏1上显示,那么在电子设备100在显示屏1上登陆账号1时,该显示屏1可以显示该应用1的内容,当电子设备100在显示屏2上登陆账号1,该显示屏1不能显示该应用1的内容。示例性地,当电子设备100为车载设备时,该显示屏1是指中控屏,应用1为应用市场,那么,在电子设备100的所有显示屏中,只有中控屏上才能显示应用市场,为用户提供安装和卸载应用的功能。
应理解,电子设备100中的共享应用不限于图3B所示桌面、设置和SystemUI,例如,共享应用可以仅包括桌面、SystemUI,或者,共享应用还可以包括:短信、图库、日历、导航、时钟、地图等等,本申请实施例对电子设备100中包含的共享应用不作限制。另外,电子设备100还可以包含更多或更少的账号,本申请实施例对电子设备100中的账号数量不作限制,对各账号中包含的应用也不做限制,例如,账号1中可以包含应用1、应用2、应用3等等应用,账号2可以包括应用4、应用5、应用6等等应用,这些应用可以为电子设备100从应用市场安装的应用,也可以为电子设备100通过网页下载的应用,也可以为电子设备100出厂时自带的应用,本申请实施例对这些应用的来源不作限制。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3B所示,应用程序框架层可以包括窗口管理器、内容提供器、电话管理器、资源管理器、通知管理器、视图系统、共享模块、权限管理模块等。
共享模块用于在电子设备100需要将一个显示屏上显示的应用内容分享到目标显示屏上显示时,判断当前是否满足分享条件,该分享条件包括以下一项或多项:目标显示屏已登陆账号、目标显示屏上登陆的账号已安装该应用等等。具体关于分享条件的描述可以参见后续方法流程,这里先不赘述。
权限管理模块用于管理电子设备100中包含的各个账号的权限,并在电子设备100需要将一个显示屏上的应用内容分享到另一个显示屏上时,比较这两个显示屏上登陆的账号的权限大小。具体关于电子设备100根据权限进行应用内容的分享的描述可以参见后续方法流程,这里先不赘述。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
图4示出了电子设备100在进行跨屏分享时,涉及到的一种内部交互流程图。
其中,如图4所示,本申请实施例提供的跨屏分享方法涉及电子设备100中的显示屏1、显示屏2、共享模块、权限管理模块。其中,显示屏1和显示屏2可以为电子设备100中的任意两个显示屏,具体关于共享模块和权限管理模块的描述可以参见前述图3B中的相关内容,这里不再赘述。
S101.电子设备100在显示屏1上登录账号1。
账号1可以为电子设备100中注册的账号。
示例性地,电子设备100注册账号可以包括以下步骤:
1)获取账号的注册信息
电子设备100可以通过显示屏显示账号的注册界面,并获取用户通过该注册界面输入的账号的注册信息。该注册信息可包括:账号、密码、昵称等等。进一步地,该注册信息还可以包括账号的权限,在电子设备100对内容进行跨屏分享时,电子设备100可以根据该权限来确定是否进行跨屏分享,或如何进行跨屏分享。
应理解,本申请实施例对该注册信息不作限制。
2)将注册信息发送给服务器
服务器用于获取账号的注册信息,并根据该注册信息判断该账号是否已存在,如果不存在,则服务器将该账号的注册信息存储在本地,以便电子设备100在登录该账号时,通过该注册信息来判断电子设备100登录的账号是否合法,如果存在,则该账号注册失败。
3)获取服务器返回的指示信息
如果服务器确定该账号注册成功,则服务器返回的指示信息用于指示该账号注册成功,否则,该指示信息用于该账号注册失败。
需要注意的是,电子设备100注册账号时,除了将注册信息发送给服务器外,还可以直接将注册信息保存在本地。或者,电子设备100的账号注册过程不涉及服务器,由电子设备100自行根据存储的注册信息来判断账号是否已存在,如果不存在,则将该注册信息保存在本地,否则,此次账号注册失败。
另外,在账号注册成功后,电子设备100可以在本地划分一块该账号的存储空间,该存储空间用于存储该账号中安装的各应用的数据,例如应用的安装文件或者应用运行过程中产生的数据等等。需要注意的是,在账号注册完成时,该存储空间可以预先存储一些初始信息,例如该账号中预置的初始应用的数据、初始配置信息等等。
也就是说,在电子设备100注册账号1时,电子设备100可以获取该账号1的注册信息,并将该账号1的注册信息发送给服务器,在获取到服务器返回的注册成功的指示信息后,电子设备100在存储空间中划分出一块账号1的存储空间,从而完成账号1的注册。
在一些实施方式中,该账号1还可以为其他设备注册的账号,具体关于其他设备注册账号的步骤可以参考电子设备100注册账号的步骤,这里不再赘述。
电子设备100在显示屏1上登录账号1可以包括以下两种情况:
1)电子设备100自动在显示屏1上登录账号1
示例性地,电子设备100可以在开机后,自动在显示屏1上登录账号1,或者,电子设备100可以在打开显示屏1后,自动在显示屏1上登录账号1。
2)电子设备100基于用户操作在显示屏1上登录账号1
示例性地,电子设备100可以在显示屏1上显示账号的登录界面,电子设备100可以在该登录界面上检测到确认登录账号1的用户操作后,在该显示屏1上登录账号1。其中,该用户操作可以包括以下一项或多项:输入账号的操作,输入密码的操作以及作用于登陆控件的操作,该用户操作可以表现为作用于显示屏1的触控操作,或者,作用在电子设备100连接的鼠标的点击操作等等。本申请实施例对该用户操作的表现形式不作限制。
示例性地,电子设备100登录账号可以包括以下步骤:
1)获取账号的登录信息
该登录信息可以包括账号、密码、登录时间、登录地点等等信息,本申请实施例对此不作限制。
2)根据账号的登录信息对账号进行认证
认证账号可以包括:由服务器认证和本地认证两种情况。
其中,由服务器认证是指电子设备100将账号的登录信息发送给服务器,由服务器根据该登录信息,以及存储的所有的注册信息,进行账号的认证。示例性地,如果该账号为已注册的账号且未登录,则该账号的认证通过,并且,服务器记录该账号的登录信息,否则,该账号的认证不通过,之后,服务器将该账号是否认证通过的指示信息返回给电子设备100。
由本地认证是指电子设备100自行根据账号的登录信息,以及本地存储的所有注册信息,进行账号的认证。示例性地,如果该账号未已注册的账号且未登录,则该账号的认证通过,否则,该账号的认证不通过。
3)认证通过后,显示该账号中的内容
在认证通过后,电子设备100在当前登录账号的显示屏上显示该账号中的内容。该内容可以包括各个应用提供的用户界面。例如,假设账号1中安装了应用1和应用2,则电子设备100在显示屏1上登录账号1后,电子设备100可以在该显示屏1上显示应用1和应用2的应用内容。
也就是说,电子设备100在显示屏1上登录账号1可以包括:电子设备100获取账号1的登录信息,根据该登录信息对账号进行认证,并在认证通过后,在显示屏1上显示该账号1中的内容。
S102.电子设备100在显示屏2上登录账号2。
类似于步骤S101中的描述,该账号2可以为电子设备100本地注册的账号,也可以为其他设备注册的账号,电子设备100在显示屏2上登录账号2可以包括:电子设备100获取账号2的登录信息,根据该登录信息对账号进行认证,并在认证通过后,在显示屏2上显示该账号2中的内容。具体关于步骤S102中的描述可以参考前述步骤S101的相关内容,这里不再赘述。
应理解,本申请实施例提及的显示屏1和显示屏2仅用于表示显示屏1和显示屏2为电子设备100的两个不同的显示屏,不构成对本申请实施例的限定,类似的,本申请实施例提供的账号1和账号2仅用于表示账号1和账号2为电子设备100中的两个不账号,不构成对本申请实施例的限定,以下不再赘述。
S103.电子设备100在显示屏1上检测到将数据A分享到显示屏2上进行显示的用户操作。
示例性地,该数据A可以来源于账号1的存储空间,该数据A可以是指:文字、图片、表格、视频、音频、文档、链接等等形式的数据。本申请实施例对该数据A的展现形式不作限制。
其中,该数据A可以为应用A提供的数据。具体地,该数据A可以是指电子设备100在显示屏1上显示应用A时,用户输入的用于启动应用A提供的某一功能的数据,或者,该数据A可以是指电子设备100在显示屏1上显示应用A时,应用A自身的数据。例如,该应用A可以是指导航应用,数据A可以是指用户输入的目的地地点,又例如,该应用A可以是指视频播放应用,该数据A可以为视频播放应用播放的视频。
应理解,该用户操作除了可以表现为将数据A从显示屏1分享到显示屏2的操作外,还可以表现为将数据A从一个账号分享到另一个账号的操作,这时,步骤S103可以为电子设备100检测到将数据A从显示屏1上登录的账号(即账号1)分享到另一个账号(例如账号2)的用户操作。本申请实施例对此不作限制。
应理解,该数据A还可以来源于电子设备100中所有账号共享的存储空间,本申请实施例对此不作限制。
S104.电子设备100通过共享模块判断是否满足分享条件。
分享条件可以包括以下一项或多项:电子设备100已在显示屏2上登录账号,显示屏2上登录的账号中安装有用于显示数据A的应用等等。
当电子设备100确定满足分享条件时,电子设备100执行步骤S105,否则,数据A跨屏分享失败。
S105.电子设备100通过权限管理模块判断账号1的权限是否高于账号2的权限。
示例性地,当账号1的权限高于账号2的权限时,电子设备100可以直接将数据A从账号1分享到账号2,即执行步骤S107,否则,电子设备100拒绝分享数据A,或者,电子设备100基于用户操作判断是否分享数据A,即执行步骤S106。
S106.电子设备100通过作用于显示屏2上的用户操作判断是否分享数据A。
也就是说,当账号1的权限等于或低于账号2的权限时,电子设备100可以在显示屏2上输出提示信息,提示用户是否同意将数据A分享到账号2中。
这样,当电子设备100将数据从权限较低的显示屏分享到权限较高或权限相同的目标显示屏上显示时,电子设备100需要在得到操控该目标显示屏的用户的同意后,才能在该权限较高的显示屏上显示该数据。
在电子设备100基于用户操作确定分享数据A时,电子设备100执行步骤S107,否则,数据A跨屏分享失败。
S107.电子设备100通过共享模块将数据A从账号1分享到账号2。
具体地,电子设备100将数据A发送到账号2的存储空间中,从而使得电子设备100能够在显示屏2上显示该来自账号2的存储空间中的该数据A。
应理解,步骤S107为可选的步骤,这是由于当数据A为电子设备100中所有账号共享的存储空间中的内容时,电子设备100无需将数据A从账号1分享到账号2,电子设备100中的任意一个账号都能够访问到该数据A,并在登陆该账号的显示屏上显示该数据A。
S108.电子设备在显示屏2上显示数据A。
示例性地,当数据A为视频时,电子设备100可以通过显示屏2播放该视频,这样,实现了电子设备100将视频从显示屏1分享到显示屏2上进行播放的效果。示例性地,当数据A为图片时,电子设备100可以通过显示屏2显示该图片,这样,实现了电子设备100将图片从显示屏1分享到显示屏2上进行显示的效果。
在一些实施方式中,电子设备100除了在显示屏2上显示数据A本身之外,还可以显示与该数据A有关的内容,该内容可以为电子设备100基于该数据A进一步响应得到的内容,例如,当电子设备100将某一地点分享到另一个显示屏上显示时,电子设备100可以在另一个显示屏上显示包含该地点的地图,或者显示到达该点的路线图。本申请实施例对电子设备100对数据跨屏分享后,在另一个显示屏上展现的内容不作限制。
另外,在电子设备100在显示屏2上显示数据A的同时,电子设备100还可以输出与该数据A有关的语音提示、震动等等。
图5示出了电子设备100在进行跨屏分享时,涉及到的另一种内部交互流程图。
其中,如图5所示,本申请实施例提供的跨屏分享方法涉及电子设备100中的显示屏1、显示屏2、共享模块、权限管理模块。其中,显示屏1和显示屏2可以为电子设备100中的任意两个显示屏,具体关于共享模块和权限管理模块的描述可以参见前述图3B中的相关内容,这里不再赘述。
S201.电子设备100在显示屏1上登录账号1。
S202.电子设备100在显示屏2上登录账号2。
S203.电子设备100检测到将应用A的数据A分享到显示屏2上进行显示的用户操作。
其中,结合图4,步骤S201-S203与图4所示的步骤S101-S103类似,具体关于步骤S201-S203的描述可以参考前述步骤S101-S103的相关描述,这里不再赘述。另外,需要注意的是,步骤S202为可选的步骤。
S204.电子设备100通过共享模块判断显示屏2上是否有登录账号。
在电子设备100检测到将数据A分享到显示屏2上进行显示的用户操作后,电子设备100可以判断该显示屏2上是否登录有账号,如果没有,则电子设备100执行步骤S205,否则电子设备100执行步骤S206。
在一些实施方式中,步骤S203可以更改为电子设备100检测到将应用A的数据A分享到账号2的用户操作,在这种情况下,电子设备100可以通过共享模块判断电子设备100是否有显示屏上登录有该账号2,如果没有,则电子设备100在一个显示屏(例如显示屏2)上登陆该账号2,否则电子设备100执行步骤S206。其中,在电子设备100确定没有显示屏登陆有该账号2时,电子设备100可以自动选择一个显示屏登陆该账号2,或者基于用户的选择在一个显示屏上登陆该账号2。本申请实施例对此不作限制。
S205.电子设备100通过共享模块在显示屏2上登录账号2。
其中,电子设备100在显示屏2上登录账号2可以包括以下两种情况:
1)电子设备100自动在显示屏2上登录账号2
也就是说,电子设备100在确定显示屏2未登录账号后,自动触发在显示屏2上登录账号。其中,电子设备100在显示屏2上登录的该账号2可以为电子设备100随机选择的账号,也可以为显示屏2最近一次登录的账号等等,本申请实施例对显示屏2上登录的账号不作限制。
2)电子设备100提示用户在显示屏2上登录账号,并基于用户操作在显示屏2上登录账号2
也就是说,电子设备100在确定显示屏2未登录账号后,电子设备100可以输出提示信息,提示用户是否在显示屏2上登录账号,示例性地,电子设备100可以在显示屏2上显示账号登录界面,提示用户在显示屏2上登录账号,进一步地,电子设备100可以检测到用户在该账号登录界面,选择账号并登录的操作,在该显示屏2上登录账号。这样,用户可以根据自己的意愿确定是否在显示屏2上登录账号,进一步地,用户还可以根据自己的意愿挑选登录的账号。
可以理解的是,当用户拒绝在该显示屏2上登陆账号时,则数据A跨屏分享失败。
S206.电子设备100通过权限管理模块判断账号1的权限是否高于账号2的权限。
示例性地,当账号1的权限高于账号2的权限时,电子设备100可以进一步判断账号2中是否安装有用于显示该数据A的应用,即执行步骤S208,否则,电子设备100拒绝分享数据A,或者,电子设备100基于用户操作判断是否分享数据A,即执行步骤S207。
S207.电子设备100通过作用于显示屏2上的用户操作判断是否分享数据A。
也就是说,当账号1的权限等于或低于账号2的权限时,电子设备100可以在显示屏2上输入提示信息,提示用户是否同意将数据A分享到账号2中。
这样,当电子设备100将数据从权限较低的显示屏分享到权限较高或权限相同的目标显示屏上进行显示时,电子设备100需要在得到操控该目标显示屏的用户的同意后,才能在该权限较高的显示屏上显示该数据。
在电子设备100基于用户操作确定分享数据A时,电子设备100进一步判断账号2中是否安装有用于显示该数据A的应用,即执行步骤S208,否则,数据A跨屏分享失败。
S208.电子设备100通过共享模块判断账号2是否安装有用于显示数据A的应用。
其中,该应用可以是指步骤S203提及的应用A,也可以是指与应用A为同一类型的应用。例如,假设应用A为某一视频播放应用,数据A为视频,则电子设备100在判断账号2中是否安装有用于显示数据A的应用时,可以判断账号2中是否安装有该应用A,或者,同样能够播放视频的其他视频播放应用。
如果电子设备100确定账号2中没有安装用于显示数据A的应用,则电子设备100执行步骤S209,否则,电子设备100执行步骤S210。
应理解,当数据A来源于电子设备100中所有账号共享的存储空间时,步骤S208为可选的步骤。
S209.电子设备100通过共享模块在账号2中安装应用B。
其中,该应用B可以为应用A,也可以为与应用A为同一类型,能够识别数据A的应用。
电子设备100在账号2中安装应用B可以存在以下两种情况:
1)电子设备100自动在账号2中安装应用B
也就是说,电子设备100在确定账号2中没有安装用于显示数据A的应用后,自动触发在账号2中安 装应用B。
2)电子设备100提示用户安装应用B,并基于用户操作在账号2中安装应用B
也就是说,电子设备100在确定显示屏2未登录账号后,电子设备100可以输出提示信息,提示用户是否在账号2中安装应用B。示例性地,电子设备100可以在显示屏2上显示多个可供安装的应用,用户可以挑选其中的一个应用进行安装,或者,拒绝安装应用等等。这样,用户可以根据自己的意愿确定是否在账号2中安装应用,进一步地,用户还可以根据自己的意愿挑选安装的应用。
可以理解的是,当用户拒绝在账号2中安装应用B时,则数据A跨屏分享失败,或者,电子设备100仍然将数据A分享到账号2的存储空间中,并通过显示屏2显示该数据A,这时,显示屏2上可能能够显示该数据A,但是显示屏2显示数据A的效果可能无法还原在显示屏1上显示数据A的效果。
可以理解的是,本申请实施例对步骤S206-S207,与步骤S208-S209的执行顺序。示例性地,电子设备100可以先执行步骤S206-S207,再执行步骤S208-S209。这样,电子设备100可以先判断账号1的权限是否高于账号2的权限,再判断账号2中是否安装有用于显示数据A的应用。或者,电子设备100可以先执行步骤S208-S209,再执行步骤S206-S207。这样,电子设备100先判断账号2中是否安装有用于显示数据A的应用,在判断账号1的权限是否高于账号2的权限。或者,电子设备100可以同时执行步骤S206和步骤S208。这样,电子设备100可以同时判断账号1的权限是否高于账号2的权限,以及账号2中是否安装有用于显示数据A的应用。
S210.电子设备100通过共享模块将数据A从账号1分享到账号2。
具体地,电子设备100将数据A发送到账号2的存储空间中,从而使得电子设备100能够在显示屏2上显示该来自账号2的存储空间中的该数据A。
应理解,步骤S201为可选的步骤,这是由于当数据A为电子设备100中所有账号共享的存储空间中的内容时,电子设备100无需将数据A从账号1分享到账号2,电子设备100中的任意一个账号都能够访问到该数据A,并在登陆该账号的显示屏上显示该数据A。
S211.电子设备100在显示屏2上通过应用B显示数据A。
也就是说,电子设备100可以在显示屏2上显示账号2中安装的应用B的内容,其中,电子设备100可以在显示屏2上通过该应用B显示该数据A。
示例性地,当数据A为视频时,应用B可以为视频播放应用,电子设备100可以在显示屏2上显示该视频播放应用的播放界面,并在该播放界面中播放该视频。示例性地,当数据A为地点C时,应用B可以为导航应用,电子设备100可以在显示屏2上显示该导航应用的用户界面,并在该用户界面中显示从电子设备100当前所在位置到地点C的导航路线。这样,实现了电子设备100将数据从一个显示屏分享到另一个显示屏上进行显示的效果。
应理解,具体关于步骤S201-S211中未提及的内容可以参考前述步骤S101-S108的描述,这里不再赘述。
下面以导航应用为例,描述电子设备100跨屏分享用户在导航应用中输入的目的地时,涉及到的相关用户界面。
图6A-图6G、图7A-图7E为本申请实施例提供的一些用户界面。其中,图6A-图6G示出了电子设备100中的显示屏1上显示的相关用户界面,图7A-图7E示出了电子设备100中的显示屏2上显示的相关用户界面。以车载场景为例,该电子设备100可以是指车载设备,该显示屏1可以为车载设备中的后座屏,该显示屏2可以为车载设备中的中控屏。
图6A示出了电子设备100在显示屏1上显示的用于登录账号的示例性用户界面10。
如图6A所示,用户界面10可包括:账号选择区101、创建账号选项102。其中,账号选择区101可用于显示电子设备100创建或历史登录过的一个或多个账号分别对应的账号选项,电子设备100可以检测到用户作用于其中一个账号选项的操作,在该显示屏1上登录该账号选项对应的账号。创建账号选项102可用于触发创建账号。
示例性地,账号选择区101可包括:第一账号选项101A、第二账号选项101B。第一账号选项101A用于指示电子设备100中的账号1,第二账号选项101B用于指示电子设备100中的账号2。
如图6A所示,当电子设备100检测到作用于第一账号选项101A的用户操作,例如点击操作,响应 于该操作,电子设备100在显示屏1上登录账号1,该显示屏1上可以显示来自该账号1的存储空间中的内容。
可以理解的是,电子设备100中创建的账号不限于上述图6A所示的账号1、账号2,本申请实施例对电子设备100中包含的账号数量不作限制。该账号1和账号2可以为电子设备100中提前预置的账号,也可以为用户创建的账号,本申请实施例对电子设备100的账号的创建方式不作限制。
另外,图6A所示的账号1和账号2可以仅为电子设备100中的部分账号,该账号1和账号2可以为电子设备100中能够登录在显示屏1上的账号。换句话说,电子设备100除了创建有账号1和账号2之外,还创建有其他的账号,例如账号3,但是仅账号1和账号2可用于登录在该显示屏1上,示例性地,该账号1和账号2可以是指电子设备100在显示屏1上创建的账号,该账号3是电子设备100在其他显示屏上创建的账号,或者,该账号1和账号2可以是指电子设备100中未登录在显示屏上的账号,该账号3为电子设备100已登录在其他显示屏上的账号。
示例性地,电子设备100可以在开机,或打开显示屏1时,在该显示屏1上显示该用户界面10,也可以为用户通过显示屏1查看设置应用时,电子设备100通过该显示屏1显示的该设置应用提供的用户界面10。本申请实施例对电子设备100在显示屏1上显示该用户界面10的时机不作限制。
图6B示出了电子设备100在显示屏1上显示的用于应用程序菜单的示例性用户界面20。示例性地,当显示屏1上已登录账号1,该用户界面20可以为账号1提供的内容。
如图6B所示,用户界面20可用于显示天气、时间、日期等等信息以及一个或多个应用程序图标。这一个或多个应用程序图标可以为电子设备100在账号1中安装的一个或多个独立应用,和/或,各个账号共享的一个或多个共享应用的图标。
其中,这一个或多个应用程序图标中可包括:导航图标201。该导航图标201可以为电子设备100在账号1中安装的导航应用的图标,电子设备100在显示屏1上显示的该导航应用的内容,来源于该账号1的存储空间。
如图6B所示,当电子设备100检测到作用于导航图标201的用户操作,例如点击操作,响应于该操作,电子设备100打开导航应用,并在显示屏1上显示如图6C所示的导航应用提供的用户界面30。
如图6C所示,用户界面30可包括:地图展示区301、导航栏302。其中,地图展示区301用于显示电子设备100所在区域的地图以及电子设备100在地图中的位置,导航栏302用于显示导航路线的出发点和目的地。电子设备100可以检测到用户在导航栏302中输入或更改出发点或目的地的操作,在导航栏302中输入用户指定的出发点或目的地,并在地图展示区301中显示导航栏302中的出发点到目的地的导航路线。
如图6C所示,导航栏302可包括:目的地选项302A。当电子设备100检测到作用于目的地选项302A,输入用户指定的目的地“C点”时,电子设备100可以在如图6D所示的目的地选项302A中显示用户输入的目的地“C点”。
可选地,电子设备100可以在检测到用户在目的地选项302A中输入目的地“C点”之后,触发将该目的地“C点”发送到另一个账号(例如账号2)的存储空间中,根据该另一个账号和当前显示屏1上登录的账号(即账号1)的权限,确定是否在登录该账号的显示屏(例如显示屏2)上显示该目的地“C点”的相关内容,具体可参见图7C-图7E的相关内容,这里先不展开。
如图6E所示,在用户输入目的地后,电子设备100可以检测到作用于目的地选项302A的拖拽操作,响应于该操作,电子设备100可以在用户界面30中显示如图6E所示的选项栏303,该选项栏303可用于显示电子设备100中,除显示屏1之外的其他显示屏对应的选项。
可选地,在电子设备100检测到作用于目的地选项302A的拖拽操作时,电子设备100可以显示跟随该拖拽操作进行移动的目的地选项302A的截图。
示例性地,电子设备100可以在检测到作用于目的地选项302A向指定方向拖拽,或作用于目的地选项302A拖拽到指定区域时,显示如图6E所示的选项栏303,或者,该选项栏303可以一直显示在用户界面中,本申请实施例对选项栏303的出现时机不作限制。
其中,选项栏303可包括:选项303A,该选项303A对应于电子设备100中的显示屏2。如图6F所示,当电子设备100检测到用户作用于目的地选项302A的拖拽操作移动到选项303A上结束时,电子设备100可以将目的地选项303A指示的数据,即目的地“C点”,发送给该选项303A对应的显示屏2上登录的账号中,以便电子设备100在显示屏2上显示该目的地“C点”的相关内容。
可选地,选项栏303中除了用于显示显示屏对应的选项外,还可以用于显示账号对应的选项。这种情 况下,电子设备100可以检测到用户作用于目的地选项302A向选项栏303中的其中一个账号对应的选项的拖拽操作,触发将该目的地选项302A指示的数据发送给该选项对应的账号。
示例性地,在电子设备100将数据从一个账号发送给另一个账号之前,电子设备100可以结合是否达到分享条件以及这两个账号的权限是否满足预设要求等等,来确定电子设备100是否能够成功分享数据。其中,假设电子设备100需要将账号1中的导航应用中,用户输入的目的地“C点”分享给账号2,分享条件可包括:账号2已登录在电子设备100的显示屏上、账号2中已安装导航应用等等,这两个账号的权限满足预设要求可以是指账号1的权限高于账号2的权限等等,具体可参见后续方法流程,这里先不赘述。
当电子设备100对目的地选项303A指示的数据分享失败后,电子设备100可以在用户界面30中显示如图6G所示的提示信息304,该提示信息304用于提示数据跨屏分享失败。
如图6G所示,提示信息304可包括:取消选项304A、切换显示屏304B。其中,取消选项304A可用于取消数据的跨屏分享,切换显示屏304B可用于切换数据分享的目标显示屏。
另外,当电子设备100对目的地选项303A指示的数据分享成功后,电子设备100可以在成功接收该数据的账号所在的显示屏上,显示该数据的相关内容。具体可参见后续图7C-图7E的相关内容,这里先不展开。
需要注意的是,电子设备100检测到用户作用于用户界面中显示的某一内容分享到另一显示屏上进行显示的操作,用户作用的内容与电子设备100最终分享的内容可以不同,从图6E可以看出,用户作用的内容为图6E所示的目的地选项302A,而电子设备100分享的数据为目的地“C点”。可见,用户作用在显示屏上显示的内容为电子设备100最终分享的内容在界面上的展现形式。例如,当用户作用于视频播放应用中在线播放的一部电影,将该电影分享到另一个显示屏上显示时,电子设备100分享的数据可以是该电影的名称。
可以看出,图6A-图6G以导航应用中,用户输入的地点作为电子设备100跨屏分享的内容,应理解,本申请实施例对电子设备100跨屏分享的内容不做限制。在本申请其他实施例中,该跨屏分享的内容可以包括文字、表格、图片、文档、视频、音频、链接等等各种形式的内容。本申请实施例对该跨屏分享的内容的数据形式不作限制。另外,电子设备100除了可以分享导航应用中的内容外,还可以分享其他任意一个应用的内容,本申请实施例对该应用不作限制。
图7A示出了电子设备100在显示屏2上显示的用于登录账号的示例性用户界面40。
如图7A所示,用户界面40可包括:账号选择区401、创建账号选项402。其中,账号选择区401可用于显示电子设备100创建或历史登录过的一个或多个账号分别对应的账号选项,电子设备100可以检测到用户作用于其中一个账号选项的操作,在该显示屏2上登录该账号选项对应的账号。创建账号选项402可用于触发创建账号。
示例性地,账号选择区401可包括:第一账号选项401A、第二账号选项401B。第一账号选项401A用于指示电子设备100中的账号1,第二账号选项401B用于指示电子设备100中的账号2。
如图7A所示,当电子设备100检测到作用于第二账号选项401B的用户操作,例如,点击操作,响应于该操作,电子设备100在显示屏2上登录账号2,该显示屏2上可以显示来自账号2的存储空间中的内容。
应理解,该用户界面40类似于图6A所示的用户界面10,具体关于用户界面40中未提及的内容可以参考前述图6A的相关内容,这里不再赘述。
图7B示出了电子设备100在显示屏2上显示的用于应用程序菜单的示例性用户界面50。示例性地,当显示屏2上已登录账号2,该用户界面50可以为账号2提供的内容。
如图7B所示,用户界面50可用于显示天气、时间、日期等等信息以及一个或多个应用程序图标。这一个或多个应用程序图标可以为电子设备100在账号2中安装的一个或多个独立应用,和/或,各账号共享的一个或多个共享应用的图标。
对比图6B和图7B可以看出,对于登录不同账号的显示屏1和显示屏2,其显示的内容可以不同。各显示屏上的显示内容相互独立,各个显示屏相当于一个独立的设备,更大限度地开发了包含多个显示屏的设备的使用率。
当电子设备100检测到用户将显示屏1上显示的目的地“C点”发送到显示屏2上进行显示的操作时,电子设备100可以在显示屏2上显示如图7C所示的提示信息501,该提示信息501用于提示用户是否在显示屏2上通过导航应用,开启到目的地“C点”的导航。
示例性地,电子设备100可以在检测到用户将显示屏1上显示的目的地“C点”发送到显示屏2上进行显示的操作,且账号2的权限高于账号1的权限时,在显示屏2上显示如图7C所示的提示信息501。
如图7C所示,提示信息501可包括:取消选项501A、确定选项501B。其中,取消选项501A可用于触发电子设备100拒绝在显示屏2上显示该目的地“C点”的相关信息,确定选项501B可用于触发电子设备100确定在显示屏2上显示该目的地“C点”的相关信息,即在显示屏2上通过导航应用,开启到目的地“C点”的导航。
应理解,电子设备100除了通过在显示屏2上显示该提示信息501,提示用户是否在显示屏2上通过导航应用,开启到目的地“C点”的导航外,电子设备100可以输出语音提示信息,提示用户是否在显示屏2上通过导航应用,开启到目的地“C点”的导航。这样,在车载场景下,可以避免用户分散注意力查看显示屏2上的显示内容,保证车辆的行驶安全。
示例性地,当电子设备100检测到作用于确定选项501B的用户操作,例如,点击操作,响应于该操作,电子设备100可以在显示屏2上显示显示屏1分享的目的地“C点”的相关信息,即显示如图7E所示的用户界面60。进一步地,如果显示屏2登录的账号未安装导航应用,则在电子设备100检测到作用于确定选项501B的用户操作之后,电子设备100可以将提示信息501更改为如图7D所示的提示信息502。
示例性地,当电子设备100检测到作用于取消选项501A的用户操作,例如点击操作,响应于该操作,电子设备100可以在显示屏2关闭该提示信息501。进一步地,电子设备100还可以在显示屏1上显示如图6G所示的提示信息304,该提示信息304用于提示用户跨屏分享失败。
应理解,电子设备100还可以通过检测用户的语音指令,来确定用户是否在显示屏2上通过导航应用,开启到目的地“C点”的导航,也就是说,用户可以通过语音操控电子设备100,调整显示屏2上的显示内容,这样,在车载场景下,可以避免用户分散注意力查看或操控显示屏2,以下电子设备100检测到的用户操作类似,下面不再赘述。
如图7D所示,提示信息502用于提示用户是否安装导航应用,其中,提示信息502可包括:取消选项502A、确定选项502B。其中,取消选项502A用于触发电子设备100拒绝安装导航应用,确定选项502B用于触发电子设备100确定安装导航应用。
示例性地,当电子设备100检测到作用于确定选项502B的用户操作,例如点击操作,响应于该操作,电子设备100可以安装导航应用,并在导航应用安装完成后,显示如图7E所示的用户界面60。
示例性地,当电子设备100检测到作用于取消选项502A的用户操作,例如点击操作,响应于该操作,电子设备100可以在显示屏2上关闭该提示信息502。进一步地,电子设备100还可以在显示屏1上显示如图6G所示的提示信息304,该提示信息304用于提示用户跨屏分享失败。或者,当电子设备100检测到作用于取消选项502A的用户操作,例如点击操作,响应于该操作,电子设备100可以打开账号2中安装的与导航应用类似,都存在导航功能的应用,显示该应用提供的从电子设备100当前所在地到C点的导航路线。
如图7E所示,用户界面60可以为显示屏2上登录的账号(即账号2)中安装的导航应用提供的用户界面,该用户界面60可用于显示电子设备100当前所在的位置到C点的导航路线,以及导航的相关信息,例如电子设备100当前所在位置到C点的距离,以及行驶时间等等。或者,电子设备100还可以语音播放电子设备100当前所在位置到C点的导航路线,以及导航的相关信息,例如电子设备100当前所在位置到C点的距离,以及行驶时间等等。
示例性地,当账号2的权限低于账号1的权限时,在电子设备100检测到用户将显示屏1上显示的目的地“C点”发送到显示屏2上进行显示的操作时,电子设备100可以直接将该目的地“C点”发送给账号2,并显示如图7E所示的用户界面60。这样,电子设备100无需显示如图7C所示的提示信息501,直接在显示屏2上显示到目的地“C点”的导航路线。
另外,当电子设备100检测到用户将显示屏1上显示的目的地“C点”发送到显示屏2上进行显示的操作,如果显示屏2上未登录账号,电子设备100自动在显示屏2上登录账号,该账号可以为显示屏1上登录的账号的子账号,也可以为显示屏2上最近一次登录过的账号,本申请实施例对此不作限制。或者,如果显示屏2上未登录账号,电子设备100可以在显示屏2上显示提示信息,提示用户是否在该显示屏2上登录账号。
另外,当目的地“C点”跨屏分享失败时,显示屏2上的显示内容可以不受影响,示例性地,显示屏2上可以一直显示如图7B所示的用户界面50。其中,目的地“C点”跨屏分享失败可以包括:显示屏2上未登录账号、显示屏2上登录的账号中未安装导航应用,显示屏2上登录的账号的权限高于显示屏1上 登录的账号的权限等等。具体可参见后续方法流程图,这里先不赘述。
应理解,如果用户已提前在显示屏2上输入目的地,例如“A点”,则电子设备100在将目的地“C点”发送到显示屏2上进行显示时,电子设备100可以将显示屏2上输入的目的地“A点”更改为目的地“C点”,或者,将该目的地“C点”设置为中间目的地,也就是说,导航应用可以在显示屏2上先显示当前所在地到“C点”的导航路线,再显示“C点”到“A点”的导航路线,或者,电子设备100将“A点”设置为中间目的地,将“C点”设置为最终目的地,也就是说,导航应用可以在显示屏2上先显示当前所在地到“A点”的导航路线,再显示“A点”到“C点”的导航路线。可以看出,电子设备100在将账号1中的内容发送给账号2,并在显示屏2上显示该内容时,电子设备100可以保留显示屏2上原本显示的内容,或者,将显示屏2上原本显示的内容替换为该账号1的内容。本申请实施例对此不作限制。
从图7A-图7E可以看出,在电子设备100将显示屏1上的内容分享到显示屏2上显示的过程中,电子设备100可以在显示屏2上显示提示信息,该提示信息用于提示用户是否在显示屏2上显示该显示屏1上分享过来的内容,或者,电子设备100可以直接在显示屏2上显示该显示屏1上分享过来的内容,或者,电子设备100拒绝在该显示屏2上显示该显示屏1上分享的内容。
图8示出了本申请实施例提供的跨屏分享方法的流程示意图。
如图8所示,该方法包括:
S301.电子设备100在显示屏1上登录账号1,在显示屏1上显示来自该账号1的存储空间中的内容。
其中,电子设备100可以包含多个显示屏,这些显示屏可以通过有线或无线连接与电子设备100的主体相连。显示屏1可以是指这多个显示屏中的任意一个显示屏。在本申请实施例中,该显示屏1还可以被称为第一显示屏,该账号1还可以被称为第一账号。
电子设备100中可以包括多个账号,这些账号分别拥有独立的存储空间,各存储空间相互隔离,该存储空间可用于存放安装应用时,该应用本身的数据,以及应用运行过程中,产生、更改的数据。这多个账号可以为电子设备100或其他设备注册的账号。具体关于电子设备100注册账号的描述可以参考前述步骤S101的相关内容,这里不再赘述。
电子设备100在显示屏1上登陆账号1可以包括以下两种情况:
1)电子设备100自动在显示屏1上登陆账号1
2)电子设备100基于用户操作在显示屏1上登陆账号1
示例性地,参见图6A,电子设备100可以在显示屏1上显示如图6A所示的用户界面10,电子设备100可以检测到作用于第一账号选项101A的用户操作,在该显示屏1上登陆账号1。
具体关于电子设备100登录账号的描述可以参见前述步骤S101中的相关内容,这里不再赘述。
另外,电子设备100中还可以包括所有账号共享的存储空间,这种情况下,电子设备100除了可以在显示屏上显示该显示屏上登陆的账号的存储空间中的内容,还可以在该显示屏上显示所有账号共享的存储空间中的内容。
进一步地,各账号独立的存储空间中安装的应用可以是指独立应用,所有账号共享的存储空间中安装的应用可以是指共享应用。
其中,独立应用为各账号独立安装的应用,仅登陆有该账号的显示屏,才能显示来自该账号的存储空间中安装的该独立应用的内容,且独立应用运行过程中产生的数据也存放在该账号独立的存储空间中。共享应用为各账号共享的应用,各显示屏上显示的该共享应用的内容,都来源于该共享的存储空间,且共享应用运行过程中产生的数据也存放在该共享的存储空间中。可以看出,用户在一个显示屏上对该显示屏上显示的独立应用的内容的更改,不会影响到其他显示屏上显示的该独立应用的内容,各个显示屏上显示的独立应用相互独立,而用户在一个显示屏上对该显示屏上显示的共享应用的内容的更改,会同步更改其他显示屏上显示的该共享应用的内容。
将电子设备100中的应用确定为独立应用还是共享应用,可以包括以下三种情况:
1)由开发者来划分独立应用和共享应用
在这种情况下,开发者可以预先定义哪一部分的应用属于独立应用,哪一部分的应用属于共享应用,这样,在预置电子设备100的系统应用,或者在电子设备100从第三方下载应用时,根据开发者预先对应用的划分,来确定如何安装应用,即将应用安装在各用户共享的存储空间,还是将应用安装在各用户独立的存储空间中。
2)由电子设备100来划分独立应用和共享应用
在这种情况下,开发者可以预先将应用的分类标准导入电子设备100,由电子设备100自行根据该分类标准来划分应用。具体关于分类标准的描述可以参见后续内容,这里先不展开。
3)由用户来划分独立应用和共享应用
在这种情况下,电子设备100在安装应用时,可以显示提示信息,询问用户将该应用作为独立应用还是共享应用进行安装。
可以理解的是,还可以结合以上多种情况来划分独立应用和共享应用。例如,由于电子设备100在投入到市场,给消费者使用之前,会提前预置部分电子设备100自带的应用,该自带的应用可以由开发者预先确定为独立应用还是共享应用,在给消费者使用之后,电子设备100上安装的应用可以由使用该电子设备100的用户来确定为独立应用还是共享应用。本申请实施例对电子设备100如何划分独立应用和共享应用的方式不作限制。
独立应用和共享应用的分类标准可以包括以下三种:
1)独立应用涉及隐私数据,共享应用不涉及隐私数据
由于独立应用安装在各账号独立的存储空间中,各存储空间相互隔离,不同账号的存储空间中的数据无法相互访问,共享应用安装在各账号共享的存储空间中,各账号都可以访问该存储空间。因此,各账号独立的存储空间可用于存放存在隐私数据的独立应用的数据,各账号共享的存储空间可用于存放不存在隐私数据的共享应用的数据。
其中,隐私数据可以是指用户的个人信息,该信息不便与他人共享,例如,可以包括个人浏览记录、播放记录、个人数据资料、身份信息等等。
可以看出,根据应用是否涉及隐私数据来确定应用安装的位置,可以避免用户使用包含多个显示屏的电子设备时,其输入的隐私数据被其他用户窃取,避免用户的隐私数据泄露,保障用户的隐私安全。
2)独立应用为第三方应用,共享应用为系统应用
第三方应用为用户在使用电子设备100的过程中,需要自行从应用市场、网页等渠道获取到的应用,用户可以根据自己的需求喜好,来选择需要安装的应用,系统应用为电子设备100预置的应用,例如,电话、短信、设置等等应用。
可以看出,根据应用是否为根据用户的需求自行选择安装的应用,来确定应用安装的位置,不仅可以满足各个用户的使用和娱乐需求,还可以保证各用户对应用的使用不会互相影响,同时,电子设备还能够自行在各显示屏上展现一些基础应用的功能,减少了用户安装这些基础应用的麻烦,提高了用户操控电子设备的便利性。
3)独立应用为不需要长时间运行的应用,共享应用为需要长时间运行的应用
由于电子设备100包含多个显示屏,不同用户可以通过不同的显示屏查看其安装的应用,这时容易出现多个应用并发数据的现象,导致同一时间的系统资源占用多,极大影响了设备的性能。那么,对于需要长时间运行的应用,例如,桌面,systemUI等等应用,电子设备100可以仅安装一次,且安装在各账号共享的存储空间中。
这样,各显示屏不仅都能显示该应用的内容,且同一时间,该应用仅通过一个进程来实现在多个显示屏上的显示,减少了多屏显示的场景下,各个显示屏上显示的该应用并发的数据,降低了系统资源的消耗,加快了系统运算的效率,提升了设备的性能。
可以理解的是,独立应用和共享应用的分类标准不限于上述三种,另外,可以按照上述三种分类标准的任意拆分和组合,来确定独立应用和共享应用,例如,独立应用可以为涉及隐私数据的第三方应用,共享应用可以为不涉及隐私数据,需要长时间运行的应用,又例如,独立应用可以为不需要长时间运行的第三方应用,共享应可以为不涉及应用,需要长时间运行的系统应用,本申请实施例对独立应用和共享应用的定义不做限制。
电子设备100安装应用具体包括:在存储空间中创建该应用的文件目录,将该应用的安装包复制并解压到该文件目录中,并在该存储空间中创建用于存放该应用运行过程中产生的数据的数据目录。
示例性地,当电子设备100在登陆有账号1的显示屏1上将应用1作为独立应用进行安装,则电子设备100将该应用1安装在该账号1的存储空间中,即在该账号1的存储空间中创建该应用1的文件目录和数据目录,将该应用1的安装包复制并解压到该文件目录中,当电子设备100在显示屏1上将应用1作为共享应用进行安装,则电子设备100将该应用1安装在共享的存储空间中,即在该共享的存储空间中创建该应用1的文件目录和数据目录,将该应用1的安装包复制并解压到该文件目录中。
另外,需要注意的是,由于独立应用可以在电子设备100中安装多次,电子设备100可以仅获取一次 独立应用的安装包,对该独立应用进行多次安装,使得不同账号可以安装有相同的独立应用。其中,电子设备100在安装独立应用时,可以设置该独立应用的应用标识,例如index,利用该应用标识来区分电子设备100在不同存储空间中安装的同一个独立应用。这样,对于在多屏设备上安装应用,应用开发商无需对应用进行适配,提供多个该应用的安装包,以便该应用能够在该多屏设备上安装多次,电子设备100可以自行提供应用标识来区分该安装多次的应用,降低了多屏设备的生态推广难度。
在一些实施方式中,电子设备100在显示屏上安装独立应用,可以包括以下两种情况:
1)电子设备100在一个显示屏上检测到安装该独立应用的操作,将该独立应用分别安装在多个账号的存储空间中
这种情况下,电子设备100在一个显示屏上检测到安装该独立应用的操作,可以触发在多个显示屏上安装该独立应用。例如,在车载场景中,电子设备100检测到在中控屏上安装音乐应用的操作,响应于该操作,电子设备100在中控屏、副驾屏以及后座屏上安装该音乐应用。这样,用户只需执行一次安装应用的操作,即可完成该应用的多次安装,并在多个显示屏上使用该应用,提升了应用安装的便捷性。
其中,电子设备100在将独立应用安装到多个账号的存储空间时,可以包括以下几种情况:
a)该多个账号为所有已登陆的账号
也就是说,在电子设备100在一个显示屏上检测到安装该独立应用的操作,可以触发将该独立应用安装到所有登录有账号的显示屏上。
b)该多个账号为根据账号的权限筛选的部分账号
不同账号可以拥有不同的权限,电子设备100可以根据权限的高低来控制电子设备100对内容的跨屏分享,例如权限低的账号不能将内容跨屏分享到权限低的账号,权限高的账号可以将内容跨屏分享到权限地的账号,具体关于权限,以及基于权限进行跨屏分享的描述可以参见后续内容,这里先不展开。
例如,假设电子设备100创建有账号1和账号2,账号1的权限高于账号2的权限,权限高的账号允许安装所有类型的应用,权限地的账号禁止安装游戏类应用。那么,当电子设备100在登陆有账号1的账号上检测到安装游戏应用的操作时,电子设备100将游戏应用安装在账号1的存储空间中,不安装在账号2的存储空间中。
c)该多个账号为用户选择的账号
这时,电子设备100在检测到用户安装应用的操作后,可以显示提示信息,提示用户挑选允许安装该应用的账号。
2)电子设备100在一个显示屏上检测到安装该独立应用的操作,仅将该独立应用安装在该显示屏上登陆的账号的存储空间中
这种情况下,各显示屏上的应用安装相互独立,用户在显示屏1上触发安装独立应用,电子设备100仅在该显示屏1上执行该独立应用的安装。这样,各显示屏相当于各个独立的设备,用户在不同的显示屏安装不同的应用,满足使用不同显示屏的用户的使用和娱乐需求。
账号的权限可用于指示账号在应用安装和卸载、功能和应用的使用、资源的访问等等方面的能力。其中,权限越高,账号的上述能力越强。
示例性地,在本申请实施例中,电子设备100可以根据账号的权限控制内容的跨屏分享,其中,高权限的账号可以直接将内容分享到低权限的账号,相同权限的账号或者低权限的账号向高权限的账号跨屏分享之前需要询问用户,或者无法进行内容的跨屏分享。
进一步地,该电子设备100还可以根据账号的权限,控制用户能够在显示屏上使用的功能。例如,高权限的账号所在的显示屏允许用户卸载应用,修改设置,低权限的账号所在的显示屏不允许用户卸载应用,修改设置等等。又例如,高权限的账号所在的显示屏允许用户安装任何类型的应用,低权限的账号所在的显示屏不允许用户安装游戏类应用等等。
电子设备100可以通过以下两种方式来设置不同账号的权限:
1)电子设备100根据账号所在的显示屏来设置不同账号的权限
示例性地,电子设备100可以根据显示屏的位置、大小、性能、属性等等参数,设置登陆在该显示屏上的账号的权限。
例如,在车载场景下,该电子设备100为车载设备,该车载设备可以包括中控屏、副驾屏、后座屏等多个显示屏,其中,登陆在中控屏的账号的权限最大,登陆在后座屏的账号的权限最小。
2)电子设备100根据账号的类型来设置账号的权限
电子设备100在创建或登陆账号时,可以提供多种类型的账号,不同类型的账号具有不同的权限。示例性地,可以根据账号创建或登陆的先后顺序或者用户的选择来确定账号的类型。
示例性地,可以以用户的角色来划分不同账号的类型,例如账号的类型可以分为:家长账号、儿童账号等等,集中,家长账号的权限大于儿童账号的权限。又例如,账号类型可以分为:机主账号、机主授权账号、访客账号等等,其中,机主账号的权限大于机主授权账号的权限大于访客账号的权限。
应理解,账号权限的设置方法不限于上述两种,本申请实施例对此不作限制。
S302.电子设备100在显示屏1上检测到将数据A分享到显示屏2上进行显示的操作。
其中,该数据A可以来源于账号1的存储空间,该数据A可以是指:文字、图片、表格、视频、音频、文档、链接等等形式的数据。本申请实施例对该数据A的展现形式不作限制。
该数据A可以为应用A提供的内容。具体地,该数据A可以为电子设备100在显示屏1上显示应用A时,输入的用于启动应用A提供的某一功能的数据,或者,该数据A可以为电子设备100在显示屏1上显示应用A时,应用A提供的数据。其中,应用A为账号1中安装的独立应用或共享应用。
示例性地,电子设备100可以在显示屏1上显示数据A或数据A的指示信息,检测到用户将数据A分享到显示屏2的操作(例如第一操作),响应于该操作,电子设备100获取该数据A,将该数据A作用账号1需要向账号2分享的内容。在本申请实施例中,该数据A还可以被称为第一内容,该显示屏2还可以被称为第二显示屏。
示例性地,参见图6C-图6F,该第一内容可以是指图6E所示的目的地选项302A,该数据A可以是指该目的地选项302A对应的目的地“C点”,该应用A可以是指导航应用,该操作可以是指图6C-图6D所示的用户作用于目的地选项302A,确认输入目的地“C点”的操作,也可以是指图6E-图6F所示的作用于目的地选项302A向选项303A拖拽的操作。
应理解,该数据A还可以来源于电子设备100中所有账号共享的存储空间。在这种情况下,电子设备100在最终确定将数据A进行跨屏分享时,电子设备100无需对数据A进行跨账号的分享,也可以在跨屏分享时,将一个显示屏上显示的内容分享到另一个显示屏上显示。
S303.电子设备100判断显示屏2是否满足主要条件。
该主要条件包括以下一项或多项:显示屏2上登陆有账号、该显示屏2上登陆的账号中安装有指定应用,该显示屏2上登陆的账号的权限低于账号1的权限等等。该指定应用可以是指用于显示该数据A的应用,该应用可以是指显示屏1显示数据A时,该数据A所属的应用,即步骤S302中提及的应用A,也可以是指与该应用A为同一类型或存在相同功能的应用。
当电子设备100确定显示屏2不满足主要条件,则电子设备100拒绝将数据A分享到显示屏2上进行显示,或者,电子设备100执行步骤S304,当电子设备100确定显示屏2满足主要条件,则电子设备100执行步骤S306。
示例性地,当主要条件为显示屏2上登陆有账号,电子设备100可以在确定显示屏2上登陆有账号的情况下,执行步骤S306,即将数据A分享到显示屏2上登陆的账号的存储空间中,并在显示屏2上显示该数据A。这样,在显示屏2登陆有账号的情况下,显示数据A,可以通过账号来记录数据的显示行为,更好地管控各个显示屏上的显示内容。
示例性地,当主要条件为显示屏2上登陆的账号中安装有指定应用,电子设备100可以在确定显示屏2上登陆的账号中安装有指定应用的情况下,执行步骤S306,即将数据A分享到显示屏2上登陆的账号的存储空间中,并在显示屏2上显示该数据A。例如,假设数据A为视频,该指定应用可以是指视频播放器,在电子设备100确定显示屏2上登陆的账号中安装有视频播放器的情况下,电子设备100可以将该视频发送到显示屏2上登陆的账号的存储空间中,通过账号2中安装的视频播放器,在显示屏上播放该视频。这样,可以保证显示屏2能够更好地展示该数据A,使电子设备100在显示屏2上展示该数据A的效果,接近于在显示屏1上展示该数据A的效果。
示例性地,当主要条件为显示屏2上登陆的账号的权限低于账号1的权限,电子设备100可以在确定显示屏2上登陆的账号低于账号1的权限的情况下,执行步骤S306,即将数据A分享到显示屏2上登陆的账号的存储空间中,并在显示屏2上显示该数据A。这样,可以通过账号的权限管控多屏设备中跨屏分享的内容,使权限不满足要求的账号无法直接实现内容的跨屏分享。
示例性地,当主要条件包括:显示屏2上登陆有账号,该显示屏2上登陆的账号中安装有指定应用,该显示屏2上登陆的账号的权限低于账号1的权限,则电子设备100需要在确定显示屏2登陆有账号,该账号中安装有指定应用,且该账号的权限低于账号1的权限的情况下,才能执行步骤S306,即将数据A分享到显示屏2上登陆的账号的存储空间中,并在显示屏2上显示该数据A。
可以理解的是,该主要条件还可以包含其他内容,例如,该主要条件还可以包括:显示屏2上显示指定应用,这样,电子设备100在确定显示屏2上显示有该指定应用的情况下,可以将数据A分享到显示屏2上显示。本申请实施例对该主要条件不作限制。
应理解,当该数据A为电子设备100中安装的共享应用提供的内容时,电子设备100无需判断显示屏2上登陆的账号中是否安装有指定应用,这是由于共享应用为所有账号共享的应用,其安装在所有账号共享的存储空间中,当电子设备100检测到将显示屏1上显示的应用A提供的数据A分享到显示屏2时,如果电子设备100确定分享到显示屏2上,则电子设备100就能够通过显示屏2上显示的该应用A提供该数据A。
在本申请实施例中,在显示屏上登陆的账号,例如账号2还可以被称为第二账号。
S304.电子设备100调整显示屏2的相关配置。
在电子设备100确定显示屏2未满足主要条件的情况下,可以进一步调整显示屏2的相关配置,进而实现电子设备100能够在显示屏2上显示该数据A。
其中,电子设备100调整显示屏2的相关配置可以包括以下一项或多项:在显示屏2上登陆账号、在显示屏2上登陆的账号中安装指定应用、切换显示屏2上登陆的账号等等。
其中,电子设备100调整显示屏2的相关配置包括以下两种情况:
1)电子设备100自动调整显示屏2的相关配置
也就是说,电子设备100可以在显示屏2未满足主要条件的情况下,自动调整显示屏2的相关配置,使得显示屏2能够满足该主要条件。
2)电子设备100输出提示信息,在用户的选择下调整显示屏2的相关配置
电子设备100输出提示信息可以是指电子设备100在显示屏2上显示提示信息,提示用户调整显示屏2的相关配置。
也就是说,电子设备100可以在显示屏2未满足主要条件的情况下,基于用户操作调整显示屏2的相关配置,使显示屏2能够满足该主要条件。
示例性地,当主要条件为显示屏2上登陆有账号,在电子设备100确定显示屏2上未登陆账号的情况下,电子设备100可以自动在显示屏2上登陆账号,或者,输出提示信息,根据用户的选择(例如第四操作)在显示屏2上登录账号。
示例性地,当主要条件为显示屏2上登陆的账号中安装有指定应用,在电子设备100确定显示屏2上登陆的账号中未安装指定应用的情况下,电子设备100可以自动在该账号中安装指定应用,或者,输出提示信息,根据用户的选择(例如第五操作)在该账号中安装应用。
示例性地,当主要条件为显示屏2上登陆的账号的权限低于账号1的权限,在电子设备100确定显示屏2上登陆的账号的权限不低于账号1的权限的情况下,电子设备100可以自动切换显示屏2上登陆的账号,或者,输出提示信息,根据用户的选择切换显示屏2上登陆的账号。
示例性地,当主要条件包括:显示屏2上登陆有账号,该显示屏2上登陆的账号中安装有指定应用,该显示屏2上登陆的账号的权限低于账号1的权限,则电子设备100可以在确定显示屏2未满足该主要条件的情况下,自动或基于用户的选择在显示屏2上登陆或切换账号,在显示屏2上登陆的账号中安装应用。
可以理解的是,步骤S304为可选的步骤,电子设备100也可以不调整显示屏2的相关配置,那么,在这种情况下,电子设备100可以在确定显示屏2不满足主要条件的情况下,判断显示屏2是否满足次要条件。
S305.电子设备100判断显示屏2是否满足次要条件。
其中,电子设备100可以在确定显示屏2不满足主要条件的情况下,判断显示屏2是否满足次要条件,或者,电子设备100可以在对显示屏2的相关配置进行调整后,判断显示屏2是否满足次要条件。
当电子设备100判断显示屏2满足次要条件时,电子设备100执行步骤S306,否则电子设备100拒绝对数据A进行跨屏分享。
其中,该次要条件可以等于该主要条件,也可以不同于主要条件。
在一些实施方式中,当次要条件等于主要条件时,则电子设备100只有在显示屏2达到主要条件的情况下,才会将数据A分享到显示屏2上进行显示。
在另一些实施方式中,次要条件可以不等于主要条件,则电子设备100在显示屏2未达到主要条件的情况下,可以进一步在显示屏2达到次要条件时,将数据A分享到显示屏2上进行显示。其中,该次要条件可以是指在显示屏2不满足主要条件的情况下,接收到用户同意在显示屏2上显示数据A的操作。也就是说,即使显示屏2不满足主要条件,或者,进一步地,在电子设备100对显示屏2的相关配置进行调整后,仍不满足主要条件,电子设备100也可以在征求到用户的同意后,在显示屏2上显示该数据A。这样,可以加强用户在数据跨屏分享过程中的参与性。
示例性地,当主要条件为该显示屏2上登陆的账号的权限低于账号1的权限时,如果电子设备100确定显示屏2满足次要条件,则电子设备100执行步骤S306。也就是说,在显示屏2上登陆的账号的权限高于或等于账号1的权限的情况下,如果接收到用户同意在显示屏2上显示数据A的操作(例如第二操作),电子设备100也可以将数据A从账号1发送给账号2,并在显示屏2上显示该数据A。否则,如果接收到用户拒绝在显示屏2上显示数据A的操作(例如第三操作),电子设备100拒绝跨屏分享。
具体地,当显示屏2上登陆的账号的权限高于或等于账号1的权限时,电子设备100可以输出提示信息,提示用户是否在显示屏2上显示数据A。在电子设备100检测到用户同意在显示屏2上显示数据A的情况下,电子设备100即可在显示屏2上显示该数据A。这样,即使显示屏2上登陆的账号的权限无法满足小于账号1的权限这一要求,电子设备100也可以在用户的许可下,实现数据A的跨屏分享,增强用户对跨屏分享的数据的管控。
示例性地,图7C示出了显示屏2上登陆的账号2的权限比显示屏1上登陆的权限高时,电子设备100在显示屏2上显示的提示信息501,该提示信息501用于提示用户是否在显示屏2上显示到显示屏1分享的目的地“C点”的导航路线。
示例性地,当主要条件为该显示屏2上登陆的账号中安装有指定应用时,如果电子设备100确定显示屏2满足次要条件,则电子设备100执行步骤S306。也就是说,在显示屏2上登陆的账号中未安装指定应用的情况下,如果接收到用户同意在显示屏2上显示数据A的操作,电子设备100也可以将数据A从账号1发送给账号2,并在显示屏2上显示该数据A。
应理解,本申请实施例对该次要条件不作限制。
S306.电子设备100将数据A发送到显示屏2上登录的账号2的存储空间中,并在显示屏2上显示数据A。
电子设备100在确定将数据A分享到显示屏2进行显示时,电子设备100可以将该数据A发送到显示屏2登陆的账号的存储空间中,并通过显示屏2显示该数据A。
应理解,电子设备100除了在显示屏2上显示数据A本身,还可以显示根据该数据A得到的内容。该内容可以为电子设备100基于该数据A进一步响应得到的内容,也就是指用于指示该数据A的内容。例如,当数据A为文字时,电子设备100可以在显示屏2上显示该文字,当数据A为图片时,电子设备100在显示屏2上显示的内容可以为该图片的缩略图,当数据A为链接时,电子设备100在显示屏2上显示的内容可以为该链接指示的网页内容。
其中,当电子设备100在账号2中安装有用于显示该数据A的应用时,电子设备100可以通过该账号2中安装的该应用,在显示屏2上显示该应用提供的根据该应用A得到的内容。示例性地,电子设备100可以在显示屏2上显示该应用的用户界面,该用户界面中包括该数据A或包括用于指示该数据A的内容。
示例性地,参见图7E,该数据A可以是指地点“C点”,电子设备100可以在显示屏2上显示如图7E所示的电子设备100当前所在位置到地点“C点”的导航路线。
另外,电子设备100除了可以在显示屏2上显示数据A,还可以输出与该数据A有关的语音提示、震动等等。
应理解,将数据A为共享应用提供的内容时,则电子设备100无需将数据A从账号1的存储空间分享到账号2的存储空间,账号2可以直接访问到位于所有账号共享的存储空间中的该数据A。
总的来说,本申请实施例提供的跨屏分享方法实现了在电子设备需要对数据进行跨屏分享时,能够基于显示屏上登陆的账号的相关信息,例如账号的权限、账号中安装的应用等等,来确定是否进行数据的跨屏分享,或者是否需要用户的授权才能够完成数据的跨屏分享,这样,只有在达到预设条件的情况下,电 子设备才能够实现数据的跨屏分享,加强了电子设备对跨屏分享的数据的管控。
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请还提供一种电子设备,该电子设备可以包括:存储器和处理器。其中,存储器可用于存储计算机程序;处理器可用于调用所述存储器中的计算机程序,以使得该电子设备执行上述任意一个实施例中电子设备100执行的方法。
本申请还提供了一种芯片系统,所述芯片系统包括至少一个处理器,用于实现上述任一个实施例中电子设备100执行的方法中所涉及的功能。
在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存程序指令和数据,存储器位于处理器之内或处理器之外。
该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
本申请还提供一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得计算机执行上述任一个实施例中电子设备100任意一个执行的方法。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)。当所述计算机程序被运行时,使得计算机执行上述任一个实施例中电子设备100任意一个执行的方法。
应理解,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(AP 800plication specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的方法。
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现 时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (15)

  1. 一种跨屏分享方法,其特征在于,所述方法应用于包含第一显示屏和第二显示屏的电子设备,所述方法包括:
    所述电子设备在所述第一显示屏上登陆第一账号;
    所述电子设备在所述第一显示屏上显示第一内容或所述第一内容的指示信息;
    所述电子设备检测到将所述第一内容分享到所述第二显示屏的第一操作,所述第二显示屏上登陆有第二账号;
    在所述第一账号的权限高于所述第二账号的权限的情况下,所述电子设备在所述第二显示屏上显示所述第一内容或根据所述第一内容得到的第二内容。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一账号的权限低于或等于所述第二账号的权限的情况下,所述方法还包括:
    所述电子设备拒绝响应所述第一操作;
    或者,
    所述电子设备输出第一提示信息,所述第一提示信息用于提示用户将所述第一内容分享到第二显示屏;所述电子设备接收到同意分享的第二操作,在所述第二显示屏上显示所述第一内容或根据所述第一内容得到的第二内容,或者,所述电子设备接收到拒绝分享的第三操作,拒绝响应所述第一操作。
  3. 根据权利要求1或2所述的方法,其特征在于,所述电子设备检测到将所述第一内容分享到所述第二显示屏的第一操作之前,所述第二显示屏上未登陆账号,所述电子设备检测到将所述第一内容分享到所述第二显示屏的第一操作之后,所述方法还包括:
    所述电子设备自动在所述第二显示屏上登陆所述第二账号,或者,所述电子设备接收到第四操作,在所述第二显示屏上登陆所述第二账号。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一操作包括:作用于所述第一显示屏上显示的,用于指示所述第二显示屏的选项的用户操作。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一账号对应所述电子设备中的第一存储空间,所述第二账号对应所述电子设备中的第二存储空间,所述第一存储空间和所述第二存储空间相互隔离。
  6. 根据权利要求5所述的方法,其特征在于,所述电子设备在所述第二显示屏上显示所述第一内容或所述第二内容之前,所述第一内容位于所述第一存储空间中,所述电子设备在所述第二显示屏上显示根据所述第一内容得到的第二内容之前,所述方法还包括:
    所述电子设备将所述第一内容发送到所述第二存储空间中。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一内容由第一应用提供,
    所述电子设备在所述第二显示屏上显示所述第一内容或所述第二内容,具体包括:
    所述电子设备在所述第二显示屏上显示第二应用提供的所述第一内容或所述第二内容,所述第二应用与所述第一应用为同一应用,或者,同一类型的应用。
  8. 根据权利要求7所述的方法,其特征在于,所述电子设备在所述第二显示屏上显示第二应用提供的所述第一内容或所述第二内容之前,所述方法还包括:
    所述电子设备自动将所述第二应用安装在所述第二账号的存储空间中,或者,所述电子设备接收到第五操作,将所述第二应用安装在所述第二账号的存储空间中。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,第一内容和第二内容位于所述第一账号和所述第二账号共享的第三存储空间。
  10. 根据权利要求9所述的方法,其特征在于,所述第一内容和所述第二内容均由所述第三存储空间中安装的共享应用提供。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述第一内容包括以下一项或多项:文字、图片、视频、音频、链接、文件、表格。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述电子设备包括一个系统级芯片,所述多个账号对应的存储空间的运行由所述一个系统级芯片支持。
  13. 一种电子设备,其特征在于,包括多个显示屏,存储器,一个或多个处理器,以及一个或多个程序;所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至12任一项所述的方法。
  14. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至12任一项所述的方法。
  15. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行如权利要求1至12任一项所述的方法。
PCT/CN2023/123376 2022-10-12 2023-10-08 跨屏分享方法、图形界面及相关装置 WO2024078412A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211249885.X 2022-10-12
CN202211249885.XA CN117873409A (zh) 2022-10-12 2022-10-12 跨屏分享方法、图形界面及相关装置

Publications (1)

Publication Number Publication Date
WO2024078412A1 true WO2024078412A1 (zh) 2024-04-18

Family

ID=90590575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/123376 WO2024078412A1 (zh) 2022-10-12 2023-10-08 跨屏分享方法、图形界面及相关装置

Country Status (2)

Country Link
CN (1) CN117873409A (zh)
WO (1) WO2024078412A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506618A (zh) * 2016-10-24 2017-03-15 北京奇虎科技有限公司 一种信息分享方法、装置及移动终端
US20190158725A1 (en) * 2017-11-21 2019-05-23 Olympus Corporation Information apparatus, control method, and computer readable recording medium
CN114449090A (zh) * 2020-11-05 2022-05-06 华为技术有限公司 数据分享方法、装置、系统及电子设备
CN115079967A (zh) * 2021-03-10 2022-09-20 上海博泰悦臻网络技术服务有限公司 车辆多屏分级控制方法及其车载系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506618A (zh) * 2016-10-24 2017-03-15 北京奇虎科技有限公司 一种信息分享方法、装置及移动终端
US20190158725A1 (en) * 2017-11-21 2019-05-23 Olympus Corporation Information apparatus, control method, and computer readable recording medium
CN114449090A (zh) * 2020-11-05 2022-05-06 华为技术有限公司 数据分享方法、装置、系统及电子设备
CN115079967A (zh) * 2021-03-10 2022-09-20 上海博泰悦臻网络技术服务有限公司 车辆多屏分级控制方法及其车载系统

Also Published As

Publication number Publication date
CN117873409A (zh) 2024-04-12

Similar Documents

Publication Publication Date Title
WO2020143408A1 (zh) 显示方法及相关装置
CN110276177B (zh) 智能终端的登录方法及电子设备
KR102484738B1 (ko) 어플리케이션 권한을 관리하는 방법 및 전자 장치
EP4113415A1 (en) Service recommending method, electronic device, and system
US20230094172A1 (en) Cross-Device Application Invoking Method and Electronic Device
WO2021253975A1 (zh) 应用程序的权限管理方法、装置和电子设备
WO2023029967A1 (zh) 一种播放音频的方法及电子设备
CN114327175B (zh) 一种信息分享方法及设备
CN114817939A (zh) 权限控制方法和电子设备
WO2023088459A1 (zh) 设备协同方法及相关装置
WO2023005711A1 (zh) 一种服务的推荐方法及电子设备
EP4177777A1 (en) Flexibly authorized access control method, and related apparatus and system
CN117331455A (zh) 多用户管理方法、图形界面及相关装置
WO2024078412A1 (zh) 跨屏分享方法、图形界面及相关装置
CN115238299A (zh) 基于安全等级的访问控制方法、相关装置及系统
CN115701018A (zh) 安全调用服务的方法、安全注册服务的方法及装置
CN115242547B (zh) 一种远程协助的系统、方法和电子设备
EP4366235A1 (en) Cross-device authentication method and apparatus
WO2023207890A1 (zh) 一种界面显示方法及电子设备
WO2023160497A1 (zh) 应用程序的权限管理方法及相关装置
CN117348767A (zh) 应用管理方法、图形界面及相关装置
CN116702163A (zh) 权限管理的方法及终端设备
CN114637441A (zh) 空间管理的方法、装置、电子设备和可读存储介质
CN117406874A (zh) 内容分享方法、图形界面及相关装置
CN114443238A (zh) 应用程序的调用方法、装置、终端设备及介质