A shortcut one-key wireless screen projection method and system

By setting up one-click screen mirroring information and generating shortcuts in the app, the cumbersome nature of traditional screen mirroring methods is solved, achieving an efficient and convenient wireless screen mirroring experience while reducing hardware requirements and protocol limitations.

CN114911443BActive Publication Date: 2025-11-07SHENZHEN BOZEE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210462942.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2025-11-07
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

Existing wireless screen mirroring methods are cumbersome, requiring users to enter a screen mirroring code, scan a QR code, or search for devices. These methods have high hardware requirements, and the built-in screen mirroring function of mobile phone systems is limited, resulting in a poor user experience.

Method used

This invention provides a one-click wireless screen mirroring method. By pre-setting screen mirroring information in the APP, a shortcut is generated, including the shortcut and desktop widget. Users can connect to screen mirroring with one click. It supports multiple screen mirroring methods and automatically detects and switches networks.

Benefits of technology

It achieves an efficient and convenient screen mirroring experience, eliminates cumbersome operations, saves hardware costs, breaks through screen mirroring protocol limitations, and improves functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114911443B_ABST
    Figure CN114911443B_ABST
Patent Text Reader

Abstract

The application discloses a one-key wireless screen projection method and system of a shortcut, wherein the method comprises the following steps: performing one-key screen projection information pre-setting processing in an APP with a screen projection function to obtain a set APP; performing one-key screen projection shortcut creation processing on the set APP to generate a screen projection shortcut on a display interface of a screen projection end; the screen projection end judges whether the screen projection information is correct; if the screen projection information is incorrect, an error prompt is given, and an editing interface for one-key screen projection information pre-setting is jumped to for editing processing, and after the editing is completed, the previous step is returned; if the screen projection information is correct, the screen projection end switches a current network to a preset network of the screen projection information, and performs screen projection connection. In the embodiment of the application, the one-key screen projection function can be realized, and the use experience is more efficient and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the wireless projection technology field, and in particular to a one-key wireless projection method and system of a shortcut. BACKGROUND

[0002] The traditional projection methods commonly seen in the market at present are as follows: (1) projection code projection: connecting and projecting by inputting the projection code of a large screen; (2) scanning code projection: connecting and projecting by scanning the screen two-dimensional code; (3) searching projection: connecting and projecting by searching the projection device under the local area network and selecting the device; (4) NFC projection: the mobile phone obtains the projection information by NFC sensing the NFC module of the large screen, and then connects and projects; (5) the projection of the mobile phone system: the mobile phone connects and projects by realizing the projection protocol specified by the industry and receiving the universal implementation of the projection protocol. The traditional projection methods have the following disadvantages: (1) compared with the one-key projection function, the first three methods are more cumbersome in use experience, and some operations need to be performed before projection, such as inputting the projection code, scanning the code or searching the local area network device; (2) compared with the one-key projection function, the NFC projection has certain requirements on hardware, and requires the mobile phone to have NFC sensing function, but there are still many mobile phones on the market that do not have NFC sensing function, and the audience is limited; (3) the projection of the mobile phone system is limited in projection function and poor in function richness because it needs to realize the projection protocol specified by the industry. SUMMARY

[0003] The present application aims to overcome the shortcomings of the prior art, and provides a one-key wireless projection method and system based on a shortcut, which can realize the one-key projection function and make the use experience more efficient and convenient.

[0004] In order to solve the above technical problems, the present application provides a one-key wireless projection method based on a shortcut, which comprises the following steps:

[0005] Pre-setting the projection information for one-key projection in the APP with the projection function to obtain the set APP;

[0006] Creating the projection shortcut of the set APP for one-key projection, and generating the projection shortcut on the display interface of the projection end, wherein the projection shortcut comprises a shortcut and a desktop component widget;

[0007] When the user clicks the projection shortcut to perform the projection operation, the projection end judges whether the projection information is correct;

[0008] If the screen projection information is incorrect, an error prompt is given, and the editing interface of the screen projection information pre-setting of the one-key screen projection is jumped to for editing processing, and after the editing is completed, the screen projection end is returned to the step of judging whether the screen projection information is correct;

[0009] If the screen projection information is correct, the screen projection end switches the current network to the preset network of the screen projection information, and performs screen projection connection.

[0010] Optionally, the one-key screen projection screen projection information pre-setting processing in the APP with the screen projection function obtains the set APP, and the method comprises the following steps of:

[0011] The screen projection information is set in the one-key screen projection setting interface corresponding to the APP with the screen projection function.

[0012] After the setting is completed, the screen projection information is cached based on the screen projection preference of a user, a screen projection option in the form of an information list is generated, and the set APP is obtained.

[0013] Optionally, the screen projection information comprises a wireless network name and a corresponding wireless network password of a local area network, a device IP, a device name, a device password, and a screen projection mode; wherein the screen projection mode comprises a screen projection code screen projection mode, a code scanning screen projection mode, a search screen projection mode, and an NFC screen projection mode.

[0014] Optionally, the one-key screen projection screen projection shortcut creation processing of the set APP generates a screen projection shortcut on the display interface of the screen projection end, and the method comprises the following steps of:

[0015] The shortcut function menu of the one-key screen projection screen projection shortcut of the set APP is created, and when the set APP is long-pressed on the display interface of the screen projection end, the shortcut function menu appears, and the shortcut function menu comprises a one-key screen projection option; or,

[0016] The widget of the one-key screen projection screen projection shortcut of the set APP is created, and the desktop component is added on the display interface of the screen projection end.

[0017] Optionally, the shortcut function menu creation processing of the one-key screen projection screen projection shortcut of the set APP comprises the following steps of:

[0018] An XML file is created under the res / xml directory of the Android system, and the XML file is named as shortcuts.xml, and the XML file is used to register the attributes of the shortcut entry.

[0019] The XML file is used in the place of configuring activity in manifest, and the activity is set as a starting activity.

[0020] Optionally, the widget creation process of the one-key screen projection shortcut of the set APP includes:

[0021] A UI file is created under the res / layout / directory of the Android system, the UI file is named app_widget.xml, and the widget UI layout design is performed;

[0022] A configuration file is created under the res / xml / directory, and the configuration file is named app_widget_info.xml, the configuration file is used to define desktop component information, and the size of the desktop component, whether the size can be customized, and the desktop component name are specified;

[0023] The class of the desktop component is defined as ShareScreenAppWidget, and is inherited from AppWidgetProvider;

[0024] The desktop component is registered under the AndroidManifest.xml file.

[0025] Optionally, the user clicks the screen projection shortcut to perform the screen projection operation, including:

[0026] The user long-presses the icon of the set APP on the display interface of the screen projection end, and a shortcut function menu appears based on the long-press operation, and a one-key screen projection option in the function menu is selected to perform the screen projection operation; or,

[0027] The user clicks the desktop component on the display interface of the screen projection end to perform the screen projection operation.

[0028] Optionally, the screen projection end judges whether the screen projection information is correct, including:

[0029] The screen projection end reads the screen projection information of the one-key screen projection of the set APP when the user performs the screen projection operation, and judges the accuracy of the screen projection information.

[0030] Optionally, the screen projection end switches the current network to the preset network of the screen projection information, and performs screen projection connection, including:

[0031] obtain a wireless network name and a corresponding wireless network password of a local area network in the screen projection information, and determine whether a local area network to which a current network of the screen projection end belongs is consistent with the local area network in the screen projection information;

[0032] If consistent, screen projection connection is performed with the screen projection receiving end; if not consistent, a local area network switching process is performed based on the wireless network name and the corresponding wireless network password of the local area network in the screen projection information.

[0033] After the local area network switching succeeds, screen projection connection is performed with the screen projection receiving end, or after the local area network switching fails, it is prompted that the local area network switching fails, and the screen projection ends.

[0034] In addition, the embodiment of the application further provides a one-key wireless screen projection device based on a shortcut, and the device comprises:

[0035] A setting module is configured to perform one-key screen projection information pre-setting processing in an APP with a screen projection function, and obtain a set APP.

[0036] A creating module is configured to perform one-key screen projection shortcut creating processing on the set APP, and generate a screen projection shortcut on a display interface of the screen projection end, wherein the screen projection shortcut comprises a shortcut shortcut and a desktop component widget.

[0037] A judging module is configured to judge whether the screen projection information is correct when a user clicks the screen projection shortcut to perform a screen projection operation.

[0038] A re-editing module is configured to, if the screen projection information is incorrect, perform error prompting, jump to an editing interface of one-key screen projection information pre-setting to perform editing processing, and return to the step of judging whether the screen projection information is correct after the editing is completed.

[0039] A screen projection connection module is configured to, if the screen projection information is correct, switch a current network of the screen projection end to a preset network of the screen projection information, and perform screen projection connection.

[0040] In the embodiment of the application, one-key screen projection is more efficient and convenient in screen projection use experience; cumbersome operations of a traditional screen projection mode, such as inputting a screen projection code, scanning a code, searching for a local area network device, and the like, are abandoned; and one-key screen projection can replace NFC screen projection to some extent, and no longer has a hardware requirement of an NFC induction module, thereby saving hardware cost; meanwhile, one-key screen projection can replace a screen projection function of a mobile phone system, break through a limitation of a screen projection protocol specified by the industry, and improve the richness of functions. BRIEF DESCRIPTION OF DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0042] Figure 1 is a flowchart of a one-key wireless screen projection method based on a shortcut in an embodiment of the present application.

[0043] Figure 2 is a structural composition diagram of a one-key wireless screen projection device based on a shortcut in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments only constitute some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0045] Embodiment one

[0046] Please refer to Figure 1 , Figure 1 is a flowchart of a one-key wireless screen projection method based on a shortcut in an embodiment of the present application.

[0047] As Figure 1 shown, a one-key wireless screen projection method based on a shortcut, the method comprises:

[0048] S11: performing a one-key screen projection information pre-setting process in an APP with a screen projection function to obtain a set APP;

[0049] In the specific implementation process of the present application, the one-key screen projection information pre-setting process in the APP with the screen projection function to obtain the set APP comprises: performing a setting process of the screen projection information in a corresponding one-key screen projection setting interface of the APP with the screen projection function; after the setting is completed, caching the screen projection information based on the user's screen projection preference to generate a screen projection option in the form of an information list, and obtaining the set APP.

[0050] Further, the screen projection information comprises a wireless network name and a corresponding wireless network password of a local area network, a device IP, a device name, a device password, and a screen projection mode; wherein the screen projection mode comprises a screen projection code screen projection mode, a scanning code screen projection mode, a search screen projection mode, and an NFC screen projection mode.

[0051] Specifically, the one-key projection information setting processing of the user is provided in the projection information editing function module in the APP with the projection function, and after the user completes the setting, the projection information is cached according to the projection preference of the user, and the projection option in the form of information list is generated for the user to project now, so that the set APP is obtained; wherein the projection information includes the wireless network name and the corresponding wireless network password of the local area network, the device IP, the device name, the device password and the projection mode; wherein the projection mode includes the projection code projection mode, the scanning code projection mode, the search projection mode and the NFC projection mode.

[0052] S12: one-key projection shortcut creation processing of the set APP, and a projection shortcut is generated on the display interface of the projection end, and the projection shortcut includes a shortcut shortcut and a desktop component widget;

[0053] In the specific implementation process of the present application, the one-key projection shortcut creation processing of the set APP, and a projection shortcut is generated on the display interface of the projection end, includes: shortcut function menu creation processing of the one-key projection shortcut of the set APP, and when the set APP is long-pressed on the display interface of the projection end, a shortcut function menu appears, and the shortcut function menu contains a one-key projection option; or desktop component widget creation processing of the one-key projection shortcut of the set APP, and a desktop component is added on the display interface of the projection end.

[0054] Further, the shortcut function menu creation processing of the one-key projection shortcut of the set APP includes: creating an XML file under the res / xml directory of the Android system, and naming the XML file as shortcuts.xml, the XML file is used to register the attributes of the shortcut entry; the XML file is configured in the activity place of the manifest, and the activity is set as the starting activity.

[0055] Further, the desktop component widget creation processing of the one-key projection shortcut of the set APP includes:

[0056] Create a UI file under the res / layout / directory of the Android system, name the UI file app_widget.xml, and design the UI layout of the widget; create a configuration file under the res / xml / directory, and name the configuration file app_widget_info.xml, which is used to define the desktop widget information, specifies the size of the desktop widget, whether the size is customizable, the name of the desktop widget; define the class of the desktop widget as ShareScreenAppWidget, and inherit from AppWidgetProvider; register the desktop widget under the AndroidManifest.xml file.

[0057] Specifically, there are two shortcut one-key screen modes in the Android system, namely, the shortcut shortcut and the desktop widget widget; and the technical implementation of the one-key screen function of the shortcut shortcut and the desktop widget widget is as follows:

[0058] (1) Preparation:

[0059] A, shortcut shortcut preparation: a. create a new xml file under the res / xml directory, and name it shortcuts.xml, which is used to register the properties of the shortcut entry; b. use in the configuration of the activity in the manifest, and this activity, and the activity is the starting activity.

[0060] B, desktop widget widget preparation: a. create a UI file under the res / layout / directory, and name it app_widget.xml, design the UI layout of the widget; b. create a configuration file under the res / xml / directory, and name it app_widget_info.xml, which is used to define the desktop widget information, specifies the size of the widget, whether the size is customizable, the name of the widget, etc.; c. define the widget class ShareScreenAppWidget, and inherit from AppWidgetProvider, in the life cycle function provided by it, realize the entry logic of one-key screen; d. register the widget under the AndroidManifest.xml file, similar to the registration method of the broadcast receiver.

[0061] S13: when the user clicks the screen shortcut to perform the screen operation;

[0062] In the embodiment of the present application, the user clicks the screen projection shortcut to perform the screen projection operation, including: the user long-presses the icon of the set APP on the display interface of the screen projection end, and a shortcut function menu appears based on the long-press operation, and the user selects the one-key screen projection option in the function menu to perform the screen projection operation; or the user clicks the desktop component on the display interface of the screen projection end to perform the screen projection operation.

[0063] Specifically, there are two kinds of shortcut screen projection modes, that is, when the user long-presses the icon of the set APP on the display interface of the screen projection end, a shortcut function menu appears based on the long-press operation, and the user can select the one-key screen projection option in the function menu to perform the screen projection operation; or the user clicks the desktop component on the display interface of the screen projection end to perform the screen projection operation.

[0064] S14: The screen projection end judges whether the screen projection information is correct.

[0065] In the embodiment of the present application, the screen projection end judges whether the screen projection information is correct, including: the screen projection end reads the screen projection information cached in the one-key screen projection of the set APP when the user performs the screen projection operation, and judges the accuracy of the screen projection information.

[0066] Specifically, when the user performs the one-key screen projection operation on the screen projection end, the screen projection information cached in the one-key screen projection of the set APP is first read, and then the accuracy of the screen projection information is judged; and the subsequent judgment result is replaced to perform the corresponding operation.

[0067] S15: When the screen projection information is correct, the screen projection end switches the current network to the preset network of the screen projection information, and performs the screen projection connection.

[0068] In the embodiment of the present application, the screen projection end switches the current network to the preset network of the screen projection information, and performs the screen projection connection, including: obtaining the wireless network name and the corresponding wireless network password of the local area network in the screen projection information, and judging whether the local area network to which the current network of the screen projection end belongs is consistent with the local area network in the screen projection information; if consistent, performing the screen projection connection with the screen projection receiving end; if not consistent, performing the local area network switching processing based on the wireless network name and the corresponding wireless network password of the local area network in the screen projection information; after the local area network switching succeeds, performing the screen projection connection with the screen projection receiving end, or after the local area network switching fails, prompting the local area network switching failure and ending the screen projection.

[0069] Specifically, the wireless network name and the corresponding wireless network password of the local area network in the screen projection information need to be obtained, and the local area network to which the current network of the screen projection end belongs is obtained, and then it is judged whether the local area network to which the current network of the screen projection end belongs is consistent with the local area network in the screen projection information; if consistent, the screen projection connection with the screen projection receiving end is performed until the screen projection is successful; if inconsistent, the local area network switching processing is performed according to the wireless network name and the corresponding wireless network password of the local area network in the screen projection information; and then it is judged whether the network switching is successful, when the switching is unsuccessful, the network switching failure is prompted, and the screen projection is ended; when the network switching is successful, the screen projection connection with the screen projection receiving end is performed until the screen projection is successful.

[0070] S16: If the screen projection information is incorrect, an error prompt is performed, and the editing interface of the screen projection information pre-setting of the one-key screen projection is jumped to for editing processing, and after the editing is completed, the screen projection end judging whether the screen projection information is correct step is returned.

[0071] In the specific implementation process of the application, when the screen projection information is incorrect, an error prompt is performed, and the one-key screen projection information editing page is jumped to, prompting the user to re-edit the screen projection information, and after the editing is completed, the edited screen projection information is re-cached according to the user preference, and finally the screen projection end judging whether the screen projection information is correct step is returned.

[0072] In the embodiment of the application, the one-key screen projection is more efficient and convenient in the screen projection use experience; the cumbersome operation of the traditional screen projection mode is abandoned, such as inputting a screen projection code, scanning a code, searching for a local area network device, etc.; and the one-key screen projection can replace the NFC screen projection to a certain extent, without the hardware requirement of the NFC sensing module, saving hardware cost; at the same time, the one-key screen projection can replace the screen projection function of the mobile phone system, breaking through the limitation of the screen projection protocol specified by the industry, and improving the richness of the function.

[0073] Embodiment two

[0074] Please refer to Figure 2 , Figure 2 is the structural composition schematic diagram of the one-key wireless screen projection device based on the shortcut in the embodiment of the application.

[0075] As Figure 2 shown, a one-key wireless screen projection device based on a shortcut, the device comprises:

[0076] The setting module 21 is used for pre-setting the screen projection information of the one-key screen projection in the APP with the screen projection function, and obtaining the set APP.

[0077] In the embodiment of the present application, the one-key screen projection information pre-setting processing in the APP with screen projection function comprises: setting the screen projection information in the one-key screen projection setting interface corresponding to the APP with screen projection function; and caching the screen projection information based on the user's screen projection preference after the setting is completed, generating a screen projection option in the form of an information list, and obtaining the set APP.

[0078] Further, the screen projection information comprises a wireless network name and a corresponding wireless network password of a local area network, a device IP, a device name, a device password, and a screen projection mode; wherein the screen projection mode comprises a screen projection code screen projection mode, a code scanning screen projection mode, a search screen projection mode, and an NFC screen projection mode.

[0079] Specifically, the screen projection information setting processing of the one-key screen projection of the user is provided in the screen projection information editing function module in the APP with screen projection function, and after the user completes the setting, the screen projection information is cached according to the user's screen projection preference, and a screen projection option in the form of an information list is generated for the user to select the screen projection, thereby obtaining the set APP; wherein the screen projection information comprises a wireless network name and a corresponding wireless network password of a local area network, a device IP, a device name, a device password, and a screen projection mode; wherein the screen projection mode comprises a screen projection code screen projection mode, a code scanning screen projection mode, a search screen projection mode, and an NFC screen projection mode.

[0080] The creation module 22 is used for one-key screen projection shortcut creation processing of the set APP, and a screen projection shortcut is generated on the display interface of the screen projection end, wherein the screen projection shortcut comprises a shortcut shortcut and a desktop component widget;

[0081] In the embodiment of the present application, the one-key screen projection shortcut creation processing of the set APP, and a screen projection shortcut is generated on the display interface of the screen projection end, comprises: shortcut function menu creation processing of the screen projection shortcut of the one-key screen projection of the set APP, and when the set APP is long-pressed on the display interface of the screen projection end, a shortcut function menu appears, and the shortcut function menu comprises a one-key screen projection option; or desktop component widget creation processing of the screen projection shortcut of the one-key screen projection of the set APP, and a desktop component is added on the display interface of the screen projection end.

[0082] Further, the shortcut function menu creation process of the one-key projection shortcut of the set APP includes: creating an XML file under the res / xml directory of the Android system, naming the XML file as shortcuts.xml, and the XML file is used to register the properties of the shortcut entry; the XML file is used in the place of configuring activity in the manifest, and the activity is set as the starting activity.

[0083] Further, the widget creation process of the one-key projection shortcut of the set APP includes:

[0084] A UI file is created under the res / layout / directory of the Android system, the UI file is named as app_widget.xml, and the widget UI layout design is performed; a configuration file is created under the res / xml / directory, and the configuration file is named as app_widget_info.xml, the configuration file is used to define the desktop widget information, and the size of the desktop widget, whether the size is customizable, the desktop widget name are specified; the class of the desktop widget is defined as ShareScreenAppWidget, and inherits from AppWidgetProvider; the desktop widget is registered under the AndroidManifest.xml file.

[0085] Specifically, there are two kinds of shortcut one-key projection modes in the Android system, namely shortcut and widget; and the technical implementation of the one-key projection function of the shortcut and the widget is as follows:

[0086] (1) Preparation:

[0087] A, shortcut preparation: a. create a new xml file under the res / xml directory, and name it shortcuts.xml, which is used to register the properties of the shortcut entry; b. use it in the place of configuring activity in the manifest, and this activity, and the activity is the starting activity.

[0088] B, desktop component widget preparation: a. create a UI file under the res / layout / directory and name it app_widget.xml, design the widget UI layout; b. create a configuration file under the res / xml / directory and name it app_widget_info.xml, which is used to define the desktop component information, specify the size of the component, whether it can be customized size, component name, etc.; c. define the component class ShareScreenAppWidget, and inherit from AppWidgetProvider, in the life cycle function provided, implement the one-key screen projection entry logic; d. register the widget in the AndroidManifest.xml file, similar to the broadcast receiver registration method.

[0089] The judgment module 23 is used for judging whether the screen projection information is correct when the user clicks the screen projection shortcut to perform the screen projection operation.

[0090] In the specific implementation process of the application, the user clicks the screen projection shortcut to perform the screen projection operation, including: the user long-presses the icon of the set APP on the display interface of the screen projection end, and based on the long-press operation, a shortcut function menu appears, and the user selects the one-key screen projection option in the function menu to perform the screen projection operation; or the user clicks the desktop component on the display interface of the screen projection end to perform the screen projection operation.

[0091] Specifically, because there are two kinds of shortcut screen projection methods, when the user long-presses the icon of the set APP on the display interface of the screen projection end, a shortcut function menu will appear according to the long-press operation, and the user can select the one-key screen projection option in the function menu to perform the screen projection operation; or the user clicks the desktop component on the display interface of the screen projection end to perform the screen projection operation.

[0092] In the specific implementation process of the application, the screen projection end judges whether the screen projection information is correct, including: the screen projection end reads the screen projection information cached in the one-key screen projection of the set APP when the user performs the screen projection operation, and judges the accuracy of the screen projection information.

[0093] Specifically, when the user performs the one-key screen projection operation on the screen projection end, the screen projection information cached in the one-key screen projection of the set APP is first read, and then the accuracy of the screen projection information is judged; and the subsequent judgment result is replaced to perform corresponding operation.

[0094] The reediting module 24 is configured to, if the screen projection information is incorrect, give an error prompt, jump to an editing interface of the screen projection information pre-setting of the one-key screen projection, and edit and process, and return to the step of judging whether the screen projection information is correct after the editing is completed.

[0095] In the embodiment of the present application, if the screen projection information is incorrect, an error prompt is given, and the user is prompted to edit the screen projection information again by jumping to the screen projection information editing page of the one-key screen projection, and the edited screen projection information is re-cached according to the user's preference after the editing is confirmed, and finally the step of judging whether the screen projection information is correct is returned.

[0096] The screen projection connection module 25 is configured to, if the screen projection information is correct, switch the current network of the screen projection end to the preset network of the screen projection information, and perform screen projection connection.

[0097] In the embodiment of the present application, the screen projection connection module 25 is configured to, if the screen projection information is correct, switch the current network of the screen projection end to the preset network of the screen projection information, and perform screen projection connection.

[0098] Specifically, the wireless network name and the corresponding wireless network password of the local area network in the screen projection information are obtained, and the local area network to which the current network of the screen projection end belongs is obtained, and then it is judged whether the local area network to which the current network of the screen projection end belongs is consistent with the local area network in the screen projection information; if consistent, the screen projection connection with the screen projection receiving end is performed until the screen projection is successful; if inconsistent, the local area network switching processing is performed according to the wireless network name and the corresponding wireless network password of the local area network in the screen projection information; then it is judged whether the network switching is successful, and if the network switching is unsuccessful, the network switching failure is prompted and the screen projection is ended; if the network switching is successful, the screen projection connection with the screen projection receiving end is performed until the screen projection is successful.

[0099] In the embodiment of the present application, the one-key projection is more efficient and convenient in the projection experience. The one-key projection discards the cumbersome operation of the traditional projection mode, such as inputting a projection code, scanning a code, searching a local area network device, etc. The one-key projection can replace the NFC projection to some extent, and no longer requires the hardware of the NFC induction module, thereby saving the hardware cost. Meanwhile, the one-key projection can replace the projection function of the mobile phone system, break through the limitation of the projection protocol in the industry, and improve the richness of the function.

[0100] Those skilled in the art can understand that all or part of the steps in the above-mentioned various methods of the embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer readable storage medium, which can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0101] In addition, the one-key wireless projection method and system of the shortcut provided by the embodiment of the present application are described in detail above, and the principle and implementation mode of the present application are described by using specific examples in this paper. The above description of the embodiments is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as a limitation of the present application.

Claims

1. A one-touch wireless projection method based on a shortcut, characterized in that, The method comprises: Pre-setting the screen projection information of one-key screen projection in an APP with screen projection function, and obtaining the set APP; Creating a screen projection shortcut of one-key screen projection for the set APP, and generating a screen projection shortcut on the display interface of the screen projection end, wherein the screen projection shortcut comprises a shortcut and a desktop component; When a user clicks the screen projection shortcut to perform a screen projection operation, the screen projection end judges whether the screen projection information is correct; If the screen projection information is incorrect, an error prompt is given, and the editing interface of the pre-setting of the screen projection information of one-key screen projection is jumped to for editing, and after the editing is completed, the step of judging whether the screen projection information is correct is returned; If the screen projection information is correct, the screen projection end switches the current network to the preset network of the screen projection information, and performs screen projection connection; The screen projection information comprises the wireless network name and corresponding wireless network password of a local area network, device IP, device name, device password, and screen projection mode; wherein the screen projection mode comprises a screen projection code screen projection mode, a scanning code screen projection mode, a search screen projection mode, and an NFC screen projection mode.

2. The one-key wireless projection method of claim 1, wherein, The pre-setting of the screen projection information of one-key screen projection in an APP with screen projection function comprises: Setting the screen projection information in the corresponding one-key screen projection setting interface of the APP with screen projection function; After the setting is completed, the screen projection information is cached based on the screen projection preference of a user, a screen projection option in the form of an information list is generated, and the set APP is obtained.

3. The one-key wireless projection method of claim 1, wherein, The creation of the screen projection shortcut of one-key screen projection for the set APP comprises: Creating a shortcut function menu of the screen projection shortcut of one-key screen projection for the set APP, and when the set APP is long-pressed on the display interface of the screen projection end, the shortcut function menu appears, and the shortcut function menu comprises a one-key screen projection option; or Creating a desktop component of the screen projection shortcut of one-key screen projection for the set APP, and adding a desktop component on the display interface of the screen projection end.

4. The one-key wireless projection method of claim 3, wherein, The creation of the shortcut function menu of the screen projection shortcut of one-key screen projection for the set APP comprises: Creating an XML file under the res / xml directory of an Android system, and naming the XML file as shortcuts.xml, wherein the XML file is used for registering the attributes of a shortcut entry; The XML file is used in the place of configuring the activity in the manifest, and the activity is set as a start activity.

5. The one-key wireless projection method of claim 3, wherein, The creation of the desktop component of the screen projection shortcut of one-key screen projection for the set APP comprises: Create a UI file under the res / layout / directory of the Android system, name the UI file as app_widget.xml, and design the UI layout of the widget; Create a configuration file under the res / xml / directory, and name the configuration file as app_widget_info.xml, which is used to define the desktop widget information, specify the size of the desktop widget, whether the size is customizable, and the name of the desktop widget; Define the class of the desktop widget as ShareScreenAppWidget, and inherit from AppWidgetProvider; Register the desktop widget under the AndroidManifest.xml file.

6. The one-key wireless projection method of claim 1, wherein, The user clicks the screen projection shortcut to perform the screen projection operation, including: The user long-presses the icon of the set APP on the display interface of the screen projection end, and a shortcut function menu appears based on the long-press operation, and the user selects the one-key screen projection option in the function menu to perform the screen projection operation; or The user clicks the desktop widget on the display interface of the screen projection end to perform the screen projection operation.

7. The one-key wireless projection method of claim 1, wherein, The screen projection end judges whether the screen projection information is correct, including: The screen projection end reads the screen projection information of the one-key screen projection of the set APP when the user performs the screen projection operation, and judges the accuracy of the screen projection information.

8. The one-key wireless projection method of claim 1, wherein, The screen projection end switches the current network to the preset network of the screen projection information, and performs screen projection connection, including: Obtain the wireless network name and corresponding wireless network password of the local area network in the screen projection information, and judge whether the current network of the screen projection end belongs to the same local area network as the local area network in the screen projection information; If they are consistent, perform screen projection connection with the screen projection receiving end; if they are not consistent, perform local area network switching processing based on the wireless network name and corresponding wireless network password of the local area network in the screen projection information; After successful local area network switching, perform screen projection connection with the screen projection receiving end, or after local area network switching fails, prompt that the local area network switching fails, and end the screen projection.

9. A one-touch wireless projection device based on shortcut, characterized in that, The device includes: A setting module: for pre-setting the screen projection information of the one-key screen projection in the APP with the screen projection function, and obtaining the set APP; A creating module: for creating the screen projection shortcut of the one-key screen projection of the set APP, and generating the screen projection shortcut on the display interface of the screen projection end, including the shortcut shortcut and the desktop widget widget; A judging module: for judging whether the screen projection information is correct when the user clicks the screen projection shortcut to perform the screen projection operation; A re-editing module: for prompting an error if the screen projection information is incorrect, jumping to the editing interface of the pre-setting of the screen projection information of the one-key screen projection for editing processing, and returning to the step of judging whether the screen projection information is correct after editing is completed. The screen projection connection module is configured to switch the current network to a preset network of the screen projection information and perform screen projection connection when the screen projection information is correct. The screen projection information comprises a wireless network name and a corresponding wireless network password of a local area network, a device IP, a device name, a device password, and a screen projection mode. The screen projection mode comprises a screen projection code screen projection mode, a code scanning screen projection mode, a search screen projection mode, and an NFC screen projection mode.

Citation Information

Patent Citations

  • Control method and device and electronic equipment

    CN113050901A