技术领域Technical field
本申请实施例涉及终端技术领域,尤其涉及一种服务卡片分发方法、系统和电子设备。The embodiments of the present application relate to the field of terminal technology, and in particular, to a service card distribution method, system and electronic device.
背景技术Background technique
服务卡片是电子设备中应用的一种展示形式,将应用(application,APP)的重要信息以服务卡片的形式展示在桌面,可供用户便捷地预览服务信息。例如,航班、会议或天气等服务信息。用户在不进入应用的情况下也能快速地查看到这些服务信息。服务卡片还可以承载与应用相关的操作,用户可通过在服务卡片上的轻量交互行为实现服务直达,减少层级跳转。Service cards are a display form of applications in electronic devices. Important information of an application (APP) is displayed on the desktop in the form of service cards, allowing users to conveniently preview service information. For example, service information such as flights, meetings or weather. Users can quickly view these service information without entering the application. Service cards can also carry application-related operations. Users can achieve direct access to services through lightweight interactions on service cards, reducing hierarchical jumps.
目前,电子设备分发服务卡片的方式主要有两种:一种是通过响应用户在桌面上对应用的图标执行的上划操作来展开卡片,然后电子设备可以基于用户长按卡片的操作将服务卡片添加至桌面;另一种是针对用户在电子设备负一屏的服务市场查找到的卡片,电子设备可以将其添加至桌面。现有的两种服务卡片分发方式操作都较为繁琐,分发效率较低。Currently, there are two main ways for electronic devices to distribute service cards: one is to expand the card in response to the user's upward swipe operation on the application's icon on the desktop, and then the electronic device can expand the service card based on the user's long press operation on the card. Add to the desktop; the other is for cards that users find in the service market with one screen on the electronic device, and the electronic device can add them to the desktop. The two existing service card distribution methods are relatively cumbersome in operation and have low distribution efficiency.
发明内容Contents of the invention
本申请实施例提供的一种服务卡片分发方法、系统和电子设备,可以提高服务卡片的分发效率。The service card distribution method, system and electronic device provided by the embodiments of the present application can improve the distribution efficiency of service cards.
本申请实施例的第一方面提供一种服务卡片分发方法,包括:A first aspect of the embodiment of the present application provides a service card distribution method, including:
第一电子设备显示应用市场的第一界面,第一界面中至少包括第一应用和第一应用的第一控件;The first electronic device displays a first interface of the application market, and the first interface includes at least a first application and a first control of the first application;
响应于针对第一控件的操作,第一电子设备在第一界面显示第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件;In response to the operation on the first control, the first electronic device displays a second control of the first application on the first interface, and the second control is a control for adding a service card of the first application;
响应于针对第二控件的操作,第一电子设备将服务卡片添加至桌面。In response to the operation on the second control, the first electronic device adds the service card to the desktop.
应理解,第一界面可以是应用市场中安装或更新第一应用的界面。在安装或更新第一应用时,第一电子设备可以将添加第一应用的服务卡片的控件展示给用户,由用户决定是否添加该应用的服务卡片至桌面。本申请实施例中,第一电子设备可以在安装或更新第一应用时,主动地提示用户将第一应用的服务卡片添加至桌面。相较于现有技术中只能在应用安装后基于用户的多次操作来实现服务卡片的添加,降低了用户查找服务卡片的难度,有助于及时地将应用的服务卡片展示给用户,提升了服务卡片的分发效率。It should be understood that the first interface may be an interface for installing or updating the first application in the application market. When installing or updating the first application, the first electronic device may display a control for adding the service card of the first application to the user, and the user decides whether to add the service card of the application to the desktop. In this embodiment of the present application, when installing or updating the first application, the first electronic device may actively prompt the user to add the service card of the first application to the desktop. Compared with the existing technology, service cards can only be added based on multiple user operations after the application is installed, which reduces the difficulty for users to find service cards, helps to display application service cards to users in a timely manner, and improves Improve the distribution efficiency of service cards.
应理解,第一控件可以为应用安装控件或应用更新控件。这样,第一电子设备在安装或更新第一应用时,可以基于用户的操作,将第一应用的服务卡片添加至桌面,提高服务卡片的分发效率,降低添加服务卡片的难度。It should be understood that the first control may be an application installation control or an application update control. In this way, when installing or updating the first application, the first electronic device can add the service card of the first application to the desktop based on the user's operation, thereby improving the distribution efficiency of the service card and reducing the difficulty of adding the service card.
在一种示例中,第一界面可以为应用市场的详情页界面,在应用市场的详情页界面中还可以包括至少一个第二应用。在另一种示例中,第一界面可以为应用市场中第一应用的详情页界面。这样,第一电子设备可以在能够安装或更新第一应用的任意界面,执行将第一应用的服务卡片添加至桌面的操作。In one example, the first interface may be a details page interface of the application market, and the details page interface of the application market may also include at least one second application. In another example, the first interface may be a details page interface of the first application in the application market. In this way, the first electronic device can perform the operation of adding the service card of the first application to the desktop on any interface that can install or update the first application.
在第一方面的一种可能的实现方式中,第一界面中还可以包括第一应用的服务卡片提示标识,服务卡片提示标识可以用于提示第一应用具有可分发的服务卡片。通过添加服务卡片提示标识,可以方便用户识别哪些应用具有可添加的服务卡片,有助于用户快速地发现优质的服务卡片,增大服务卡片的曝光率。In a possible implementation manner of the first aspect, the first interface may further include a service card prompt identification of the first application, and the service card prompt identification may be used to prompt the first application to have a distributable service card. By adding a service card prompt mark, users can easily identify which applications have addable service cards, help users quickly discover high-quality service cards, and increase the exposure of service cards.
在一种示例中,可以在具有可添加的服务卡片的第一应用的图标底部增加一下划线,通过此种方式来提示用户安装或更新该应用时,可将该应用的服务卡片添加至桌面。在另一种示例中,也可以在具有可添加的服务卡片的第一应用的图标的某一位置增加文字标识。例如,在第一应用的图标右上角,增加“卡片”字样,直观地提示用户该应用具有可添加的服务卡片。In one example, an underline can be added at the bottom of the icon of the first application that has an addable service card. In this way, when the user is prompted to install or update the application, the service card of the application can be added to the desktop. In another example, a text mark may also be added at a certain position of the icon of the first application that has an addable service card. For example, add the word "Card" in the upper right corner of the icon of the first application to visually remind the user that the application has service cards that can be added.
在第一方面的一种可能的实现方式中,第一电子设备可以通过弹框的形式显示第二控件。示例性地,响应于用户针对第一控件的点击操作,第一电子设备可以在第一界面显示第一弹框,第一弹框中可以包括第一应用的第二控件。在一种示例中,第一弹框可以是第一电子设备在第一界面弹出的半模态弹框。因此,响应于针对第一控件的操作,第一电子设备在第一界面显示第一应用的第二控件,具体可以包括:第一电子设备在第一界面显示第一弹框,第一弹框中包括第一应用的第二控件。In a possible implementation of the first aspect, the first electronic device may display the second control in the form of a pop-up frame. For example, in response to the user's click operation on the first control, the first electronic device may display a first pop-up frame on the first interface, and the first pop-up frame may include the second control of the first application. In one example, the first pop-up frame may be a semi-modal pop-up frame popped up by the first electronic device on the first interface. Therefore, in response to the operation of the first control, the first electronic device displays the second control of the first application on the first interface. Specifically, the first electronic device displays the first pop-up frame on the first interface, and the first pop-up frame Includes the second control of the first application.
应理解,第一弹框可以是在第一界面显示的添加服务卡片的弹框,也可以是介绍服务卡片相关内容的弹框。It should be understood that the first pop-up box may be a pop-up box for adding a service card displayed on the first interface, or may be a pop-up box for introducing relevant content of the service card.
在第一方面的一种可能的实现方式中,第一弹框可以是添加服务卡片的弹框,用户在第一弹框中点击第二控件,可以表示同意第一电子设备将第一应用的服务卡片添加至桌面。In a possible implementation of the first aspect, the first pop-up box may be a pop-up box for adding a service card. By clicking the second control in the first pop-up box, the user may express consent for the first electronic device to use the first application. The service card is added to the desktop.
应理解,在用户首次使用服务卡片时,第一电子设备还可以首先向用户介绍服务卡片的相关内容。在一种示例中,第一电子设备也可以通过弹框的方式,向首次使用服务卡片的用户介绍相关内容。It should be understood that when the user uses the service card for the first time, the first electronic device may also first introduce the relevant content of the service card to the user. In one example, the first electronic device can also introduce relevant content to the user who uses the service card for the first time through a pop-up box.
因此,在第一方面的一种可能的实现方式中,响应于针对第一控件的操作,第一电子设备在第一界面显示第一弹框,可以包括:响应于针对第一控件的操作,第一电子设备在第一界面显示第二弹框,第二弹框中包括服务卡片介绍信息和第三控件;响应于针对第三控件的操作,第一电子设备在第一界面显示第一弹框。Therefore, in a possible implementation of the first aspect, in response to the operation on the first control, the first electronic device displays the first pop-up box on the first interface, which may include: in response to the operation on the first control, The first electronic device displays a second pop-up frame on the first interface, and the second pop-up frame includes service card introduction information and a third control; in response to the operation on the third control, the first electronic device displays the first pop-up frame on the first interface. frame.
在一种示例中,第二弹框可以是包含有服务卡片介绍信息和第三控件的弹框,其中,服务卡片介绍信息可以用于向首次使用服务卡片的用户介绍服务卡片的相关内容,第三控件可以是用于表示同意使用服务卡片或同意进一步了解相关内容的控件。在用户点击第三控件后,表示用户同意进一步了解相关内容。此时,第一电子设备可以在第一界面弹出第一弹框。In one example, the second pop-up box may be a pop-up box containing service card introduction information and a third control, wherein the service card introduction information may be used to introduce relevant content of the service card to users who use the service card for the first time. The three controls can be controls used to express consent to use the service card or consent to learn more about related content. After the user clicks on the third control, it means that the user agrees to learn more about the relevant content. At this time, the first electronic device can pop up the first pop-up box on the first interface.
在一种示例中,第一弹框可以是针对某一具体的应用的服务卡片进行介绍或提示添加的弹框,例如,提示添加第一应用的服务卡片的弹框。第二弹框可以是对服务卡片整体进行介绍的弹框。In one example, the first pop-up box may be a pop-up box that introduces or prompts to add a service card of a specific application, for example, a pop-up box that prompts to add a service card of the first application. The second pop-up frame may be a pop-up frame that introduces the entire service card.
在第一方面的一种可能的实现方式中,用户若不同意使用服务卡片,则可以在第一电子设备显示的第一弹框或第二弹框中进行操作,拒绝第一电子设备将第一应用的服务卡片添加至桌面。In a possible implementation of the first aspect, if the user does not agree to use the service card, the user can operate in the first pop-up box or the second pop-up box displayed on the first electronic device to refuse the first electronic device to use the third pop-up box. An application's service card is added to the desktop.
在一种示例中,第一弹框和第二弹框中均可以包括弹框关闭提示标识,弹框关闭提示标识可以用于提示用户关闭第一弹框或第二弹框,以此来向第一电子设备反馈拒绝添加服务卡片的信息。In one example, both the first pop-up frame and the second pop-up frame may include a pop-up box closing prompt mark, and the pop-up frame closing prompt mark may be used to prompt the user to close the first pop-up frame or the second pop-up frame, thereby providing a message to the user. The first electronic device responds with information that it refuses to add the service card.
在一种可能的实现方式中,弹框关闭提示标识可以包括文字标识、图形标识等。在利用各种标识对用户进行提示时,可以提示用户采用第一手势关闭第一弹框或第二弹框。In a possible implementation manner, the pop-up box closing prompt logo may include a text logo, a graphic logo, etc. When using various signs to prompt the user, the user can be prompted to use the first gesture to close the first pop-up box or the second pop-up box.
在一种示例中,第一手势可以为第一弹框或第二弹框中向下滑动的手势。这样,用户在第一弹框或第二弹框中向下滑动,便可快速地关闭弹框。In an example, the first gesture may be a downward sliding gesture in the first pop-up frame or the second pop-up frame. In this way, the user can quickly close the pop-up frame by sliding down on the first pop-up frame or the second pop-up frame.
应理解,第一手势不仅可以是第一弹框或第二弹框中向下滑动的手势,还可以是在第一弹框或第二弹框中向左、向右滑动的手势。It should be understood that the first gesture may not only be a gesture of sliding downward in the first pop-up frame or the second pop-up frame, but may also be a gesture of sliding left or right in the first pop-up frame or the second pop-up frame.
在第一方面的一种可能的实现方式中,在响应于针对第二控件的操作,第一电子设备将服务卡片添加至桌面之前,该方法还可以包括:第一电子设备在桌面预留显示第一应用的图标的第一区域以及显示服务卡片的第二区域。In a possible implementation of the first aspect, before the first electronic device adds the service card to the desktop in response to the operation on the second control, the method may further include: the first electronic device reserves a display on the desktop. a first area for an icon of the first application and a second area for displaying a service card.
应理解,第一区域和第二区域可以是第一应用及其服务卡片的占位区域。在第一应用及其服务卡片的安装包下载过程中,第一电子设备可以在桌面预先为第一应用和服务卡片占位,以便在完成第一应用和服务卡片的安装后,可以将第一应用的图标添加至第一区域,将第一应用的服务卡片添加至第二区域。It should be understood that the first area and the second area may be placeholder areas for the first application and its service card. During the downloading process of the installation package of the first application and its service card, the first electronic device can pre-occupy space for the first application and service card on the desktop, so that after the installation of the first application and service card is completed, the first application and service card can be installed. The icon of the application is added to the first area, and the service card of the first application is added to the second area.
在第一方面的一种可能的实现方式中,响应于针对第二控件的操作,第一电子设备将所服务卡片添加至桌面,具体可以包括:响应于针对第二控件的操作,第一电子设备下载安装包,安装包包括第一应用的安装包和服务卡片的安装包;第一电子设备采用第一应用的安装包安装第一应用以及采用服务卡片的安装包安装服务卡片;第一电子设备将安装后的第一应用的图标添加至桌面的第一区域,以及将安装后的服务卡片添加至桌面的第二区域。In a possible implementation of the first aspect, in response to the operation on the second control, the first electronic device adds the served card to the desktop, which may specifically include: in response to the operation on the second control, the first electronic device The device downloads the installation package, which includes the installation package of the first application and the installation package of the service card; the first electronic device uses the installation package of the first application to install the first application and uses the installation package of the service card to install the service card; the first electronic device The device adds the icon of the installed first application to the first area of the desktop, and adds the installed service card to the second area of the desktop.
在一种示例中,第一应用的安装包和第一应用的服务卡片的安装包可以集成在一起。这样,第一电子设备在下载安装包时,可以同时将第一应用的安装包和服务卡片的安装包下载至本地。In an example, the installation package of the first application and the installation package of the service card of the first application may be integrated together. In this way, when downloading the installation package, the first electronic device can simultaneously download the installation package of the first application and the installation package of the service card locally.
在另一种示例中,第一应用的安装包和第一应用的服务卡片的安装包可以不集成在一起。这样,第一电子设备在安装或更新第一应用时,可以仅从服务器下载第一应用的安装包。在第一电子设备下载第一应用的安装包或采用第一应用的安装包安装第一应用的过程中,若接收到用户同意安装第一应用的服务卡片的指令时,第一电子设备可以从服务器下载服务卡片的安装包。这样,在用户拒绝添加服务卡片至桌面的时候,可以减少下载量。In another example, the installation package of the first application and the installation package of the service card of the first application may not be integrated together. In this way, when installing or updating the first application, the first electronic device can only download the installation package of the first application from the server. When the first electronic device downloads the installation package of the first application or uses the installation package of the first application to install the first application, if it receives an instruction from the user to agree to install the service card of the first application, the first electronic device may The server downloads the installation package of the service card. In this way, the download volume can be reduced when the user refuses to add the service card to the desktop.
在第一方面的一种可能的实现方式中,第一电子设备还可以在完成对第一应用的静默升级后,提示用户添加第一应用的服务卡片。在此过程中,第一电子设备可以显示第一通知,第一通知中可以包括服务卡片的添加提示信息;响应于针对第一通知的操作,第一电子设备可以跳转至应用市场;第一电子设备显示第一应用在应用市场中的详情页界面;第一电子设备在详情页界面显示第一弹框,第一弹框中包括第一应用的第二控件。In a possible implementation manner of the first aspect, the first electronic device may also prompt the user to add a service card of the first application after completing the silent upgrade of the first application. During this process, the first electronic device may display a first notification, and the first notification may include prompt information for adding the service card; in response to the operation for the first notification, the first electronic device may jump to the application market; the first The electronic device displays the details page interface of the first application in the application market; the first electronic device displays a first pop-up frame on the details page interface, and the first pop-up frame includes the second control of the first application.
在一种示例中,第一电子设备可以通过横幅的方式通知第一应用的新版本已安装完成,该横幅中可以包括服务卡片的添加提示信息。用户可以点击该横幅,第一电子设备可以跳转至应用市场中第一应用的详情页界面。在详情页界面中,第一电子设备可以弹出第一弹框,用户可以通过点击第一弹框中的第二应用,同意第一电子设备将第一应用的服务卡片添加至桌面。In one example, the first electronic device may notify that the new version of the first application has been installed through a banner, and the banner may include prompt information for adding the service card. The user can click the banner, and the first electronic device can jump to the details page of the first application in the application market. In the details page interface, the first electronic device can pop up a first pop-up box, and the user can click the second application in the first pop-up box to agree to the first electronic device adding the service card of the first application to the desktop.
应理解,第一电子设备也可以基于用户设置,自动添加应用的服务卡片。It should be understood that the first electronic device can also automatically add the service card of the application based on user settings.
在一种示例中,用户可以通过在第一电子设备中设置服务卡片的添加方式,来选择自动添加或提示添加。In one example, the user can select automatic addition or prompt addition by setting the adding method of the service card in the first electronic device.
在第一方面的一种可能的实现方式中,第一电子设备可以显示设置界面,设置界面中包括服务卡片添加设置项;响应于针对服务卡片添加设置项的操作,第一电子设备显示服务卡片设置详情页界面,服务卡片设置详情页界面中包括服务卡片添加设置项和服务卡片关闭设置项。用户可以通过设置服务卡片添加设置项或服务卡片关闭设置项,来使第一电子设备添加服务卡片,或关闭服务卡片的添加。In a possible implementation of the first aspect, the first electronic device may display a setting interface that includes a service card to add a setting item; in response to an operation of adding a setting item to the service card, the first electronic device displays the service card Setting details page interface, the service card setting details page interface includes service card adding setting items and service card closing setting items. The user can enable the first electronic device to add the service card or turn off the addition of the service card by setting the service card adding setting item or the service card closing setting item.
在一种示例中,服务卡片添加设置项可以包括第一服务卡片添加设置项,第一服务卡片添加设置项可以是智能添加设置项。若第一服务卡片添加设置项被设置,则第一电子设备在安装或更新第一应用后,可以自动将第一应用的服务卡片添加至桌面。In an example, the service card adding setting item may include a first service card adding setting item, and the first service card adding setting item may be a smart adding setting item. If the first service card adding setting item is set, the first electronic device can automatically add the service card of the first application to the desktop after installing or updating the first application.
在第一方面的一种可能的实现方式中,在第一服务卡片添加设置项被设置的情况下,第一电子设备在安装或更新第一应用后,可以在安装或更新第一应用的界面中显示非模态弹窗,非模态弹窗可以用于提示用户,第一应用的服务卡片已被添加至桌面。In a possible implementation of the first aspect, when the first service card addition setting item is set, after installing or updating the first application, the first electronic device can install or update the first application on the interface. A non-modal pop-up window is displayed in . The non-modal pop-up window can be used to prompt the user that the service card of the first application has been added to the desktop.
在另一种示例中,服务卡片添加设置项还可以包括第二服务卡片添加设置项,第二服务卡片添加设置项可以是提示添加设置项。若第二服务卡片添加设置项被设置,则第一电子设备在安装或更新第一应用时,可以显示将第一应用的服务卡片添加至桌面的提示信息,由用户基于提示信息进行操作,决定是否添加服务卡片至桌面。In another example, the service card adding setting item may also include a second service card adding setting item, and the second service card adding setting item may be a prompt adding setting item. If the second service card adding setting item is set, when installing or updating the first application, the first electronic device can display a prompt message for adding the service card of the first application to the desktop, and the user can operate based on the prompt message and decide. Whether to add service cards to the desktop.
在第一方面的一种可能的实现方式中,第一电子设备在将第一应用的服务卡片添加至桌面后,还可以将该服务卡片分发至第二电子设备。这样,用户可以在第二电子设备也可以使用服务卡片。示例性地,手机端在添加了第一应用的服务卡片后,手机可以将服务卡片分发至智能手表、大屏设备等。这样,用户可以在智能手表、大屏设备中使用第一应用的服务卡片。In a possible implementation of the first aspect, after adding the service card of the first application to the desktop, the first electronic device can also distribute the service card to the second electronic device. In this way, the user can also use the service card on the second electronic device. For example, after the mobile phone adds the service card of the first application, the mobile phone can distribute the service card to smart watches, large-screen devices, etc. In this way, users can use the service card of the first application on smart watches and large-screen devices.
应理解,第一电子设备在向第二电子设备分发服务卡片前,需要确定关联的第二电子设备包括哪些设备,此外,第一电子设备还可以确定当前待分发的服务卡片是否与第二电子设备相适配。第一电子设备可以仅向能够适配该服务卡片的第二电子设备分发该服务卡片。示例性地,在手机端添加的某些服务卡片,可能与大屏设备适配,而不适配智能手表。因此,在大屏设备与智能手表均与手机关联的情况下,手机可以仅向大屏设备分发当前添加的服务卡片,而无需向智能手表分发服务卡片。It should be understood that before distributing a service card to a second electronic device, the first electronic device needs to determine which devices the associated second electronic device includes. In addition, the first electronic device can also determine whether the service card currently to be distributed is the same as that of the second electronic device. The equipment is compatible. The first electronic device may distribute the service card only to second electronic devices capable of adapting the service card. For example, some service cards added on the mobile phone may be adapted to large-screen devices but not smart watches. Therefore, when both the large-screen device and the smart watch are associated with the mobile phone, the mobile phone can only distribute the currently added service card to the large-screen device without distributing the service card to the smart watch.
本申请实施例的第二方面提供一种服务卡片分发装置,包括:第一界面显示模块、第二控件显示模块和服务卡片添加模块,其中:A second aspect of the embodiment of the present application provides a service card distribution device, including: a first interface display module, a second control display module and a service card adding module, wherein:
第一界面显示模块,用于显示应用市场的第一界面,第一界面中至少可以包括第一应用和所述第一应用的第一控件;A first interface display module, configured to display a first interface of the application market. The first interface may include at least a first application and a first control of the first application;
第二控件显示模块,用于响应于针对第一控件的操作,在第一界面显示第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件;A second control display module, configured to display a second control of the first application on the first interface in response to an operation on the first control, where the second control is a control for adding a service card of the first application;
服务卡片添加模块,用于响应于针对第二控件的操作,将服务卡片添加至桌面。The service card adding module is configured to add the service card to the desktop in response to the operation on the second control.
应理解,第一控件可以为应用安装控件或应用更新控件。It should be understood that the first control may be an application installation control or an application update control.
在一种示例中,第一界面可以为应用市场的详情页界面。因此,在应用市场的详情页界面中,还可以包括有其他应用。例如,应用市场的详情页界面中可以包括至少一个第二应用,第二应用可以是与第一应用不同的应用。用户可以在应用市场的详情页界面,对第二应用执行安装或更新等操作。在另一种示例中,第一界面也可以为应用市场中第一应用的详情页界面。In an example, the first interface may be a details page interface of the application market. Therefore, other applications can also be included in the details page interface of the application market. For example, the details page interface of the application market may include at least one second application, and the second application may be an application different from the first application. Users can install or update the second application on the details page of the application market. In another example, the first interface may also be the details page interface of the first application in the application market.
在第二方面的一种可能的实现方式中,第一界面中还可以包括第一应用的服务卡片提示标识,服务卡片提示标识可以用于提示第一应用具有可分发的服务卡片。示例性地,服务卡片提示标识可以为第一应用的图标底部的下划线。In a possible implementation of the second aspect, the first interface may further include a service card prompt identification of the first application, and the service card prompt identification may be used to prompt the first application to have a distributable service card. For example, the service card prompt identification may be an underline at the bottom of the icon of the first application.
在本申请实施例的一种可能的实现方式中,第二控件显示模块具体可以用于:响应于针对第一控件的操作,在第一界面显示第一弹框,第一弹框中包括第一应用的第二控件。In a possible implementation manner of the embodiment of the present application, the second control display module may be configured to: in response to an operation on the first control, display a first pop-up frame on the first interface, and the first pop-up frame includes a third pop-up frame. A second control for an application.
在一种示例中,第二控件显示模块还可以用于:响应于针对第一控件的操作,在第一界面显示第二弹框,第二弹框中包括服务卡片介绍信息和第三控件;响应于针对第三控件的操作,在第一界面显示第一弹框。In one example, the second control display module can also be configured to: in response to an operation on the first control, display a second pop-up box on the first interface, the second pop-up box including service card introduction information and the third control; In response to the operation on the third control, the first pop-up box is displayed on the first interface.
在第二方面的一种可能的实现方式中,第一弹框和第二弹框中均可以包括弹框关闭提示标识,弹框关闭提示标识可以用于提示采用第一手势关闭第一弹框或第二弹框。在一种示例中,第一手势可以为第一弹框或第二弹框中向下滑动的手势。In a possible implementation of the second aspect, both the first pop-up frame and the second pop-up frame may include a pop-up frame closing prompt mark, and the pop-up frame closing prompt mark may be used to prompt the use of the first gesture to close the first pop-up frame. Or the second pop-up box. In an example, the first gesture may be a downward sliding gesture in the first pop-up frame or the second pop-up frame.
在第二方面的一种可能的实现方式中,上述装置还可以包括桌面显示模块,该桌面显示模块可以用于:在桌面预留显示第一应用的图标的第一区域以及显示服务卡片的第二区域。In a possible implementation of the second aspect, the above device may further include a desktop display module, which may be used to reserve a first area on the desktop for displaying the icon of the first application and a third area for displaying the service card. Second area.
在第二方面的一种可能的实现方式中,服务卡片添加模块具体可以用于:响应于针对第二控件的操作,下载安装包,该安装包包括第一应用的安装包和服务卡片的安装包;采用第一应用的安装包安装第一应用以及采用服务卡片的安装包安装服务卡片;将安装后的第一应用的图标添加至桌面的第一区域,以及将安装后的服务卡片添加至桌面的第二区域。In a possible implementation of the second aspect, the service card adding module may be specifically configured to: in response to an operation on the second control, download an installation package, where the installation package includes the installation package of the first application and the installation of the service card. package; install the first application using the installation package of the first application and install the service card using the installation package of the service card; add the icon of the installed first application to the first area of the desktop, and add the installed service card to The second area of the desktop.
在第二方面的一种可能的实现方式中,上述服务卡片分发装置还可以包括如下模块:第一通知显示模块、应用市场跳转模块、详情页界面显示模块和第一弹框显示模块,其中:In a possible implementation of the second aspect, the above-mentioned service card distribution device may also include the following modules: a first notification display module, an application market jump module, a details page interface display module and a first pop-up display module, wherein :
第一通知显示模块,用于显示第一通知,第一通知中包括服务卡片的添加提示信息;The first notification display module is used to display the first notification, and the first notification includes the prompt information for adding the service card;
应用市场跳转模块,用于响应于针对第一通知的操作,跳转至应用市场;The application market jump module is used to jump to the application market in response to the operation for the first notification;
详情页界面显示模块,用于显示第一应用在应用市场中的详情页界面;The details page interface display module is used to display the details page interface of the first application in the application market;
第一弹框显示模块,用于在详情页界面显示第一弹框,第一弹框中包括第一应用的第二控件。The first pop-up frame display module is used to display the first pop-up frame on the details page interface, and the first pop-up frame includes the second control of the first application.
在第二方面的一种可能的实现方式中,服务卡片分发装置还可以包括如下模块:设置界面显示模块和设置详情页界面显示模块,其中:In a possible implementation of the second aspect, the service card distribution device may also include the following modules: a setting interface display module and a setting details page interface display module, wherein:
设置界面显示模块,用于显示设置界面,设置界面中包括服务卡片添加设置项;The setting interface display module is used to display the setting interface, which includes service cards to add setting items;
设置详情页界面显示模块,用于响应于针对服务卡片添加设置项的操作,显示服务卡片设置详情页界面,其中,服务卡片设置详情页界面中包括服务卡片添加设置项和服务卡片关闭设置项。The setting details page interface display module is configured to display the service card setting details page interface in response to the operation of adding a setting item for the service card, wherein the service card setting details page interface includes a service card adding setting item and a service card closing setting item.
在一种示例中,服务卡片添加设置项可以包括第一服务卡片添加设置项,服务卡片分发装置还可以包括自动添加模块,自动添加模块可以用于:若第一服务卡片添加设置项被设置,则在安装或更新第一应用后,自动将第一应用的服务卡片添加至桌面。In one example, the service card adding setting item may include the first service card adding setting item, and the service card distributing device may further include an automatic adding module. The automatic adding module may be used to: if the first service card adding setting item is set, After the first application is installed or updated, the service card of the first application is automatically added to the desktop.
在一种可能的实现方式中,自动添加模块还可以用于:在安装或更新第一应用的界面中显示非模态弹窗,非模态弹窗可以用于提示第一应用的服务卡片已被添加至桌面。In a possible implementation, the automatic addition module can also be used to: display a non-modal pop-up window in the interface for installing or updating the first application, and the non-modal pop-up window can be used to prompt that the service card of the first application has been is added to the desktop.
在一种示例中,服务卡片添加设置项可以包括第二服务卡片添加设置项,服务卡片分发装置还可以包括提示信息显示模块,提示信息显示模块可以用于:若第二服务卡片添加设置项被设置,则在安装或更新第一应用后,显示将第一应用的服务卡片添加至桌面的提示信息。In one example, the service card adding setting item may include a second service card adding setting item, and the service card distributing device may further include a prompt information display module. The prompt information display module may be used to: if the second service card adding setting item is If set, after the first application is installed or updated, a prompt message for adding the service card of the first application to the desktop is displayed.
在第二方面的一种可能的实现方式中,服务卡片分发装置还可以包括分发模块,分发模块可以用于:将第一应用的服务卡片分发至第二电子设备。In a possible implementation of the second aspect, the service card distribution device may further include a distribution module, and the distribution module may be used to distribute the service card of the first application to the second electronic device.
在一种示例中,分发模块具体可以用于:确定关联的至少一个第二电子设备;确定第一应用的服务卡片是否与至少一个第二电子设备适配;将第一应用的服务卡片分发至适配的至少一个第二电子设备。In one example, the distribution module may be specifically configured to: determine at least one associated second electronic device; determine whether the service card of the first application is adapted to the at least one second electronic device; distribute the service card of the first application to adapted to at least one second electronic device.
本申请实施例的第三方面提供一种服务卡片分发系统,该系统至少包括相互通信的第一电子设备和第二电子设备,其中:A third aspect of the embodiment of the present application provides a service card distribution system, which system at least includes a first electronic device and a second electronic device that communicate with each other, wherein:
第一电子设备用于:The first electronic device is used for:
显示应用市场的第一界面,第一界面中至少包括第一应用和第一应用的第一控件;Display the first interface of the application market, the first interface including at least a first application and a first control of the first application;
响应于针对第一控件的操作,在第一界面显示第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件;In response to the operation on the first control, display a second control of the first application on the first interface, and the second control is a control for adding a service card of the first application;
响应于针对第二控件的操作,将服务卡片添加至桌面,并将服务卡片分发至第二电子设备;In response to the operation on the second control, adding the service card to the desktop and distributing the service card to the second electronic device;
第二电子设备用于:接收第一电子设备分发的服务卡片,并将服务卡片添加至桌面。The second electronic device is configured to: receive the service card distributed by the first electronic device, and add the service card to the desktop.
本申请实施例的第四方面提供一种电子设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如上述第一方面任一项所述的服务卡片分发方法。A fourth aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any one of the above first aspects is implemented. The service card distribution method.
本申请实施例的第五方面提供一种计算机可读存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述第一方面任一项所述的服务卡片分发方法。A fifth aspect of the embodiments of the present application provides a computer-readable storage medium. Computer instructions are stored in the computer storage medium. When the computer instructions are run on an electronic device, the electronic device causes the electronic device to execute the above-mentioned related method steps to achieve the above-mentioned first step. The service card distribution method described in any one of the aspects.
本申请实施例的第六方面提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述第一方面任一项所述的服务卡片分发方法。A sixth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the service card distribution method described in any one of the above first aspects.
本申请实施例的第七方面一种芯片,该芯片包括存储器和处理器,处理器执行存储器中存储的计算机程序,以实现如上述第一方面任一项所述的服务卡片分发方法。A seventh aspect of the embodiment of the present application is a chip. The chip includes a memory and a processor. The processor executes a computer program stored in the memory to implement the service card distribution method as described in any one of the above first aspects.
可以理解的是,上述第二方面至第七方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the above-mentioned second to seventh aspects can be referred to the relevant descriptions in the above-mentioned first aspect, and will not be described again here.
附图说明Description of drawings
图1是本申请实施例提供的一种电子设备的结构示意图;Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图2是本申请实施例提供的一种电子设备的软件结构框图;Figure 2 is a software structure block diagram of an electronic device provided by an embodiment of the present application;
图3是本申请实施例提供的一种电子设备的界面示意图;Figure 3 is a schematic interface diagram of an electronic device provided by an embodiment of the present application;
图4是本申请实施例提供的一种服务卡片分发过程的示意图;Figure 4 is a schematic diagram of a service card distribution process provided by an embodiment of the present application;
图5是本申请实施例提供的另一种服务卡片分发过程的示意图;Figure 5 is a schematic diagram of another service card distribution process provided by an embodiment of the present application;
图6是本申请实施例提供的一种设置服务卡片的添加方式的示意图;Figure 6 is a schematic diagram of a method of adding a service card provided by an embodiment of the present application;
图7是本申请实施例提供的一种服务卡片多端分发的示意图;Figure 7 is a schematic diagram of multi-terminal distribution of service cards provided by an embodiment of the present application;
图8是本申请实施例提供的一种应用与服务卡片建立关联关系的示意图;Figure 8 is a schematic diagram of an application and a service card establishing an association relationship provided by an embodiment of the present application;
图9是本申请实施例提供的一种用户参与服务卡片的添加过程的示意图;Figure 9 is a schematic diagram of a process of adding a user participation service card provided by an embodiment of the present application;
图10是本申请实施例提供的一种服务卡片分发方法的示意图;Figure 10 is a schematic diagram of a service card distribution method provided by an embodiment of the present application;
图11是本申请实施例提供的一种服务卡片分发系统的示意图;Figure 11 is a schematic diagram of a service card distribution system provided by an embodiment of the present application;
图12是本申请实施例提供的另一种服务卡片分发系统的示意图;Figure 12 is a schematic diagram of another service card distribution system provided by an embodiment of the present application;
图13是本申请实施例提供的一种服务卡片分发装置的结构框图。Figure 13 is a structural block diagram of a service card distribution device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一电子设备、第二电子设备等仅仅是为了区分不同的电子设备,第一控件、第二控件等仅仅是为了区分第一电子设备或第二电子设备上不同的控件。In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects. For example, the first electronic device, the second electronic device, etc. are only used to distinguish different electronic devices, and the first control, the second control, etc. are only used to distinguish different controls on the first electronic device or the second electronic device.
本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of this application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application shall not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
本申请实施例描述的业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The business scenarios described in the embodiments of this application are for the purpose of more clearly explaining the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Persons of ordinary skill in the art will know that with the emergence of new business scenarios It appears that the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
本申请实施例提供的一种服务卡片分发方法中所涉及到的步骤仅仅作为示例,并非所有的步骤均是必须执行的步骤,或者并非各个信息或消息中的内容均是必选的,在使用过程中可以根据需要酌情增加或减少。The steps involved in the service card distribution method provided by the embodiment of the present application are only examples. Not all steps are steps that must be performed, or not all information or content in the message is required. When using It can be increased or decreased as needed during the process.
本申请实施例中同一个步骤或者具有相同功能的步骤或者消息在不同实施例之间可以互相参考借鉴。The same step or steps or messages with the same function in the embodiments of the present application can be used as reference between different embodiments.
通常,电子设备分发应用的服务卡片可以是指将该应用的服务卡片添加至桌面。这样,用户可以在不进入应用的情况下,通过服务卡片快速地查看该应用的一些重要信息。例如,查看航班、会议或天气等服务信息。或者,用户也可以直接对服务卡片进行操作来实现某些应用功能的“一键直达”。例如,通过服务卡片直接调用支付应用的付款码等。在一些实现方式中,电子设备安装或更新完应用后,用户可以在电子设备上进行操作,电子设备通过响应用户的操作,可以将该应用的服务卡片添加至桌面。这个过程往往需要用户在电子设备上进行多次操作,过程较为繁琐。对于不熟悉具体操作方法的用户来说,增加了用户将服务卡片添加至电子设备桌面的难度。Generally, the electronic device distributing the service card of the application may refer to adding the service card of the application to the desktop. In this way, users can quickly view some important information of the application through the service card without entering the application. For example, view service information such as flights, meetings, or weather. Alternatively, users can also directly operate the service card to achieve "one-click direct access" to certain application functions. For example, directly call the payment code of the payment application through the service card. In some implementations, after the electronic device installs or updates the application, the user can perform operations on the electronic device, and the electronic device can add the service card of the application to the desktop in response to the user's operation. This process often requires the user to perform multiple operations on the electronic device, and the process is relatively cumbersome. For users who are not familiar with the specific operation method, it increases the difficulty for the user to add the service card to the desktop of the electronic device.
针对上述问题,本申请实施例提供了一种服务卡片分发方法,电子设备可以在应用安装或更新时,自动地将该应用的服务卡片添加至桌面,减少用户操作过程,降低用户在桌面添加服务卡片的难度。此外,应用本申请实施例提供的服务卡片分发方法,电子设备在将某一应用的服务卡片添加至桌面后,还可以将该服务卡片分发至其他电子设备。例如,第一电子设备与第二电子设备通信连接,第一电子设备在将某一应用的服务卡片添加至桌面后,若当前添加的服务卡片与第二电子设备适配,则第一电子设备可以将服务卡片分发至第二电子设备。这样,用户无需在第二电子设备上进行额外操作,便可实现将服务卡片添加至第二电子设备桌面的目的。In response to the above problems, embodiments of the present application provide a service card distribution method. The electronic device can automatically add the service card of the application to the desktop when the application is installed or updated, reducing the user's operation process and reducing the user's need to add services on the desktop. The difficulty of the card. In addition, by applying the service card distribution method provided by the embodiments of the present application, an electronic device can also distribute the service card to other electronic devices after adding the service card of a certain application to the desktop. For example, a first electronic device is communicatively connected to a second electronic device. After the first electronic device adds a service card of a certain application to the desktop, if the currently added service card is adapted to the second electronic device, the first electronic device The service card can be distributed to the second electronic device. In this way, the user can add the service card to the desktop of the second electronic device without performing additional operations on the second electronic device.
在本申请实施例中,上述电子设备可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、个人计算机(personal computer,PC)、上网本、个人数字助理(personal digitalassistant,PDA)等电子设备。本申请实施例对电子设备的具体类型不作限定。In the embodiment of the present application, the above-mentioned electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, a personal computer (personal computer) computer, PC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices. The embodiments of this application do not limit the specific type of electronic equipment.
示例性地,图1示出了一种电子设备100的结构示意图。上述第一电子设备和第二电子设备的结构可以参考电子设备100的结构。By way of example, FIG. 1 shows a schematic structural diagram of an electronic device 100 . The structures of the above-mentioned first electronic device and the second electronic device may refer to the structure of the electronic device 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等。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, and an antenna 2. , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyro 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, and an environment sensor. Light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In some embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。例如,处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processingunit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器,和/或,神经网络处理器(neural-network processing unit,NPU)等。不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。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 processing unit (GPU), an image signal processor (ISP), a controller, a video encoder, Decoder, digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc. Different processing units can be independent devices or integrated into one or more processors.
其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Among them, the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在本申请一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments of the present application, the memory in the processor 110 is a cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在本申请一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integratedcircuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purposeinput/output,GPIO)接口、用户标识模块(subscriber identity module,SIM)接口,和/或,通用串行总线(universal serial bus,USB)接口等。In some embodiments of the present application, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or , universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在本申请一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K、充电器、闪光灯、摄像头193等。例如,处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments of the present application, the processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在本申请一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在本申请一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments of the present application, the processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments of the present application, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在本申请一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在本申请一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments of the present application, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments of the present application, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在本申请一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如,处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在本申请一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments of the present application, the UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments of the present application, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194、摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI)、显示屏串行接口(displayserial interface,DSI)等。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (displayserial interface, DSI), etc.
在本申请一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。In some embodiments of the present application, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 . The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在本申请一些实施例中,GPIO接口可以用于连接处理器110与摄像头193、显示屏194、无线通信模块160、音频模块170、传感器模块180等。GPIO接口还可以被配置为I2C接口、I2S接口、UART接口、MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments of the present application, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。USB接口130也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The USB interface 130 can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142、充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、显示屏194、摄像头193、无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。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, internal memory 121, display screen 194, camera 193, wireless communication module 160, etc. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。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.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如,可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波、放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
在本申请一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在本申请一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。In some embodiments of the present application, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments of the present application, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后,解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A、受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。A modem processor may include a modulator and a demodulator. Among them, 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. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
在本申请一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。In some embodiments of the present application, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal 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转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates 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, perform frequency modulation and amplification on it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在本申请一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobilecommunications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband codedivision multiple access,WCDMA)、时分码分多址(time-division code divisionmultiple 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-zenithsatellite system,QZSS),和/或星基增强系统(satellite based augmentationsystems,SBAS)。In some embodiments of the present application, 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), broadband code Wideband codedivision multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system (QZSS), and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU、显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emittingdiode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emittingdiode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在本申请一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). (AMOLED), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments of the present application, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在本申请一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the light signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments of the present application, the ISP may be set in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB、YUV等格式的图像信号。在本申请一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments of the present application, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如,动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如,图像识别、人脸识别、语音识别、文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. The NPU can realize intelligent cognitive applications of the electronic device 100, such as image recognition, face recognition, speech recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据、电话本等)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放、录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在本申请一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。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. Audio module 170 may also be used to encode and decode audio signals. In some embodiments of the present application, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”、“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个、四个或更多麦克风170C,实现采集声音信号、降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also known as "microphone" and "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口、美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器、电感式压力传感器、电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
在本申请一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如,当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。In some embodiments of the present application, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity smaller than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在本申请一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性地,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航、体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . In some embodiments of the present application, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used in navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在本申请一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度、辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments of the present application, the electronic device 100 calculates altitude, assists in positioning and navigation through the air pressure value measured by the air pressure sensor 180C.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在本申请一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合,进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster. In some embodiments of the present application, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D, and then set the setting according to the detected opening and closing status of the leather case or the opening and closing status of the flip. Features such as automatic flip cover unlocking.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various 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 electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在本申请一些实施例中,例如拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments of the present application, such as shooting scenes, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。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 outwardly through the light emitting diode. Electronic device 100 uses photodiodes 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 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁、访问应用锁、指纹拍照、指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
温度传感器180J用于检测温度。在本申请一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments of the present application, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。在本申请一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。Bone conduction sensor 180M can acquire vibration signals. In some embodiments of the present application, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
在本申请一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。In some embodiments of the present application, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to implement the heart rate detection function.
按键190包括开机键、音量键等。按键190可以是机械按键,也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. The button 190 may be a mechanical button or a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照、音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如,时间提醒、接收信息、闹钟、游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
指示器192可以是指示灯,可以用于指示充电状态、电量变化,也可以用于指示消息、未接来电、通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在本申请一些实施例中,电子设备100采用eSIM(即嵌入式SIM卡)。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments of the present application, the electronic device 100 uses eSIM (ie, embedded SIM card). The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
电子设备100的软件系统可以采用分层架构、事件驱动架构、微核架构、微服务架构,或云架构。本申请实施例以分层架构的系统/>为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application uses a layered architecture System/> As an example, the software structure of the electronic device 100 is illustrated.
图2是本申请实施例的电子设备100的软件结构框图。FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在本申请一些实施例中,将系统分为四层,从上至下分别为应用程序层、应用程序框架层、系统层,以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments of this application, the The system is divided into four layers, from top to bottom: application layer, application framework layer, system layer, and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2所示,应用程序包可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用程序。As shown in Figure 2, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器、内容提供器、视图系统、电话管理器、资源管理器、通知管理器等。As shown in Figure 2, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小、判断是否有状态栏、锁定屏幕、截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display 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 this data 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 that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如,通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串、图标、图片、布局文件、视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成、消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息、发出提示音、电子设备振动、指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear 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 notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text messages are prompted in the status bar, beeps are emitted, electronic devices vibrate, lights flash, etc.
系统层的核心库和虚拟机负责系统的调度和管理。The core libraries and virtual machines of the system layer are responsible for System scheduling and management.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是的核心库。The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理、堆栈管理、线程管理、安全和异常的管理、以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into 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.
系统层还可以包括多个功能模块。例如,表面管理器(surface manager)、媒体库(Media Libraries)、三维图形处理库(例如,OpenGL ES)、2D图形引擎(例如,SGL)等。The system layer can also include multiple functional modules. For example, surface manager (surface manager), media libraries (Media Libraries), three-dimensional graphics processing library (for example, OpenGL ES), 2D graphics engine (for example, SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频、视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如,MPEG4、H.264、MP3、AAC、AMR、JPG、PNG等。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 multiple 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, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动、摄像头驱动、音频驱动、传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
以下实施例以具有图1所示的硬件结构和/或图2所示的软件结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的服务卡片分发方法进行说明。The following embodiments take an electronic device having the hardware structure shown in Figure 1 and/or the software structure shown in Figure 2 as an example, and describe the service card distribution method provided by the embodiments of the present application in conjunction with the drawings and application scenarios.
图3是本申请实施例提供的一种电子设备的界面示意图。其中,图3中的(a)所示的界面30可以是电子设备的桌面。应理解,电子设备的桌面可以由多个类似界面30的屏组成,界面30属于桌面的其中一个屏。FIG. 3 is a schematic interface diagram of an electronic device provided by an embodiment of the present application. The interface 30 shown in (a) in FIG. 3 may be the desktop of the electronic device. It should be understood that the desktop of the electronic device may be composed of multiple screens similar to the interface 30, and the interface 30 belongs to one of the screens on the desktop.
如图3中的(a)所示,界面30中示出了电子设备中已安装的多个应用,如“时钟”、“日历”、“图库”、“应用市场”等应用。电子设备可以基于这些不同的应用,实现不同的功能。在具体实现中,用户可以点击界面30中各个应用的图标,进入该应用。示例性地,用户可以点击界面30中“应用市场”301的图标,进入应用市场。用户可以在应用市场中进行操作,安装或更新应用。As shown in (a) of FIG. 3 , the interface 30 shows multiple applications installed in the electronic device, such as “clock”, “calendar”, “gallery”, “application market” and other applications. Electronic devices can implement different functions based on these different applications. In specific implementation, the user can click on the icon of each application in the interface 30 to enter the application. For example, the user can click the icon of "Application Market" 301 in the interface 30 to enter the application market. Users can operate in the application market to install or update applications.
如图3中的(b),是电子设备的应用市场的一个界面31的示意图,该界面31可以是应用市场的详情页。在界面31中,显示有多个应用以及相应的控件,这些控件可以提示用户能对该应用执行的操作。例如,在界面31中,包括“主题”、“QQ”、“微信”和“微博”等4个应用,每个应用旁包括一“安装”控件,表示用户在点击该控件后,电子设备可以通过应用市场完成此应用的安装。示例性地,针对界面31中的“主题”应用302,用户可以点击旁边的控件3021,将“主题”这一应用安装在电子设备中。在界面31中显示的各个应用,应用市场还可以示出每个应用的简要介绍信息。例如在界面31中除示出各个应用的图标、名称以及可操作的控件外,还提供了每个应用的下载次数等信息。通常,不同电子设备中的应用市场,在如界面31所示的应用市场详情页中,所示出的各个应用的介绍信息可以是不同的。As shown in (b) of Figure 3, it is a schematic diagram of an interface 31 of the application market of the electronic device. The interface 31 may be a details page of the application market. In the interface 31, multiple applications and corresponding controls are displayed, and these controls can prompt the user for operations that can be performed on the application. For example, interface 31 includes four applications including "Theme", "QQ", "WeChat" and "Weibo". Next to each application is an "Install" control, indicating that after the user clicks on the control, the electronic device The installation of this application can be completed through the application market. For example, for the "theme" application 302 in the interface 31, the user can click the control 3021 next to it to install the "theme" application in the electronic device. For each application displayed in the interface 31, the application market may also show brief introduction information of each application. For example, in addition to the icons, names and operable controls of each application, the interface 31 also provides information such as the number of downloads of each application. Generally, for application markets in different electronic devices, the introduction information of each application shown on the application market details page shown in interface 31 may be different.
在一种示例中,用户可以通过应用详情页来了解每个应用的具体信息。如图3中的(c)所示,是电子设备的一个界面32的示意图,该界面32可以是具体的一个应用的详情页,如“主题”应用302的详情页。用户可以通过在图3中的(b)中界面31上点击“主题”应用302的图标,进入图3中的(c)所示的界面32。在如界面32所示的应用详情页中,包括有该应用的详细介绍信息,如应用评分、评分人数、下载次数等。在界面32示出的应用详情页中,也包括有相应的操作控件,例如控件3022。控件3022为安装控件,其作用与界面32中控件3021相同,均表示用户在点击该控件后,电子设备可以通过应用市场完成此应用的安装。In one example, users can learn specific information about each application through the application details page. As shown in (c) of Figure 3 , it is a schematic diagram of an interface 32 of an electronic device. The interface 32 may be a details page of a specific application, such as the details page of the "theme" application 302. The user can click the icon of the "theme" application 302 on the interface 31 in (b) of FIG. 3 to enter the interface 32 shown in (c) of FIG. 3 . The application details page shown in interface 32 includes detailed introduction information of the application, such as application rating, number of people who rated it, number of downloads, etc. The application details page shown in the interface 32 also includes corresponding operation controls, such as control 3022. Control 3022 is an installation control, and its function is the same as that of control 3021 in interface 32. They both indicate that after the user clicks the control, the electronic device can complete the installation of the application through the application market.
通常,应用市场的详情页界面,如图3中的(b)中的界面31,与应用市场中某一应用的详情页界面,如图3中的(c)中的界面32之间的区别在于,应用市场的详情页界面中往往包括多个应用,用户可以在应用市场的详情页界面中安装多个应用。例如,在图3中的(b)中的界面31中,用户可以通过点击相应的控件,完成“主题”、“QQ”、“微信”和“微博”等4个应用的安装。而应用市场的某一应用的详情页中,通常用于安装单个应用。例如,在图3中的(c)中的界面32中,用户可以通过点击相应的控件3022,完成“主题”应用302的安装。Generally, there is a difference between the details page interface of the application market, such as the interface 31 in (b) of Figure 3, and the details page interface of an application in the application market, such as the interface 32 of (c) in Figure 3. The reason is that the details page interface of the application market often includes multiple applications, and users can install multiple applications in the details page interface of the application market. For example, in the interface 31 in (b) of Figure 3, the user can complete the installation of four applications including "Theme", "QQ", "WeChat" and "Weibo" by clicking the corresponding controls. The details page of an application in the application market is usually used to install a single application. For example, in the interface 32 in (c) of Figure 3, the user can complete the installation of the "theme" application 302 by clicking the corresponding control 3022.
在一种示例中,应用市场还可以提供应用的更新功能。对于已安装在电子设备中的应用,当该应用存在新的版本时,电子设备可以在应用市场中提供相应的控件,供用户手动对应用进行更新。如图3中的(d)所示,是电子设备的应用市场的一个界面33的示意图,该界面可以是与界面31类似的应用市场详情页。若用户通过界面31将“主题”应用302安装在电子设备中之后,当该“主题”应用302有新的版本时,在应用市场中可以显示如界面33所示的界面,“主题”应用302旁的控件为“更新”控件3024。用户可以在界面33中点击控件3024,完成对“主题”应用302的更新。In one example, the application market can also provide an application update function. For an application that has been installed in an electronic device, when a new version of the application exists, the electronic device can provide corresponding controls in the application market for the user to manually update the application. As shown in (d) of FIG. 3 , it is a schematic diagram of an interface 33 of the application market of the electronic device. The interface may be an application market details page similar to the interface 31 . If the user installs the "theme" application 302 in the electronic device through the interface 31, when the "theme" application 302 has a new version, an interface as shown in the interface 33 can be displayed in the application market, and the "theme" application 302 The control next to it is the "Update" control 3024. The user can click the control 3024 in the interface 33 to complete the update of the "theme" application 302.
在本申请实施例中,电子设备可以在应用市场中为具有服务卡片的应用增加一服务卡片提示标识,用于向用户提示该应用具有可添加至桌面的服务卡片。示例性地,如图3中的(b)、(c)和(d)所示,在界面31、界面32和界面33中,若“主题”应用302具有可添加至桌面的服务卡片,电子设备可以在相应位置增加一提示标识。例如,在“主题”应用302的图标底部增加一下划线3023;或者,电子设备也可以在应用的图标右上角增加标识来表示该应用具有可添加的服务卡片。In this embodiment of the present application, the electronic device can add a service card prompt identifier to an application with a service card in the application market, so as to prompt the user that the application has a service card that can be added to the desktop. For example, as shown in (b), (c) and (d) in Figure 3, in interface 31, interface 32 and interface 33, if the "theme" application 302 has a service card that can be added to the desktop, the electronic The device can add a prompt mark at the corresponding position. For example, add an underline 3023 at the bottom of the icon of the "theme" application 302; or, the electronic device can also add a logo in the upper right corner of the icon of the application to indicate that the application has addable service cards.
在本申请实施例中,电子设备可以在安装或更新某一应用时,将该应用的服务卡片添加至桌面。In this embodiment of the present application, when installing or updating an application, the electronic device can add the service card of the application to the desktop.
如图4所示,是本申请实施例提供的一种服务卡片分发过程的示意图。其中,图4示出的是在应用市场详情页安装某一应用时分发该应用的服务卡片的过程。如图4中的(a)所示,示出的是应用市场的详情页的界面,图4中的(a)所示的界面即为图3中的(b)中的界面31。在该界面31中,“主题”应用302具有服务卡片提示标识。例如界面31中“主题”应用302的图标下方的下划线3023,该标识表示该应用具有可添加的服务卡片。用户可以点击图4中的(a)中所示的控件3021,安装“主题”应用302。在用户点击控件3021后,该控件3021所在区域将实时显示“主题”应用302的安装进度。如图4中的(b)所示,“主题”应用302当前的安装进度为48%。As shown in Figure 4, it is a schematic diagram of a service card distribution process provided by an embodiment of the present application. Among them, FIG. 4 shows the process of distributing the service card of an application when the application is installed on the application market details page. As shown in (a) of Figure 4 , the interface of the details page of the application market is shown. The interface shown in (a) of Figure 4 is the interface 31 in (b) of Figure 3 . In this interface 31, the "theme" application 302 has a service card prompt identification. For example, the underline 3023 below the icon of the "theme" application 302 in the interface 31 indicates that the application has service cards that can be added. The user can click the control 3021 shown in (a) of Figure 4 to install the "theme" application 302. After the user clicks the control 3021, the area where the control 3021 is located will display the installation progress of the "theme" application 302 in real time. As shown in (b) of Figure 4, the current installation progress of the "theme" application 302 is 48%.
在一种示例中,若用户此前未在当前的电子设备中使用过服务卡片,电子设备可以在如图4中的(b)所示的界面31中弹出一弹框41,该弹框41可以用于介绍服务卡片的相关信息。例如,在图4中的(b)中的弹框41中,可以显示有“欢迎使用服务卡片”等信息。如图4中的(b)所示,弹框41中包括一弹框关闭提示标识4101,用于提示用户如果不需要添加服务卡片至桌面时,如何关闭该弹框41。In one example, if the user has not used a service card in the current electronic device before, the electronic device can pop up a pop-up box 41 in the interface 31 as shown in (b) of Figure 4. The pop-up box 41 can Used to introduce information related to service cards. For example, in the pop-up box 41 in (b) of FIG. 4 , information such as "Welcome to the service card" may be displayed. As shown in (b) of Figure 4, the pop-up box 41 includes a pop-up box closing prompt mark 4101, which is used to prompt the user how to close the pop-up box 41 if there is no need to add a service card to the desktop.
在一种示例中,用户可以在弹框41中通过手势操作关闭弹框41。示例性地,如图4中的(c)所示,用户可以在弹框41中通过向下滑动的手势,关闭该弹框41。在一种可能的实现方式中,用户可以在弹框41中的任意位置,通过向下滑动的手势,关闭弹框41。在关闭弹框41后,电子设备可以仅安装应用,而不将该应用的服务卡片添加至桌面。在弹框41被关闭后,电子设备可以仅安装应用而不安装该应用的服务卡片。待应用安装完成后,界面31可以如图4中的(h)所示。图4中的(h)中的界面31与图4中的(a)中的界面31的区别在于,已安装“主题”应用302后,该“主题”应用302旁的控件3021由“安装”更新为“打开”,表示用户可以通过点击图4中的(h)中的控件3021,打开上述“主题”应用302。In one example, the user can close the pop-up frame 41 through a gesture operation in the pop-up frame 41 . For example, as shown in (c) of FIG. 4 , the user can close the pop-up frame 41 by sliding downward in the pop-up frame 41 . In one possible implementation, the user can close the pop-up frame 41 through a downward sliding gesture at any position in the pop-up frame 41 . After closing the pop-up box 41, the electronic device can only install the application without adding the service card of the application to the desktop. After the pop-up frame 41 is closed, the electronic device may only install the application without installing the service card of the application. After the application installation is completed, the interface 31 may be as shown in (h) in Figure 4 . The difference between the interface 31 in (h) in Figure 4 and the interface 31 in (a) in Figure 4 is that after the "theme" application 302 has been installed, the control 3021 next to the "theme" application 302 is controlled by "Install" Updated to "open", indicating that the user can open the above-mentioned "theme" application 302 by clicking the control 3021 in (h) in Figure 4.
此外,弹框41中还包括一控件4102,该控件4102可以用于提示用户如何将服务卡片添加至桌面。若用户在弹框41中点击控件4102,则电子设备可以在界面31中弹出另一弹框,用于介绍当前安装的“主题”应用302的服务卡片的相关信息。如图4中的(d)所示,是电子设备在界面31中弹出弹框42的一种示意图,该弹框42中包括“主题”应用302的服务卡片的介绍内容,如弹框42中的“新影像”等信息。如图4中的(e)所示,是电子设备在界面31中弹出弹框43的一种示意图。与弹框42类似,弹框43也可以用于介绍当前安装的“主题”应用302的服务卡片的相关信息。弹框43中还包括有电子设备与用户的交互信息,如:是否添加“主题”服务卡片到桌面。通过增加交互信息,可以明确当前弹框的作用,引导用户完成后续操作。In addition, the pop-up box 41 also includes a control 4102, which can be used to prompt the user how to add the service card to the desktop. If the user clicks the control 4102 in the pop-up box 41, the electronic device can pop up another pop-up box in the interface 31 to introduce relevant information of the service card of the currently installed "theme" application 302. As shown in (d) of Figure 4 , it is a schematic diagram of an electronic device popping up a pop-up box 42 in the interface 31 . The pop-up box 42 includes the introduction content of the service card of the "theme" application 302 , as shown in the pop-up box 42 of "new images" and other information. As shown in (e) of FIG. 4 , it is a schematic diagram of the electronic device popping up the pop-up box 43 in the interface 31 . Similar to the pop-up box 42, the pop-up box 43 can also be used to introduce relevant information of the service card of the currently installed "theme" application 302. The pop-up box 43 also includes interaction information between the electronic device and the user, such as whether to add a "theme" service card to the desktop. By adding interactive information, the role of the current pop-up box can be clarified and the user can be guided to complete subsequent operations.
与弹框41类似,弹框42和弹框43中均包括一弹框关闭提示标识,用于提示用户如果不需要添加“主题”应用302的服务卡片至桌面时,如何关闭该弹框。例如,图4中的(d)中的标识4201和图4中的(e)中的标识4301。Similar to the pop-up frame 41, the pop-up frame 42 and the pop-up frame 43 both include a pop-up frame closing prompt mark, which is used to prompt the user how to close the pop-up frame if there is no need to add the service card of the "theme" application 302 to the desktop. For example, the identifier 4201 in (d) of Figure 4 and the identifier 4301 in (e) of Figure 4.
在一种示例中,用户可以在弹框42中通过手势操作关闭弹框42。示例性地,如图4中的(f)所示,用户可以在弹框42中通过向下滑动的手势,关闭该弹框42。在一种可能的实现方式中,用户可以在弹框42中的任意位置,通过向下滑动的手势,关闭弹框42。类似地,用户也可以在弹框43中通过手势操作关闭弹框43。如图4中的(g)所示,用户可以在弹框43中通过向下滑动的手势,关闭该弹框43。在关闭弹框42或弹框43后,电子设备可以仅安装应用,而不将该“主题”应用302的服务卡片添加至桌面。在弹框42或弹框43被关闭且完成“主题”应用302的安装后,电子设备所显示的界面可以如图4中的(h)所示。In one example, the user can close the pop-up frame 42 through a gesture operation in the pop-up frame 42 . For example, as shown in (f) of FIG. 4 , the user can close the pop-up frame 42 by sliding downward in the pop-up frame 42 . In one possible implementation, the user can close the pop-up frame 42 by sliding downward at any position in the pop-up frame 42 . Similarly, the user can also close the pop-up frame 43 through gesture operation in the pop-up frame 43 . As shown in (g) of Figure 4 , the user can close the pop-up frame 43 by sliding downward in the pop-up frame 43 . After closing the pop-up box 42 or 43, the electronic device can only install the application without adding the service card of the "theme" application 302 to the desktop. After the pop-up frame 42 or the pop-up frame 43 is closed and the installation of the "theme" application 302 is completed, the interface displayed by the electronic device may be as shown in (h) in Figure 4 .
在一些实现方式中,弹框41、弹框42和弹框43也可以采用关闭按钮的方式来提示用户如何关闭当前的弹框,本申请实施例对电子设备各个界面中的弹框的关闭方式不作限定。In some implementations, the pop-up boxes 41, 42 and 43 can also use close buttons to prompt the user how to close the current pop-up boxes. The embodiments of the present application provide a method for closing the pop-up boxes in each interface of the electronic device. Not limited.
若用户在如图4中的(b)或(c)所示的弹框41,或如图4中的(d)或(f)所示的弹框42,或如图4中的(e)或(g)所示的弹框43中通过手势操作,拒绝电子设备将服务卡片添加至桌面,则在应用安装过程中,电子设备可以仅在桌面生成一应用占位区域。如图4中的(i)所示,是在仅安装“主题”应用302的过程中,电子设备的桌面的示意图,该桌面中仅包括一占位区域401,该占位区域401可以用于在应用安装完成后,放置应用的图标。如图4中的(j)所示,示出的是在图4中的(i)所示的占位区域401的位置,放置有已安装好的“主题”应用302的图标的桌面的示意图。If the user is in the pop-up box 41 shown in (b) or (c) in Figure 4, or the pop-up box 42 shown in (d) or (f) in Figure 4, or (e) in Figure 4 ) or (g) through the pop-up box 43 shown in (g) to refuse the electronic device to add the service card to the desktop through gesture operation, then during the application installation process, the electronic device can only generate an application space area on the desktop. As shown in (i) in Figure 4, it is a schematic diagram of the desktop of the electronic device during the process of installing only the "theme" application 302. The desktop only includes a placeholder area 401, which can be used for After the app is installed, place the app's icon. As shown in (j) in Figure 4 , it is a schematic diagram of the desktop with the icon of the installed "theme" application 302 placed at the position of the occupying area 401 shown in (i) in Figure 4 .
如图4中的(d)和(e)所示,弹框42中还包括一控件4202,弹框43中还包括一控件4302,控件4202和控件4302可以用于提示用户通过点击该控件,可以将“主题”应用302的服务卡片添加至桌面。若用户在弹框42中点击控件4202或在弹框43中点击控件4302,则电子设备可以在安装“主题”应用302的同时,将该应用的服务卡片添加至桌面。在一种示例中,若用户点击控件4202,则电子设备可以在后台下载、安装当前的应用及服务卡片。此时,电子设备的界面可以如图4中的(a)所示,控件3021所在区域将实时显示“主题”应用302的安装进度。As shown in (d) and (e) in Figure 4, the pop-up box 42 also includes a control 4202, and the pop-up box 43 also includes a control 4302. The control 4202 and the control 4302 can be used to prompt the user to click the control. The service card of the "theme" application 302 can be added to the desktop. If the user clicks the control 4202 in the pop-up box 42 or clicks the control 4302 in the pop-up box 43, the electronic device can add the service card of the application to the desktop while installing the "theme" application 302. In one example, if the user clicks the control 4202, the electronic device can download and install the current application and service card in the background. At this time, the interface of the electronic device can be as shown in (a) of Figure 4 , and the area where the control 3021 is located will display the installation progress of the "theme" application 302 in real time.
在应用及服务卡片的下载过程中,电子设备可以在桌面为该应用及服务卡片占位。如图4中的(k),示出了应用下载过程中电子设备桌面的占位示意图。在该示意图中,电子设备的桌面中包括两个占位区域,即占位区域401和占位区域402。其中,占位区域401为“主题”应用302的占位区域,待“主题”应用302安装完成后,其应用图标将显示在占位区域401处;占位区域402为“主题”应用302的服务卡片的占位区域,待“主题”应用302的服务卡片安装完成后,服务卡片将显示在占位区域402处。During the downloading process of application and service cards, the electronic device can occupy space for the application and service cards on the desktop. As shown in (k) in Figure 4 , a schematic diagram of the desktop of the electronic device during the application downloading process is shown. In this schematic diagram, the desktop of the electronic device includes two occupying areas, namely a occupying area 401 and a occupying area 402. Among them, the placeholder area 401 is the placeholder area of the "theme" application 302. After the "theme" application 302 is installed, its application icon will be displayed in the placeholder area 401; the placeholder area 402 is the placeholder area of the "theme" application 302. The service card's placeholder area. After the service card of the "theme" application 302 is installed, the service card will be displayed in the placeholder area 402.
如图4中的(l)所示,是应用及服务卡片安装完成后的桌面示意图,在该示意图中,包括“主题”应用302的图标及服务卡片302’。As shown in (l) in Figure 4, it is a schematic diagram of the desktop after the application and service cards are installed. In this schematic diagram, the icon of the "theme" application 302 and the service card 302' are included.
在一种可能的实现方式中,在用户点击弹框42中的控件4202或弹框43中的控件4302,触发电子设备向桌面添加服务卡片后,若用户不在电子设备上作其他操作,电子设备可以仅显示如图4中的(a)所示的界面,而不将如图4中的(k)所示的占位示意图展示给用户。在应用安装过程中,若用户通过操作退出应用市场至桌面,则电子设备可以呈现如图4中的(k)所示的界面。In one possible implementation, after the user clicks the control 4202 in the pop-up box 42 or the control 4302 in the pop-up box 43 to trigger the electronic device to add a service card to the desktop, if the user does not perform other operations on the electronic device, the electronic device Only the interface shown in (a) in Figure 4 may be displayed without showing the placeholder schematic diagram shown in (k) in Figure 4 to the user. During the application installation process, if the user exits the application market and returns to the desktop through operation, the electronic device may present an interface as shown in (k) in Figure 4 .
在用户点击弹框42中的控件4202或弹框43中的控件4302,触发电子设备向桌面添加服务卡片后,若用户停留在应用市场中,则待应用及服务卡片安装完成后,应用市场详情页可以如图4中的(h)所示。此时,控件3021所在区域将显示为“打开”,表示用户通过点击控件3021,可以打开“主题”应用302。After the user clicks the control 4202 in the pop-up box 42 or the control 4302 in the pop-up box 43 to trigger the electronic device to add a service card to the desktop, if the user stays in the application market, after the application and service card are installed, the application market details The page may be as shown in (h) in Figure 4. At this time, the area where the control 3021 is located will be displayed as "open", indicating that the user can open the "theme" application 302 by clicking the control 3021.
在一种可能的实现方式中,电子设备分发应用的服务卡片也可以是通过在应用的详情页来安装该应用时实现的。即,用户可以在如图3中的(c)所示的界面33中安装应用。示例性地,用户可以点击图3中的(c)中的控件3022安装“主题”应用302。然后,电子设备分发应用的服务卡片的过程与图4中的(b)至(l)的过程较为类似,二者的区别在于,电子设备此后通过弹框与用户之间的交互过程是在界面32中完成的,而在图4所示的过程中,电子设备与用户之间的交互过程是在界面31中完成的。In one possible implementation, the electronic device may distribute the service card of the application by installing the application on the application's details page. That is, the user can install the application in the interface 33 shown in (c) of FIG. 3 . For example, the user can click the control 3022 in (c) of Figure 3 to install the "theme" application 302. Then, the process of the electronic device distributing the service card of the application is similar to the processes (b) to (l) in Figure 4. The difference between the two is that the interaction process between the electronic device and the user through the pop-up box is in the interface. 32, and in the process shown in Figure 4, the interaction process between the electronic device and the user is completed in the interface 31.
在一些示例中,电子设备也可以不显示如图4中的(c)和(d)所示的服务卡片的介绍信息。即,在用户点击图4中的(a)中的“安装”控件3021后,电子设备可以直接在界面31中弹出如图4中的(d)所示的弹框42或如图4中的(e)所示的弹框43。In some examples, the electronic device may not display the introduction information of the service card as shown in (c) and (d) of Figure 4 . That is, after the user clicks the "Install" control 3021 in (a) of Figure 4, the electronic device can directly pop up the pop-up box 42 as shown in (d) of Figure 4 or the pop-up box 42 as shown in Figure 4 (d) in the interface 31. The pop-up box 43 shown in (e).
结合图4,电子设备在应用安装过程中将该应用的服务卡片添加至桌面可以包括如下几种方式:Combined with Figure 4, during the application installation process, the electronic device can add the service card of the application to the desktop in the following ways:
方式1:Way 1:
用户在图4中的(a)所示的界面31中点击安装控件3021,电子设备在界面31中弹出弹框41,如图4中的(b)所示。用户点击弹框41中的“立即体验”控件4102,电子设备在界面31中弹出弹框42(如图4中的(d)所示)或弹框43((如图4中的(e)所示)。用户点击弹框42中的“添加到桌面”控件4202,或弹框43中的“添加到桌面”控件4302,电子设备在桌面为应用和服务卡片占位(如图4中的(k)所示)。在应用和服务卡片安装过程中,若用户未操作电子设备退出应用市场,待应用和服务卡片安装完成后,电子设备显示如图4中的(h)所示的界面。添加有应用和服务卡片的桌面如图4中的(l)所示。The user clicks the installation control 3021 in the interface 31 shown in (a) of Figure 4, and the electronic device pops up a pop-up box 41 in the interface 31, as shown in (b) of Figure 4. The user clicks the "experience now" control 4102 in the pop-up box 41, and the electronic device pops up a pop-up box 42 (as shown in (d) in Figure 4) or a pop-up box 43 (((e) in Figure 4) in the interface 31 shown). The user clicks the "Add to Desktop" control 4202 in the pop-up box 42, or the "Add to Desktop" control 4302 in the pop-up box 43, and the electronic device takes up space for application and service cards on the desktop (as shown in Figure 4 (as shown in (k)). During the installation process of application and service cards, if the user exits the application market without operating the electronic device, after the installation of the application and service cards is completed, the electronic device displays the interface shown in (h) in Figure 4 .The desktop with application and service cards added is shown in (l) in Figure 4.
方式1中,在添加服务卡片的过程,电子设备显示的界面可以依次包括如图4中的如下界面:In method 1, during the process of adding a service card, the interface displayed by the electronic device may include the following interface as shown in Figure 4:
第一种:(a)-(b)-(d)-(h)-(l);Type 1: (a)-(b)-(d)-(h)-(l);
第二种:(a)-(b)-(d)-(k)-(l);The second type: (a)-(b)-(d)-(k)-(l);
第三种:(a)-(b)-(e)-(h)-(l);The third type: (a)-(b)-(e)-(h)-(l);
第四种:(a)-(b)-(e)-(k)-(l)。The fourth type: (a)-(b)-(e)-(k)-(l).
方式2:Way 2:
用户在图4中的(a)所示的界面31中点击安装控件3021,电子设备在界面31中弹出弹框42(如图4中的(d)所示)或弹框43((如图4中的(e)所示)。用户点击弹框42中的“添加到桌面”控件4202,或弹框43中的“添加到桌面”控件4302,电子设备在桌面为应用和服务卡片占位(如图4中的(k)所示)。在应用和服务卡片安装过程中,若用户未操作电子设备退出应用市场,待应用和服务卡片安装完成后,电子设备显示如图4中的(h)所示的界面。添加有应用和服务卡片的桌面如图4中的(l)所示。The user clicks the installation control 3021 in the interface 31 shown in (a) of Figure 4, and the electronic device pops up a pop-up box 42 (shown in (d) of Figure 4) or a pop-up box 43 ((as shown in Figure 4) in the interface 31 (As shown in (e) in 4). The user clicks the "Add to Desktop" control 4202 in the pop-up box 42, or the "Add to Desktop" control 4302 in the pop-up box 43, and the electronic device takes up space for application and service cards on the desktop. (As shown in (k) in Figure 4). During the installation process of application and service cards, if the user exits the application market without operating the electronic device, after the installation of the application and service cards is completed, the electronic device displays (() in Figure 4 The interface shown in h). The desktop with application and service cards added is shown in (l) in Figure 4.
方式2中,在添加服务卡片的过程中,电子设备显示的界面可以依次包括如图4中的如下界面:In method 2, during the process of adding a service card, the interface displayed by the electronic device may include the following interface as shown in Figure 4:
第一种:(a)-(d)-(h)-(l);Type 1: (a)-(d)-(h)-(l);
第二种:(a)-(d)-(k)-(l);The second type: (a)-(d)-(k)-(l);
第三种:(a)-(e)-(h)-(l);The third type: (a)-(e)-(h)-(l);
第四种:(a)-(e)-(k)-(l)。The fourth type: (a)-(e)-(k)-(l).
在本申请实施例的一种可能的实现方式中,电子设备还可以在静态升级某一应用时,将该应用的服务卡片添加至桌面。In a possible implementation manner of the embodiment of the present application, the electronic device can also add the service card of an application to the desktop when statically upgrading the application.
如图5所示,是本申请实施例提供的另一种服务卡片分发过程的示意图。图5针对的是电子设备中已安装的某一应用,当该应用自动完成更新、升级后,电子设备添加该应用的服务卡片至桌面的过程。As shown in Figure 5, it is a schematic diagram of another service card distribution process provided by an embodiment of the present application. Figure 5 is directed to a certain application that has been installed in the electronic device. After the application automatically completes the update and upgrade, the electronic device adds the service card of the application to the desktop.
当电子设备完成某一应用的更新后,可以通过通知来提示用户该应用已完成更新。若该应用具有可添加的服务卡片,则通知中的提示信息可以包括提示用户添加服务卡片的信息。如图5中的(a)所示,当“主题”应用更新后,电子设备可以通过横幅(banner)501对用户进行提示,横幅501中的提示信息可以包括如下内容:“主题”最新版本更新完成,新版本增加桌面服务卡片,快去添加吧。若用户并不希望添加“主题”应用的服务卡片,则可以忽略该通知,或通过操作清除该通知。When the electronic device completes the update of a certain application, it can prompt the user that the application has completed the update through a notification. If the application has addable service cards, the prompt information in the notification may include information prompting the user to add the service card. As shown in (a) in Figure 5, when the "Theme" application is updated, the electronic device can prompt the user through a banner 501. The prompt information in the banner 501 can include the following content: The latest version of "Theme" is updated. Completed, the new version adds a desktop service card, go ahead and add it. If the user does not want to add the service card of the "Theme" application, he can ignore the notification or clear the notification through operations.
若用户希望添加服务卡片或希望进一步了解服务卡片,则可以在通过点击横幅501,跳转至应用市场该应用的详情页。如图5中的(b)所示,示出了应用市场中“主题”应用的详情页界面,该详情页界面可以是图3中的(c)所示的详情页界面32。在界面32中,电子设备可以弹出一弹框51,用于介绍服务卡片的相关信息。例如,在图5中的(b)中的弹框51中,可以显示有“欢迎使用服务卡片”等信息。If the user wants to add a service card or want to learn more about the service card, he can click banner 501 to jump to the details page of the application in the application market. As shown in (b) of FIG. 5 , the details page interface of the "theme" application in the application market is shown. The details page interface may be the details page interface 32 shown in (c) of FIG. 3 . In the interface 32, the electronic device can pop up a pop-up box 51 for introducing relevant information of the service card. For example, in the pop-up box 51 in (b) of FIG. 5 , information such as "Welcome to the service card" may be displayed.
如图5中的(b)所示,弹框51中包括一弹框关闭提示标识5101,用于提示用户如果不需要添加服务卡片至桌面时,如何关闭该弹框51。在一种示例中,如图5中的(c)所示,用户可以在弹框51中通过手势操作关闭弹框51。用户通过手势关闭弹框51与通过手势关闭图4中的(c)中的弹框41的过程类似,在此不再赘述。As shown in (b) of Figure 5, the pop-up box 51 includes a pop-up box closing prompt mark 5101, which is used to prompt the user how to close the pop-up box 51 if there is no need to add a service card to the desktop. In one example, as shown in (c) of FIG. 5 , the user can close the pop-up frame 51 through a gesture operation in the pop-up frame 51 . The process in which the user closes the pop-up frame 51 through a gesture is similar to the process of closing the pop-up frame 41 in (c) of FIG. 4 through a gesture, which will not be described again.
此外,弹框51中还包括一控件5102,该控件5102可以用于提示用户如何将服务卡片添加至桌面。若用户在弹框51中点击控件5102,则电子设备可以在界面32中弹出另一弹框,用于介绍当前安装的“主题”应用302的服务卡片的相关信息。例如,如图5中的(d)所示的弹框52,或如图5中的(e)所示的弹框53。该弹框52和弹框53中可以包括“主题”应用302的服务卡片的介绍内容。In addition, the pop-up box 51 also includes a control 5102, which can be used to prompt the user how to add the service card to the desktop. If the user clicks the control 5102 in the pop-up box 51, the electronic device can pop up another pop-up box in the interface 32 for introducing relevant information of the service card of the currently installed "theme" application 302. For example, the pop-up frame 52 shown in (d) in Figure 5, or the pop-up frame 53 shown in (e) in Figure 5. The pop-up boxes 52 and 53 may include the introduction content of the service card of the "theme" application 302.
由于图5中的(d)所示的弹框52与图4中的(d)所示的弹框42类似,图5中的(e)所示的弹框53与图4中的(e)所示的弹框43类似,用户在图5中的(f)所示的弹框52中操作以关闭弹框52拒绝添加服务卡片或者通过操作添加服务卡片至桌面,以及用户在图5中的(g)所示的弹框53中操作以关闭弹框53拒绝添加服务卡片或者通过操作添加服务卡片至桌面,可以参见前述实施例的描述,在此不再赘述。Since the pop-up frame 52 shown in (d) in Figure 5 is similar to the pop-up frame 42 shown in (d) in Figure 4, the pop-up frame 53 shown in (e) in Figure 5 is similar to the pop-up frame 53 shown in (e) in Figure 4. ) is similar to the pop-up box 43 shown in (f) in Figure 5. The user operates in the pop-up box 52 shown in (f) in Figure 5 to close the pop-up box 52 and refuse to add the service card or add the service card to the desktop through the operation, and the user in Figure 5 For operations in the pop-up box 53 shown in (g) to close the pop-up box 53 to refuse to add a service card or to add a service card to the desktop through operations, please refer to the description of the foregoing embodiments and will not be repeated here.
若用户选择添加服务卡片,则在添加服务卡片的过程中,电子设备可以首先在桌面为服务卡片占位。如图5中的(h)所示,示出的是在静态升级某一应用后,通过提示用户添加该应用的服务卡片时,桌面占位的示意图。即在图5中的(h)中的占位区域402即是服务卡片的占位区域,待服务卡片完成添加后,电子设备的桌面可以如图4中的(l)所示。If the user chooses to add a service card, during the process of adding the service card, the electronic device can first occupy a space for the service card on the desktop. As shown in (h) in Figure 5 , it shows a schematic diagram of the desktop occupying space after statically upgrading an application and prompting the user to add a service card for the application. That is, the space 402 in (h) in Figure 5 is the space for the service card. After the service card is added, the desktop of the electronic device can be as shown in (l) in Figure 4 .
在一些示例中,电子设备也可以不显示如图5中的(b)和(c)所示的服务卡片的介绍信息。即,在用户点击图5中的(a)中的通知横幅501后,电子设备可以跳转至应用市场“主题”应用302的详情页界面32,并在界面33中弹出如图5中的(d)所示的弹框52或如图5中的(e)所示的弹框53。In some examples, the electronic device may not display the introduction information of the service card as shown in (b) and (c) of Figure 5 . That is, after the user clicks on the notification banner 501 in (a) of Figure 5 , the electronic device can jump to the details page interface 32 of the "theme" application 302 in the application market, and pop up the interface 33 as shown in Figure 5 ( The pop-up frame 52 shown in d) or the pop-up frame 53 shown in (e) of Figure 5 .
在本申请实施例的一种可能的实现方式中,电子设备在安装或更新应用时,可以按照图4或图5所示的方式对用户进行提示,基于用户的操作来决定是否将服务卡片添加至桌面。In a possible implementation of the embodiment of the present application, when the electronic device installs or updates an application, it can prompt the user in the manner shown in Figure 4 or Figure 5, and decide whether to add the service card based on the user's operation. to the desktop.
在本申请实施例的另一种可能的实现方式中,电子设备在安装或更新应用时,也可以基于用户预先设定的安装方式,自动地将当前安装或更新的应用的服务卡片添加至桌面。示例性地,若用户点击图4中的(a)中的控件3021安装“主题”应用302,则电子设备可以不显示如图4中的(b)至(g)所示的各个界面,而是自动地将“主题”应用302的服务卡片添加至桌面。In another possible implementation of the embodiment of the present application, when installing or updating an application, the electronic device can also automatically add the service card of the currently installed or updated application to the desktop based on the installation method preset by the user. . For example, if the user clicks the control 3021 in (a) in Figure 4 to install the "theme" application 302, the electronic device may not display the respective interfaces shown in (b) to (g) in Figure 4, but It is to automatically add the service card of "theme" application 302 to the desktop.
在此过程中,电子设备显示的界面可以依次包括如图4中的如下界面:During this process, the interface displayed by the electronic device may include the following interface as shown in Figure 4:
第一种:(a)-(h)-(l);Type 1: (a)-(h)-(l);
第二种:(a)-(k)-(l)。The second type: (a)-(k)-(l).
在本申请实施例中,电子设备在添加服务卡片的过程中,是否提示用户添加服务卡片,或者自动添加服务卡片,可以通过对添加服务卡片的方式进行设置来实现。In this embodiment of the present application, during the process of adding a service card, whether the electronic device prompts the user to add the service card or automatically adds the service card can be implemented by setting the method of adding the service card.
如图6所示,是本申请实施例的一种设置服务卡片的添加方式的示意图。在一种示例中,对添加服务卡片的方式进行设置可以在应用市场的设置页面来完成,如图6中的(a)所示,是应用市场详情页界面31的示意图,用户可以点击界面31中的“我的”控件310,进入“我的”界面60,在界面60中包括多可操作的选项,如“我的账号资料”、“我的应用”、“我的预约”以及“设置”等等。用户可以通过点击“设置”按钮601进入应用市场的设置页面。应理解,图6中的(b)所示的界面60仅为一种示例,在不同的电子设备中,在如界面60所示的界面中,所包含的可操作的选项可以不同,本申请实施例对此不作限定。As shown in FIG. 6 , it is a schematic diagram of a method of adding a service card according to an embodiment of the present application. In one example, setting the method of adding service cards can be completed on the settings page of the application market. As shown in (a) in Figure 6, it is a schematic diagram of the application market details page interface 31. The user can click on the interface 31 The "My" control 310 in the "My" interface 60 is entered. The interface 60 includes multiple operable options, such as "My account information", "My application", "My reservation" and "Settings". "etc. The user can enter the settings page of the application market by clicking the "Settings" button 601. It should be understood that the interface 60 shown in (b) of FIG. 6 is only an example. In different electronic devices, the operable options included in the interface shown in the interface 60 may be different. This application The embodiment does not limit this.
在一种示例中,用户可以点击界面60中的“设置”按钮601,进入如图6中的(c)所示的界面61。在电子设备的界面61中,包括“添加服务卡片”设置项611,用户可以通过该设置项611,设置具体的服务卡片添加方式。设置服务卡片的添加方式的界面可以如图6中的(d)所示,在图6中的(d)所示的界面62中,包括三个选项,即“智能添加”选项621,“提示添加”选项622和“关闭”选项623。针对每个选项,电子设备可以在该选项的相应位置通过文字对该选项进行具体的介绍。示例性地,“关闭”选项623,表示“安装和更新完应用后,不再提示添加卡片到桌面”,即,在选定“关闭”选项623后,电子设备将仅安装和更新应用,不会自动添加应用的服务卡片,也不会通过如图4或图5所示的方式,提示用户添加服务卡片。“提示添加”选项622,表示“安装和更新完应用后,提示添加卡片到桌面”,即,在选定“提示添加”选项622后,电子设备在安装或更新完应用后,可以通过如图4或图5所示的方式,提示用户添加服务卡片。图6中的(d)和(h)分别示出了选定“关闭”选项623和选定“提示添加”选项622后,界面62的示意图。如图6中的(e)所示,是选定“智能添加”选项621后界面62的示意图,“智能添加”选项621,表示“安装和更新完应用后,智能添加优质服务卡片到桌面”,即,在选定“智能添加”选项621后,电子设备将自动将服务卡片添加至桌面,而无需按照图4或图5所示的方式对用户进行提示。In one example, the user can click the "Settings" button 601 in the interface 60 to enter the interface 61 as shown in (c) of Figure 6 . The interface 61 of the electronic device includes an "add service card" setting item 611, through which the user can set a specific method of adding a service card. The interface for setting the adding method of the service card can be as shown in (d) in Figure 6. The interface 62 shown in (d) in Figure 6 includes three options, namely the "intelligent add" option 621, the "prompt" Add" option 622 and "Close" option 623. For each option, the electronic device can provide a detailed introduction to the option through text at the corresponding position of the option. For example, the "Close" option 623 means "After installing and updating the application, you will no longer be prompted to add a card to the desktop." That is, after selecting the "Close" option 623, the electronic device will only install and update the application, and will not The application's service card will be automatically added, and the user will not be prompted to add a service card as shown in Figure 4 or Figure 5. The "prompt to add" option 622 means "after installing and updating the application, prompt to add a card to the desktop", that is, after selecting the "prompt to add" option 622, after the electronic device has installed or updated the application, you can use the following figure: 4 or as shown in Figure 5, prompt the user to add a service card. (d) and (h) in FIG. 6 respectively show a schematic diagram of the interface 62 after the "Close" option 623 and the "Prompt to Add" option 622 are selected. As shown in (e) in Figure 6 , it is a schematic diagram of the interface 62 after selecting the "intelligent add" option 621. The "intelligent add" option 621 means "after installing and updating the application, intelligently add a high-quality service card to the desktop." , that is, after selecting the "smart add" option 621, the electronic device will automatically add the service card to the desktop without prompting the user as shown in Figure 4 or Figure 5.
在一种示例中,如图6中的(f)所示,是在选定“智能添加”方式后,安装“主题”应用302时电子设备的一种界面的示意图。图6中的(f)所示的界面为应用市场详情页界面,该界面即为图3中的(b)所示的界面31或图4中的(a)所示的界面31。在用户点击界面31中的控件3021,安装“主题”应用302时,电子设备可以通过非模态弹窗(toast)602提示用户,当前安装的应用的服务卡片将被添加至桌面。示例性地,电子设备可以在非模态弹窗602中显示如“安装完成后,您可在桌面查看“主题”服务卡片”等文字,用于对用户的提示。电子设备安装“主题”应用302及服务卡片后的桌面示意图可以如图4中的(l)所示。In an example, as shown in (f) of FIG. 6 , it is a schematic diagram of an interface of an electronic device when the "theme" application 302 is installed after the "smart addition" mode is selected. The interface shown in (f) in Figure 6 is the application market details page interface, which is the interface 31 shown in (b) in Figure 3 or the interface 31 shown in (a) in Figure 4 . When the user clicks the control 3021 in the interface 31 to install the "theme" application 302, the electronic device can prompt the user through a non-modal pop-up window (toast) 602 that the service card of the currently installed application will be added to the desktop. For example, the electronic device can display text such as "After the installation is completed, you can view the "Theme" service card on the desktop" in the non-modal pop-up window 602 to prompt the user. The schematic diagram of the desktop after the "theme" application 302 and the service card are installed on the electronic device can be shown in (l) in Figure 4 .
在另一种示例中,如图6中的(g)所示,是在选定“智能添加”方式后,安装“主题”应用302时电子设备的另一种界面的示意图。图6中的(g)所示的界面为应用市场“主题”应用302的详情页界面,该界面即为图3中的(c)所示的界面32。在用户点击界面32中的控件3022,安装“主题”应用302时,电子设备可以通过非模态弹窗603提示用户,当前安装的应用的服务卡片将被添加至桌面。示例性地,电子设备可以在非模态弹窗602中显示如“安装完成后,您可在桌面查看“主题”服务卡片”等文字,用于对用户的提示。电子设备安装“主题”应用302及服务卡片后的桌面示意图可以如图4中的(l)所示。In another example, as shown in (g) of FIG. 6 , it is a schematic diagram of another interface of the electronic device when the "theme" application 302 is installed after the "smart addition" mode is selected. The interface shown in (g) in Figure 6 is the details page interface of the "theme" application 302 in the application market, and this interface is the interface 32 shown in (c) in Figure 3 . When the user clicks the control 3022 in the interface 32 to install the "theme" application 302, the electronic device can prompt the user through a non-modal pop-up window 603 that the service card of the currently installed application will be added to the desktop. For example, the electronic device can display text such as "After the installation is completed, you can view the "Theme" service card on the desktop" in the non-modal pop-up window 602 to prompt the user. The schematic diagram of the desktop after the "theme" application 302 and the service card are installed on the electronic device can be shown in (l) in Figure 4 .
在本申请实施例中,电子设备在将某一应用的服务卡片添加至桌面后,还可以通过多端分发,将该服务卡片分发至其他电子设备。In this embodiment of the present application, after the electronic device adds the service card of a certain application to the desktop, it can also distribute the service card to other electronic devices through multi-terminal distribution.
如图7所示,是本申请实施例提供的一种服务卡片多端分发的示意图。在图7中,包括第一电子设备701和第二电子设备702,其中第一电子设备701可以是前述各个实施例中的电子设备,第二电子设备702可以是与第一电子设备701类型相同的电子设备,第二电子设备702也可以是与第一电子设备701类型不同的电子设备。示例性地,第一电子设备701可以是手机,第二电子设备702也可以是手机;或者,第一电子设备701是手机,第二电子设备702可以是平板电脑,或其他如智能手表等可穿戴设备。As shown in Figure 7, it is a schematic diagram of multi-terminal distribution of service cards provided by an embodiment of the present application. In Figure 7, a first electronic device 701 and a second electronic device 702 are included. The first electronic device 701 may be the electronic device in the aforementioned embodiments, and the second electronic device 702 may be of the same type as the first electronic device 701. The second electronic device 702 may also be an electronic device of a different type from the first electronic device 701 . For example, the first electronic device 701 can be a mobile phone, and the second electronic device 702 can also be a mobile phone; or the first electronic device 701 can be a mobile phone, and the second electronic device 702 can be a tablet computer, or other devices such as a smart watch. Wearable devices.
示例性地,如图7所示,第一电子设备701可以按照前述各个实施例中介绍的方式,将“主题”应用的服务卡片添加至桌面。例如,在图7中,第一电子设备701的桌面包括“主题”应用302及其服务卡片302’。第一电子设备701可以将服务卡片302’分发至与第一电子设备701通信的第二电子设备702的桌面。例如,在图7中,第二电子设备702的桌面包括“主题”应用302的服务卡片302”,该服务卡片302”与第一电子设备701中的服务卡片302’相同。通过将服务卡片分发至多个其他的电子设备,可以减少服务卡片安装时的操作次数,提高服务卡片的添加效率。For example, as shown in FIG. 7 , the first electronic device 701 can add the service card of the "theme" application to the desktop in the manner introduced in the foregoing embodiments. For example, in Figure 7, the desktop of the first electronic device 701 includes the "theme" application 302 and its service card 302'. The first electronic device 701 may distribute the service card 302' to the desktop of the second electronic device 702 in communication with the first electronic device 701. For example, in FIG. 7 , the desktop of the second electronic device 702 includes a service card 302″ of the “theme” application 302, which is the same as the service card 302′ in the first electronic device 701. By distributing service cards to multiple other electronic devices, the number of operations during service card installation can be reduced and the efficiency of adding service cards can be improved.
图7中示出的第二电子设备702仅为一种示例,在实际应用中,第二电子设备702的数量可以包括多个。示例性地,第二电子设备702不仅可以包括如图7中所示的平板电脑,还可以包括图7中未示出的智能手表、笔记本电脑、智慧屏等电子设备,本申请实施例对此不作限定。The second electronic device 702 shown in FIG. 7 is only an example. In actual applications, the number of the second electronic device 702 may include multiple. Illustratively, the second electronic device 702 may not only include a tablet computer as shown in FIG. 7 , but may also include electronic devices such as smart watches, notebook computers, and smart screens not shown in FIG. 7 . This embodiment of the present application will Not limited.
前述各个实施例介绍了电子设备如何在安装或更新时应用,将该应用的服务卡片添加至桌面的详细过程。下面结合附图,分别从开发者和用户的角度来说明应用与服务卡片建立关联关系,以及用户参与交互的过程。The foregoing embodiments describe the detailed process of how an electronic device applies an application during installation or update and adds the service card of the application to the desktop. The following is a description of the relationship between the application and the service card and the process of user participation in the interaction from the perspectives of developers and users.
如图8所示,是本申请实施例提供的一种应用与服务卡片建立关联关系的示意图。按照图8所示的流程,应用开发者可以首先开发应用,并向开发者平台提交应用,请求开发者平台上架该应用。开发者平台在接收到开发者提交的应用后,可以对该应用进行审核、测试。示例性地,开发者平台可以对应用进行兼容性测试、审核该应用是否符合相应的平台规范。若应用通过审核,开发者平台可以在应用市场中上架该应用。针对该应用,应用开发者可以申请为该应用开发关联的服务卡片。应用开发者在申请开发服务卡片时,应当选择该开发者名下的应用。针对应用开发者的申请,开发者平台可以生成携带关联信息的配置文件。在应用开发者提交服务卡片后,开发者平台可以对服务卡片的配置文件进行校验,如校验开发者提交的服务卡片与其请求的应用之间的关联关系是否成立等。待开发者平台完成对服务卡片的审核后,开发者平台可以在应用市场对其进行上架,并建立服务卡片与应用的关联关系。示例性地,对于上架的服务卡片,应用市场可以通过如图3、图4及图5所示的方式,在应用的图标下方增加一下划线,以提示用户该应用具有可添加的服务卡片。As shown in FIG. 8 , it is a schematic diagram of establishing an association relationship between an application and a service card provided by an embodiment of the present application. According to the process shown in Figure 8, application developers can first develop an application, submit the application to the developer platform, and request the developer platform to put the application on the shelves. After receiving the application submitted by the developer, the developer platform can review and test the application. For example, the developer platform can conduct compatibility testing on the application and review whether the application complies with the corresponding platform specifications. If the application passes the review, the developer platform can list the application in the application market. For this application, application developers can apply to develop service cards associated with the application. When applying for a development service card, an application developer should select an application under the developer's name. For application developers' applications, the developer platform can generate a configuration file carrying related information. After the application developer submits the service card, the developer platform can verify the configuration file of the service card, such as verifying whether the association between the service card submitted by the developer and the requested application is established. After the developer platform completes the review of the service card, the developer platform can put it on the application market and establish an association between the service card and the application. For example, for the service cards on the shelves, the application market can add an underline under the icon of the application as shown in Figure 3, Figure 4 and Figure 5 to remind the user that the application has addable service cards.
如图9所示,是本申请实施例提供的一种用户参与服务卡片的添加过程的示意图。按照图9所示的流程,用户可以在电子设备端的应用市场中点击安装某一应用,电子设备端的桌面启动器(Launcher)可以向服务器端发送用户当前安装的应用的标识(appId),来请求应用信息。服务器端根据应用标识可以返回应用信息,如应用的包名(packageName)、版本号(versionCode)、签名(sign)、哈希值(fileHash)、关联的服务卡片信息(releatedFAInfo)等。根据服务端返回的应用信息,电子设备可以在应用市场中启动应用的下载安装。在下载安装过程中,电子设备可以通知Launcher下载进度,并根据下载进度在桌面进行占位。例如,可以在桌面的特定区域展示水波纹。若当前安装的应用存在关联的服务卡片,则电子设备可以通过弹框的形式,对用户进行引导。如果用户同意安装应用的服务卡片,则电子设备可以根据releatedFAInfo,向服务器端查询服务卡片的下载信息,如服务卡片的包名(bundleName)、版本号(versionCode)、哈希值(fileHash)、模块名(moduleName)、尺寸(dimension)、表单名(formName)等。电子设备可以根据查询到的服务卡片的下载信息,安装服务卡片。在完成应用的安装后,电子设备可以通知应用的安装结果,并在桌面展示应用的图标,并将应用的服务卡片也一并添加至桌面。As shown in FIG. 9 , it is a schematic diagram of a process of adding a user participation service card provided by an embodiment of the present application. According to the process shown in Figure 9, the user can click to install an application in the application market on the electronic device, and the desktop launcher (Launcher) on the electronic device can send the identification (appId) of the application currently installed by the user to the server to request Application information. The server can return application information based on the application identifier, such as the application's package name (packageName), version number (versionCode), signature (sign), hash value (fileHash), associated service card information (releatedFAInfo), etc. According to the application information returned by the server, the electronic device can start downloading and installing the application in the application market. During the download and installation process, the electronic device can notify the Launcher of the download progress and occupy a place on the desktop based on the download progress. For example, you can display water ripples in specific areas of your desktop. If the currently installed application has an associated service card, the electronic device can guide the user through a pop-up box. If the user agrees to install the application's service card, the electronic device can query the server for the download information of the service card based on releasedFAInfo, such as the service card's package name (bundleName), version number (versionCode), hash value (fileHash), module Name (moduleName), size (dimension), form name (formName), etc. The electronic device can install the service card based on the queried download information of the service card. After completing the installation of the application, the electronic device can notify the installation result of the application, display the icon of the application on the desktop, and add the service card of the application to the desktop.
结合前述各个实施例,如图10所示,示出了本申请实施例提供的一种服务卡片分发方法的示意图,该方法具体可以包括如下步骤:Combined with the foregoing embodiments, as shown in Figure 10, a schematic diagram of a service card distribution method provided by an embodiment of the present application is shown. The method may specifically include the following steps:
S1001、第一电子设备显示应用市场的第一界面,第一界面中至少包括第一应用和第一应用的第一控件。S1001. The first electronic device displays a first interface of the application market, and the first interface includes at least a first application and a first control of the first application.
本申请实施例中的第一电子设备可以是前述各个实施例中的电子设备,第一电子设备显示的应用市场的第一界面可以是指如图3中的(b)中的界面31,也可以是指如图3中的(c)中的界面32,还可以是指如图3中的(d)中的界面33。即,第一电子设备显示的应用市场的第一界面可以是包含有第一应用的应用市场详情页界面,也可以是第一应用的详情页界面。其中,第一应用可以是当前待安装或更新的应用,例如,图3中的(b)、(c)或(d)中的“主题”应用302;第一应用的第一控件可以是应用安装控件或应用更新控件。例如,图3中的(b)中的控件3021,或图3中的(c)中的控件3022,或图3中的(d)中的控件3024。用户点击控件3021或控件3022,可以使得第一电子设备安装“主题”应用302,用户点击控件3024,可以使得第一电子设备对“主题”应用302进行更新。The first electronic device in the embodiment of the present application may be the electronic device in the aforementioned embodiments, and the first interface of the application market displayed by the first electronic device may refer to the interface 31 in (b) of Figure 3, or It may refer to the interface 32 in (c) of Figure 3, or it may refer to the interface 33 in (d) of Figure 3. That is, the first interface of the application market displayed by the first electronic device may be an application market details page interface including the first application, or may be a details page interface of the first application. Wherein, the first application may be an application currently to be installed or updated, for example, the "theme" application 302 in (b), (c) or (d) in Figure 3; the first control of the first application may be an application Install the control or apply the updated control. For example, the control 3021 in (b) in Figure 3, or the control 3022 in (c) in Figure 3, or the control 3024 in (d) in Figure 3. The user clicks on the control 3021 or the control 3022, which can cause the first electronic device to install the "theme" application 302. The user clicks on the control 3024, which can cause the first electronic device to update the "theme" application 302.
在一种示例中,若第一界面为应用市场的详情页界面,则在该第一界面中还包括至少一个第二应用和第二应用的第一控件。例如,图3中的(b)中所示的“QQ”、“微信”、“微博”等应用即为第二应用。第二应用的第一控件可以是指上述各个第二应用的“安装”或“更新”控件。例如,图3中的(b)或(d)中所示的“QQ”、“微信”、“微博”等应用的图标侧的“安装”控件。In one example, if the first interface is a details page interface of an application market, the first interface further includes at least one second application and a first control of the second application. For example, applications such as "QQ", "WeChat", and "Weibo" shown in (b) of Figure 3 are the second applications. The first control of the second application may refer to the "installation" or "update" control of each of the above-mentioned second applications. For example, the "Install" control on the icon side of "QQ", "WeChat", "Weibo" and other applications shown in (b) or (d) in Figure 3.
在一种可能的实现方式中,第一界面中还可以包括第一应用的服务卡片提示标识,该服务卡片提示标识可以用于提示第一应用具有可分发的服务卡片。示例性地,服务卡片提示标识可以包括第一应用的图标底部的下划线。例如,在图3中的(a)、(b)和(c)中的下划线3023即为一种服务卡片提示标识。In a possible implementation manner, the first interface may also include a service card prompt identification of the first application, and the service card prompt identification may be used to prompt the first application to have a distributable service card. For example, the service card prompt identification may include an underline at the bottom of the icon of the first application. For example, the underline 3023 in (a), (b) and (c) in Figure 3 is a service card prompt mark.
S1002、响应于针对第一控件的操作,第一电子设备在第一界面显示第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件。S1002. In response to the operation on the first control, the first electronic device displays a second control of the first application on the first interface, and the second control is a control for adding a service card of the first application.
在本申请实施例中,针对第一控件的操作可以是指用户在第一控件上的点击操作。例如,用户点击图3中的(b)中的控件3021,或图3中的(c)中的控件3022请求应用市场安装“主题”应用302;或用户点击图3中的(d)中的控件3024,请求应用市场更新“主题”应用302。In this embodiment of the present application, the operation on the first control may refer to the user's click operation on the first control. For example, the user clicks the control 3021 in (b) in Figure 3, or the control 3022 in (c) in Figure 3 requests the application market to install the "theme" application 302; or the user clicks the control 3022 in (d) in Figure 3 Control 3024, request the application market to update the "theme" application 302.
在一种示例中,在第一界面显示的第一应用的第二控件可以通过第一弹框来显示。第一弹框可以是提示用户将服务卡片添加至桌面的弹框。示例性地,第一弹框可以是图4中的(d)中的弹框42,也可以是图4中的(e)中的弹框43。第一弹框中的第二控件可以是添加第一应用的服务卡片的控件。示例性地,第二控件可以是图4中的(d)中弹框42中的控件4202,或者第二控件可以是图4中的(e)中弹框43中的控件4302。用户在弹框42中点击控件4202或在弹框43中点击控件4302,可以触发电子设备在安装应用的同时,将该应用的服务卡片添加至桌面。In one example, the second control of the first application displayed on the first interface may be displayed through the first pop-up box. The first pop-up box may be a pop-up box prompting the user to add the service card to the desktop. For example, the first pop-up frame may be the pop-up frame 42 in (d) of Figure 4 or the pop-up frame 43 in (e) of Figure 4 . The second control in the first pop-up box may be a control for adding a service card of the first application. For example, the second control may be the control 4202 in the pop-up box 42 in (d) of FIG. 4 , or the second control may be the control 4302 in the pop-up box 43 in (e) of FIG. 4 . The user clicks the control 4202 in the pop-up box 42 or clicks the control 4302 in the pop-up box 43 to trigger the electronic device to add the service card of the application to the desktop while installing the application.
在本申请实施例的一种可能的实现方式中,响应于针对第一控件的操作,第一电子设备在第一界面显示第一弹框,具体可以包括:In a possible implementation manner of the embodiment of the present application, in response to the operation of the first control, the first electronic device displays the first pop-up box on the first interface, which may specifically include:
响应于针对第一控件的操作,第一电子设备在第一界面显示第二弹框,第二弹框中包括服务卡片介绍信息和第三控件;In response to the operation on the first control, the first electronic device displays a second pop-up frame on the first interface, and the second pop-up frame includes service card introduction information and the third control;
响应于针对第三控件的操作,第一电子设备在第一界面显示第一弹框。In response to the operation on the third control, the first electronic device displays the first pop-up frame on the first interface.
一种示例中,第二弹框可以是指用于介绍服务卡片相关信息的弹框。示例性地,第二弹框可以是图4中的(b)中的弹框41,在弹框41中包括服务卡片介绍信息。通常,在用户首次在第一电子设备中使用服务卡片时,第一电子设备可以在第一界面显示第二弹框。In one example, the second pop-up box may refer to a pop-up box used to introduce information related to the service card. For example, the second pop-up frame may be the pop-up frame 41 in (b) of FIG. 4 , and the pop-up frame 41 includes service card introduction information. Usually, when the user uses the service card in the first electronic device for the first time, the first electronic device may display the second pop-up frame on the first interface.
第二弹框中的第三控件可以是用于确认使用服务卡片的控件,例如图4中的(b)中的控件4102。针对第三控件的操作可以是指用户在第三控件上的点击操作。例如用户点击图4中的(b)中的控件4102,电子设备可以在第一界面中显示第一弹框,即图4中的(d)中的弹框42,或图4中的(e)中的弹框43。The third control in the second pop-up frame may be a control used to confirm the use of the service card, such as control 4102 in (b) of Figure 4 . The operation on the third control may refer to the user's click operation on the third control. For example, the user clicks the control 4102 in (b) of Figure 4, and the electronic device can display the first pop-up box in the first interface, that is, the pop-up box 42 in (d) of Figure 4, or (e) in Figure 4 ) in the pop-up box 43.
在本申请实施例的一种可能的实现方式中,第一弹框和第二弹框中均可以包括弹框关闭提示标识,弹框关闭提示标识可以用于提示用户采用第一手势能够关闭第一弹框或第二弹框。In a possible implementation manner of the embodiment of the present application, both the first pop-up frame and the second pop-up frame may include a pop-up frame closing prompt mark, and the pop-up frame closing prompt mark may be used to prompt the user to use the first gesture to close the third pop-up frame. First pop-up or second pop-up.
在一种示例中,第一弹框中的弹框关闭提示标识可以是图4中的(c)中弹框41中的标识4101,用户在弹框41中采用第一手势可以关闭弹框41;第二弹框中的弹框关闭提示标识可以是图4中的(f)中弹框42中的标识4201,用户在弹框42中采用第一手势可以关闭弹框42;或者,第二弹框中的弹框关闭提示标识也可以是图4中的(g)中弹框43中的标识4301,用户在弹框43中采用第一手势可以关闭弹框43。In one example, the pop-up box closing prompt mark in the first pop-up frame may be the mark 4101 in the pop-up frame 41 in (c) of Figure 4. The user can close the pop-up frame 41 by using the first gesture in the pop-up frame 41. ; The pop-up box closing prompt mark in the second pop-up frame may be the mark 4201 in the pop-up frame 42 in (f) in Figure 4 , and the user can close the pop-up frame 42 by using the first gesture in the pop-up frame 42; or, the second The pop-up box closing prompt mark in the pop-up frame may also be the mark 4301 in the pop-up frame 43 in (g) of Figure 4. The user can close the pop-up frame 43 by using the first gesture in the pop-up frame 43.
在一种可能的实现方式中,第一手势可以是在第一弹框或第二弹框中向下滑动的手势。示例性地,用户在图4中的(c)中弹框41中向下滑动手指可以关闭弹框41;在图4中的(f)中弹框42中向下滑动手指可以关闭弹框42;在图4中的(g)中弹框43中向下滑动手指可以关闭弹框43。In a possible implementation, the first gesture may be a gesture of sliding down in the first pop-up frame or the second pop-up frame. For example, the user can close the pop-up frame 41 by sliding his finger downward on the pop-up frame 41 in (c) of Figure 4; and he can close the pop-up frame 42 by sliding his finger downward on the pop-up frame 42 in (f) of Figure 4. ; In (g) of Figure 4, slide your finger downward in the pop-up frame 43 to close the pop-up frame 43.
S1003、响应于针对第二控件的操作,第一电子设备将服务卡片添加至桌面。S1003. In response to the operation on the second control, the first electronic device adds the service card to the desktop.
在一种示例中,针对第二控件的操作可以是指用户在第二控件上的点击操作。示例性地,针对第二控件的操作可以是用户点击图4中的(d)中“添加到桌面”的控件4202,或者,用户点击图4中的(e)中“添加到桌面”的控件4302。用户点击控件4202或控件4302可以表示用户同意第一电子设备将应用的服务卡片添加至桌面。In one example, the operation on the second control may refer to the user's click operation on the second control. For example, the operation for the second control may be that the user clicks the "Add to Desktop" control 4202 in (d) of Figure 4, or the user clicks the "Add to Desktop" control in (e) of Figure 4 4302. The user clicks on the control 4202 or the control 4302 to indicate that the user agrees to the first electronic device adding the application's service card to the desktop.
在本申请实施例中,响应于针对第二控件的操作,第一电子设备将服务卡片添加至桌面,包括:In this embodiment of the present application, in response to the operation on the second control, the first electronic device adds a service card to the desktop, including:
响应于针对第二控件的操作,第一电子设备下载安装包,其中,安装包可以包括第一应用的安装包和服务卡片的安装包。In response to the operation on the second control, the first electronic device downloads an installation package, where the installation package may include an installation package of the first application and an installation package of the service card.
第一电子设备采用安装包安装第一应用和服务卡片。The first electronic device uses the installation package to install the first application and service card.
第一电子设备将第一应用和服务卡片添加至桌面。The first electronic device adds the first application and service card to the desktop.
在一种示例中,应用的安装包和服务卡片的安装包可以集成在同一安装包内,第一电子设备在从服务器下载第一应用的安装包时,可以同时下载得到第一应用的安装包和服务卡片的安装包。In one example, the installation package of the application and the installation package of the service card can be integrated into the same installation package. When the first electronic device downloads the installation package of the first application from the server, it can download the installation package of the first application at the same time. and service card installation package.
在另一种示例中,应用的安装包和服务卡片的安装包也可以分别打包,并预先建立起二者之间的关联关系。第一电子设备需要分别从服务器下载应用的安装包和服务卡片的安装包,然后进行安装。In another example, the installation package of the application and the installation package of the service card can also be packaged separately, and an association relationship between the two can be established in advance. The first electronic device needs to download the installation package of the application and the installation package of the service card from the server respectively, and then install them.
在本申请实施例的一种可能的实现方式中,第一电子设备在将服务卡片添加至桌面之前,还可以在桌面预留显示第一应用的图标的第一区域以及显示服务卡片的第二区域。其中,第一区域和第二区域可以用于第一电子设备在安装应用和服务卡片时,提前在桌面为应用的服务卡片占位。In a possible implementation manner of the embodiment of the present application, before adding the service card to the desktop, the first electronic device can also reserve a first area on the desktop for displaying the icon of the first application and a second area for displaying the service card. area. The first area and the second area can be used by the first electronic device to occupy space for the service card of the application on the desktop in advance when installing the application and the service card.
在一种示例中,第一应用的第一区域可以是指图4中的(k)中的占位区域401,服务卡片的第二区域可以是指图4中的(k)中的占位区域402。In an example, the first area of the first application may refer to the placeholder area 401 in (k) of Figure 4 , and the second area of the service card may refer to the placeholder area of (k) in Figure 4 Area 402.
因此,第一电子设备将第一应用和服务卡片添加至桌面,可以包括:第一电子设备将安装后的第一应用的图标添加至桌面的第一区域,以及将安装后的服务卡片添加至桌面的第二区域。Therefore, the first electronic device adds the first application and service card to the desktop, which may include: the first electronic device adds the icon of the installed first application to the first area of the desktop, and adds the installed service card to the first area of the desktop. The second area of the desktop.
示例性地,第一电子设备将第一应用的图标添加至第一区域可以是指第一电子设备将“主题”应用302的图标添加至图4中的(k)中的占位区域401处;第一电子设备将服务卡片添加至第二区域可以是指第一电子设备将“主题”应用302的服务卡片添加至图4中的(k)中的占位区域402处。完成添加后的第一电子设备的桌面可以如图4中的(l)所示。For example, the first electronic device adding the icon of the first application to the first area may mean that the first electronic device adds the icon of the "theme" application 302 to the placeholder area 401 in (k) of Figure 4 ; The first electronic device adding the service card to the second area may mean that the first electronic device adds the service card of the "theme" application 302 to the placeholder area 402 in (k) of FIG. 4 . The desktop of the first electronic device after the addition is completed may be as shown in (l) in Figure 4 .
结合前述各个实施例,如图11所示,示出了本申请实施例提供的另一种服务卡片分发方法的示意图,该方法具体可以包括如下步骤:Combined with the foregoing embodiments, as shown in Figure 11, a schematic diagram of another service card distribution method provided by an embodiment of the present application is shown. The method may specifically include the following steps:
S1101、第一电子设备显示第一通知,第一通知中包括服务卡片的添加提示信息。S1101. The first electronic device displays a first notification, and the first notification includes prompt information for adding a service card.
在本申请实施例中,第一通知可以是在第一电子设备的任意界面显示的通知。示例性地,第一电子设备可以在桌面显示第一通知,第二电子设备也可以在某一应用的详情页界面显示第一通知。第一通知中可以是提示用户某一应用完成了版本更新的通知,才外,第一通知还可以包括服务卡片的添加提示信息,用于提示用户当前完成版本更新的应用具有可添加的服务卡片。In this embodiment of the present application, the first notification may be a notification displayed on any interface of the first electronic device. For example, the first electronic device can display the first notification on the desktop, and the second electronic device can also display the first notification on the details page interface of a certain application. The first notification may be a notification prompting the user that a certain application has completed a version update. In addition, the first notification may also include prompt information for adding a service card, which is used to prompt the user that the application currently completing the version update has a service card that can be added. .
在一种示例中,第一电子设备显示的第一通知可以是如图5中的(a)中的通知501,通知501可以通过banner的形式显示。In an example, the first notification displayed by the first electronic device may be the notification 501 in (a) of Figure 5 , and the notification 501 may be displayed in the form of a banner.
S1102、响应于针对第一通知的操作,第一电子设备跳转至应用市场。S1102. In response to the operation for the first notification, the first electronic device jumps to the application market.
针对第一通知的操作可以是指查看第一通知的操作或者在第一通知所在区域的点击操作。示例性地,用户可以点击图5中的(a)中的通知501。The operation for the first notification may refer to the operation of viewing the first notification or the click operation in the area where the first notification is located. For example, the user may click notification 501 in (a) of FIG. 5 .
通常,应用的安装可以通过应用市场来实现。因此,在用户可以点击图5中的(a)中的通知501后,第一电子设备可以跳转至应用市场。Usually, application installation can be achieved through the application market. Therefore, after the user can click the notification 501 in (a) of Figure 5, the first electronic device can jump to the application market.
S1103、第一电子设备显示第一应用在应用市场中的详情页界面。S1103. The first electronic device displays the details page interface of the first application in the application market.
在一种示例中,第一电子设备跳转至应用市场后,可以进入第一应用在应用市场中的详情页界面。示例性地,第一应用在应用市场中的详情页界面可以如图5中的(b)中“主题”应用302在应用市场中的详情页界面,即界面32。In one example, after jumping to the application market, the first electronic device can enter the details page interface of the first application in the application market. For example, the details page interface of the first application in the application market may be the details page interface of the "theme" application 302 in the application market in (b) of Figure 5 , that is, interface 32.
S1104、第一电子设备在详情页界面显示第一弹框,第一弹框中包括第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件。S1104. The first electronic device displays a first pop-up box on the details page interface. The first pop-up box includes a second control of the first application, and the second control is a control for adding a service card of the first application.
S1105、响应于针对第二控件的操作,第一电子设备将服务卡片添加至桌面。S1105. In response to the operation on the second control, the first electronic device adds the service card to the desktop.
第一电子设备在详情页界面显示的第一弹框可以是如图5中的(d)中的弹框52,或如图5中的(e)中的弹框53。The first pop-up frame displayed by the first electronic device on the details page interface may be the pop-up frame 52 in (d) of Figure 5, or the pop-up frame 53 in (e) of Figure 5.
用户在弹框52或弹框53中操作,将应用及其服务卡片添加至桌面的过程可以参见前述各个实施例的介绍,在此不再赘述。The user operates in the pop-up box 52 or the pop-up box 53. The process of adding the application and its service card to the desktop can be referred to the introduction of each of the foregoing embodiments, and will not be described again here.
在本申请实施例中,图10和图11介绍的服务卡片添加过程属于电子设备在安装或更新应用时,通过对用户进行提示的方式来实现的服务卡片的添加。此外,第一电子设备还可以根据用户的设置,自动地添加应用的服务卡片。In the embodiment of the present application, the service card adding process described in Figures 10 and 11 belongs to the adding of service cards that is implemented by prompting the user when the electronic device installs or updates applications. In addition, the first electronic device can also automatically add the service card of the application according to the user's settings.
结合图10和图11,本申请实施例提供的服务卡片的添加方法还可以包括:In conjunction with Figure 10 and Figure 11, the method of adding a service card provided by the embodiment of the present application may also include:
第一电子设备显示设置界面,设置界面中包括服务卡片添加设置项。The first electronic device displays a setting interface, and the setting interface includes service card adding setting items.
响应于针对服务卡片添加设置项的操作,第一电子设备显示服务卡片设置详情页界面,服务卡片设置详情页界面中包括服务卡片添加设置项和服务卡片关闭设置项。In response to the operation of adding a setting item for the service card, the first electronic device displays a service card setting details page interface, which includes a service card adding setting item and a service card closing setting item.
在一种示例中,第一电子设备显示的设置界面可以如图6中的(c)所示。图6中的(c)中的“添加服务卡片”设置项611即为设置界面中的服务卡片添加设置项。In an example, the setting interface displayed by the first electronic device may be as shown in (c) of FIG. 6 . The "Add Service Card" setting item 611 in (c) of Figure 6 is the service card adding setting item in the setting interface.
响应于针对服务卡片添加设置项的操作,第一电子设备可以显示该设置项的详情页界面。例如,该设置项的详情页界面可以是图6中的(d)所示的界面62。在界面62中包括服务卡片添加设置项和服务卡片关闭设置项。其中,服务卡片添加设置项可以包括第一服务卡片添加设置项和第二服务卡片添加设置项。示例性地,第一服务卡片添加设置项可以是图6中的(d)中所示的“智能添加”设置项621,第二服务卡片添加设置项可以是图6中的(d)中所示的“提示添加”设置项622。服务卡片关闭设置项可以是图6中的(d)中所示的“关闭”设置项623。In response to the operation of adding a setting item to the service card, the first electronic device may display a details page interface of the setting item. For example, the details page interface of the setting item may be the interface 62 shown in (d) in FIG. 6 . The interface 62 includes a service card adding setting item and a service card closing setting item. The service card adding setting items may include a first service card adding setting item and a second service card adding setting item. For example, the first service card adding setting item may be the "smart adding" setting item 621 shown in (d) of Figure 6 , and the second service card adding setting item may be the setting item 621 shown in (d) of Figure 6 The "prompt to add" setting item 622 is displayed. The service card close setting item may be the "close" setting item 623 shown in (d) of FIG. 6 .
若第一服务卡片添加设置项被设置,例如,如图6中的(e)所示,“智能添加”设置项621被设置,则第一电子设备在安装或更新第一应用后,可以自动将第一应用的服务卡片添加至桌面。If the first service card addition setting item is set, for example, as shown in (e) of Figure 6, the "smart addition" setting item 621 is set, then the first electronic device can automatically add the first service card after installing or updating the first application. Add the service card of the first application to the desktop.
在第一电子设备自动将第一应用的服务卡片添加至桌面的过程中,第一电子设备还可以在安装或更新第一应用的界面中显示非模态弹窗。示例性地,非模态弹窗可以是图6中的(f)中的弹窗602或者图6中的(g)中的弹窗603,上述非模态弹窗可以用于提示第一应用的服务卡片将被自动添加至桌面。In the process of the first electronic device automatically adding the service card of the first application to the desktop, the first electronic device may also display a non-modal pop-up window in the interface for installing or updating the first application. For example, the non-modal pop-up window may be the pop-up window 602 in (f) of Figure 6 or the pop-up window 603 in (g) of Figure 6 , and the above-mentioned non-modal pop-up window may be used to prompt the first application The service card will be automatically added to the desktop.
在另一种示例中,若第二服务卡片添加设置项被设置,例如,如图6中的(h)所示,“提示添加”设置项622被设置,则第一电子设备在安装或更新第一应用后,可以显示将第一应用的服务卡片添加至桌面的提示信息。用户可以基于上述提示信息将服务卡片添加至桌面。提示添加的具体过程可以参见前述各个实施例的介绍。In another example, if the second service card addition setting item is set, for example, as shown in (h) in FIG. 6 , the "prompt to add" setting item 622 is set, then the first electronic device is installing or updating. After the first application, a prompt message for adding the service card of the first application to the desktop may be displayed. Users can add service cards to the desktop based on the above prompt information. For the specific process of adding prompts, please refer to the introduction of each of the foregoing embodiments.
在本申请实施例的一种可能的实现方式中,第一电子设备在将第一应用的服务卡片添加至桌面后,第一电子设备还可以将第一应用的服务卡片分发至第二电子设备。In a possible implementation manner of the embodiment of the present application, after the first electronic device adds the service card of the first application to the desktop, the first electronic device can also distribute the service card of the first application to the second electronic device. .
在一种示例中,第二电子设备的数量可以包括多个,多个第二电子设备可以包括多种类型的电子设备。由于第二电子设备的类型可能不同,第一应用的服务卡片可能并不能适配所有的第二电子设备。因此,在一种可能的实现方式中,第一电子设备将第一应用的服务卡片分发至第二电子设备时,可以首先确定关联的至少一个第二电子设备;然后,第一电子设备可以确定第一应用的服务卡片是否与至少一个第二电子设备适配;第一电子设备可以将第一应用的服务卡片分发至适配的至少一个第二电子设备。In one example, the number of second electronic devices may include multiple second electronic devices, and the multiple second electronic devices may include multiple types of electronic devices. Since the types of the second electronic devices may be different, the service card of the first application may not be suitable for all second electronic devices. Therefore, in a possible implementation, when the first electronic device distributes the service card of the first application to the second electronic device, it may first determine at least one associated second electronic device; then, the first electronic device may determine Whether the service card of the first application is adapted to at least one second electronic device; the first electronic device may distribute the service card of the first application to the adapted at least one second electronic device.
如图12所示,示出了本申请实施例提供的一种服务卡片分发系统的示意图,在图12所示的系统中,至少包括相互通信的第一电子设备1201和第二电子设备1202。其中,第二电子设备1202的数量可以包括多个,例如图12中的第二电子设备可以包括电子设备1、电子设备2、电子设备3,……电子设备N等。As shown in Figure 12, a schematic diagram of a service card distribution system provided by an embodiment of the present application is shown. The system shown in Figure 12 includes at least a first electronic device 1201 and a second electronic device 1202 that communicate with each other. The number of second electronic devices 1202 may include multiple. For example, the second electronic devices in FIG. 12 may include electronic device 1, electronic device 2, electronic device 3,... electronic device N, etc.
在一种示例中,第一电子设备1201可以用于:In an example, the first electronic device 1201 may be used for:
显示应用市场的第一界面,第一界面中至少包括第一应用和第一应用的第一控件;Display the first interface of the application market, the first interface including at least a first application and a first control of the first application;
响应于针对第一控件的操作,在第一界面显示第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件;In response to the operation on the first control, display a second control of the first application on the first interface, and the second control is a control for adding a service card of the first application;
响应于针对第二控件的操作,将服务卡片添加至桌面,并将服务卡片分发至第二电子设备1202;In response to the operation on the second control, adding the service card to the desktop and distributing the service card to the second electronic device 1202;
第二电子设备1202可以用于:接收第一电子设备1201分发的服务卡片,并将服务卡片添加至桌面。The second electronic device 1202 may be used to receive the service card distributed by the first electronic device 1201 and add the service card to the desktop.
在图12所示的系统中,第一电子设备1201和第二电子设备1202所能实现的上述功能可以参见前述各个方法实施例的介绍,在此不再赘述。In the system shown in FIG. 12 , the above functions that can be realized by the first electronic device 1201 and the second electronic device 1202 can be referred to the introduction of each method embodiment, and will not be described again here.
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应每一个功能划分每一个功能模块,也可以将一个或多个的功能集成在一个功能模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。应理解,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can divide the electronic device into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or one or more functions can be integrated into one functional module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be understood that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
对应于上述各个实施例,参照图13,示出了本申请实施例提供的一种服务卡片分发装置的结构框图,该装置可以应用于前述各个实施例中的第一电子设备,该装置具体可以包括如下模块:第一界面显示模块1301、第二控件显示模块1302和服务卡片添加模块1303,其中:Corresponding to the above embodiments, with reference to Figure 13, there is shown a structural block diagram of a service card distribution device provided by an embodiment of the present application. This device can be applied to the first electronic device in each of the foregoing embodiments. Specifically, the device can It includes the following modules: first interface display module 1301, second control display module 1302 and service card adding module 1303, wherein:
第一界面显示模块1301,用于显示应用市场的第一界面,第一界面中至少可以包括第一应用和所述第一应用的第一控件;The first interface display module 1301 is used to display the first interface of the application market. The first interface may include at least a first application and a first control of the first application;
第二控件显示模块1302,用于响应于针对第一控件的操作,在第一界面显示第一应用的第二控件,第二控件为添加第一应用的服务卡片的控件;The second control display module 1302 is configured to display a second control of the first application on the first interface in response to an operation on the first control, where the second control is a control for adding a service card of the first application;
服务卡片添加模块1303,用于响应于针对第二控件的操作,将服务卡片添加至桌面。The service card adding module 1303 is configured to add a service card to the desktop in response to an operation on the second control.
在本申请实施例中,第一控件可以为应用安装控件或应用更新控件。In this embodiment of the present application, the first control may be an application installation control or an application update control.
在一种示例中,第一界面可以为应用市场的详情页界面。因此,在应用市场的详情页界面中,还可以包括有其他应用。例如,应用市场的详情页界面中可以包括至少一个第二应用,第二应用可以是与第一应用不同的应用。用户可以在应用市场的详情页界面,对第二应用执行安装或更新等操作。In an example, the first interface may be a details page interface of the application market. Therefore, other applications can also be included in the details page interface of the application market. For example, the details page interface of the application market may include at least one second application, and the second application may be an application different from the first application. Users can install or update the second application on the details page of the application market.
在另一种示例中,第一界面也可以为应用市场中第一应用的详情页界面。In another example, the first interface may also be the details page interface of the first application in the application market.
在本申请实施例中,第一界面中还可以包括第一应用的服务卡片提示标识,服务卡片提示标识可以用于提示第一应用具有可分发的服务卡片。示例性地,服务卡片提示标识可以为第一应用的图标底部的下划线。In this embodiment of the present application, the first interface may also include a service card prompt identification of the first application, and the service card prompt identification may be used to prompt the first application to have a distributable service card. For example, the service card prompt identification may be an underline at the bottom of the icon of the first application.
在本申请实施例的一种可能的实现方式中,第二控件显示模块1302具体可以用于:响应于针对第一控件的操作,在第一界面显示第一弹框,第一弹框中包括第一应用的第二控件。In a possible implementation of the embodiment of the present application, the second control display module 1302 may be configured to: in response to an operation on the first control, display a first pop-up frame on the first interface, and the first pop-up frame includes A second control for the first application.
在一种示例中,第二控件显示模块1302还可以用于:响应于针对第一控件的操作,在第一界面显示第二弹框,第二弹框中包括服务卡片介绍信息和第三控件;响应于针对第三控件的操作,在第一界面显示第一弹框。In one example, the second control display module 1302 may also be configured to: in response to an operation on the first control, display a second pop-up frame on the first interface, the second pop-up frame including service card introduction information and the third control ; In response to the operation on the third control, display the first pop-up box on the first interface.
在本申请实施例的一种可能的实现方式中,第一弹框和第二弹框中均可以包括弹框关闭提示标识,弹框关闭提示标识可以用于提示采用第一手势关闭第一弹框或第二弹框。在一种示例中,第一手势可以为第一弹框或第二弹框中向下滑动的手势。In a possible implementation manner of the embodiment of the present application, both the first pop-up frame and the second pop-up frame may include a pop-up frame closing prompt mark, and the pop-up frame closing prompt mark may be used to prompt the first gesture to be used to close the first pop-up frame. frame or the second pop-up frame. In an example, the first gesture may be a downward sliding gesture in the first pop-up frame or the second pop-up frame.
在本申请实施例的一种可能的实现方式中,上述装置还可以包括桌面显示模块,该桌面显示模块可以用于:在桌面预留显示第一应用的图标的第一区域以及显示服务卡片的第二区域。In a possible implementation manner of the embodiment of the present application, the above device may further include a desktop display module, which may be used to: reserve a first area on the desktop for displaying the icon of the first application and a first area for displaying the service card. Second area.
在本申请实施例的一种可能的实现方式中,服务卡片添加模块1303具体可以用于:响应于针对第二控件的操作,下载安装包,该安装包包括第一应用的安装包和服务卡片的安装包;采用第一应用的安装包安装第一应用以及采用服务卡片的安装包安装服务卡片;将安装后的第一应用的图标添加至桌面的第一区域,以及将安装后的服务卡片添加至桌面的第二区域。In a possible implementation of the embodiment of this application, the service card adding module 1303 can be specifically configured to: in response to an operation on the second control, download an installation package, where the installation package includes the installation package of the first application and the service card. installation package; install the first application using the installation package of the first application and install the service card using the installation package of the service card; add the icon of the installed first application to the first area of the desktop, and add the installed service card Added to the second area of the desktop.
在本申请实施例的一种可能的实现方式中,上述服务卡片分发装置还可以包括如下模块:第一通知显示模块、应用市场跳转模块、详情页界面显示模块和第一弹框显示模块,其中:In a possible implementation manner of the embodiment of the present application, the above-mentioned service card distribution device may also include the following modules: a first notification display module, an application market jump module, a details page interface display module and a first pop-up display module, in:
第一通知显示模块,用于显示第一通知,第一通知中包括服务卡片的添加提示信息;The first notification display module is used to display the first notification, and the first notification includes the prompt information for adding the service card;
应用市场跳转模块,用于响应于针对第一通知的操作,跳转至应用市场;The application market jump module is used to jump to the application market in response to the operation for the first notification;
详情页界面显示模块,用于显示第一应用在应用市场中的详情页界面;The details page interface display module is used to display the details page interface of the first application in the application market;
第一弹框显示模块,用于在详情页界面显示第一弹框,第一弹框中包括第一应用的第二控件。The first pop-up frame display module is used to display the first pop-up frame on the details page interface, and the first pop-up frame includes the second control of the first application.
在本申请实施例的一种可能的实现方式中,服务卡片分发装置还可以包括如下模块:设置界面显示模块和设置详情页界面显示模块,其中:In a possible implementation of the embodiment of this application, the service card distribution device may also include the following modules: a setting interface display module and a setting details page interface display module, where:
设置界面显示模块,用于显示设置界面,设置界面中包括服务卡片添加设置项;The setting interface display module is used to display the setting interface, which includes service cards to add setting items;
设置详情页界面显示模块,用于响应于针对服务卡片添加设置项的操作,显示服务卡片设置详情页界面,其中,服务卡片设置详情页界面中包括服务卡片添加设置项和服务卡片关闭设置项。The setting details page interface display module is configured to display the service card setting details page interface in response to the operation of adding a setting item for the service card, wherein the service card setting details page interface includes a service card adding setting item and a service card closing setting item.
在一种示例中,服务卡片添加设置项可以包括第一服务卡片添加设置项,服务卡片分发装置还可以包括自动添加模块,自动添加模块可以用于:若第一服务卡片添加设置项被设置,则在安装或更新第一应用后,自动将第一应用的服务卡片添加至桌面。In one example, the service card adding setting item may include the first service card adding setting item, and the service card distributing device may further include an automatic adding module. The automatic adding module may be used to: if the first service card adding setting item is set, After the first application is installed or updated, the service card of the first application is automatically added to the desktop.
在一种可能的实现方式中,自动添加模块还可以用于:在安装或更新第一应用的界面中显示非模态弹窗,非模态弹窗可以用于提示第一应用的服务卡片已被添加至桌面。In a possible implementation, the automatic addition module can also be used to: display a non-modal pop-up window in the interface for installing or updating the first application, and the non-modal pop-up window can be used to prompt that the service card of the first application has been is added to the desktop.
在一种示例中,服务卡片添加设置项可以包括第二服务卡片添加设置项,服务卡片分发装置还可以包括提示信息显示模块,提示信息显示模块可以用于:若第二服务卡片添加设置项被设置,则在安装或更新第一应用后,显示将第一应用的服务卡片添加至桌面的提示信息。In one example, the service card adding setting item may include a second service card adding setting item, and the service card distributing device may further include a prompt information display module. The prompt information display module may be used to: if the second service card adding setting item is If set, after the first application is installed or updated, a prompt message for adding the service card of the first application to the desktop is displayed.
在本申请实施例的一种可能的实现方式中,服务卡片分发装置还可以包括分发模块,分发模块可以用于:将第一应用的服务卡片分发至第二电子设备。In a possible implementation manner of the embodiment of the present application, the service card distribution device may further include a distribution module, and the distribution module may be used to distribute the service card of the first application to the second electronic device.
在一种示例中,分发模块具体可以用于:确定关联的至少一个第二电子设备;确定第一应用的服务卡片是否与至少一个第二电子设备适配;将第一应用的服务卡片分发至适配的至少一个第二电子设备。In one example, the distribution module may be specifically configured to: determine at least one associated second electronic device; determine whether the service card of the first application is adapted to the at least one second electronic device; distribute the service card of the first application to adapted to at least one second electronic device.
应理解,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be understood that all relevant content of each step involved in the above method embodiments can be quoted from the functional description of the corresponding functional module, and will not be described again here.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。Finally, it should be noted that the above are only specific implementation modes of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by this application. within the scope of protection applied for.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211035827.7ACN117666861A (en) | 2022-08-26 | 2022-08-26 | Service card distribution method, system and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211035827.7ACN117666861A (en) | 2022-08-26 | 2022-08-26 | Service card distribution method, system and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN117666861Atrue CN117666861A (en) | 2024-03-08 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211035827.7APendingCN117666861A (en) | 2022-08-26 | 2022-08-26 | Service card distribution method, system and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN117666861A (en) |
| Publication | Publication Date | Title |
|---|---|---|
| RU2766255C1 (en) | Voice control method and electronic device | |
| CN109814766B (en) | Application display method and electronic device | |
| CN115866121B (en) | Application interface interaction method, electronic device and computer readable storage medium | |
| CN112130742B (en) | Full screen display method and device of mobile terminal | |
| CN109559270B (en) | Image processing method and electronic equipment | |
| US20240232511A1 (en) | Adaptive Card Generation Method, Terminal Device, and Server | |
| WO2021103981A1 (en) | Split-screen display processing method and apparatus, and electronic device | |
| CN110825469A (en) | Voice assistant display method and device | |
| CN112445448B (en) | A flexible screen display method and electronic device | |
| CN116360725B (en) | Display interaction system, display method and device | |
| CN110430324A (en) | Display method of application screen opening information and electronic equipment | |
| CN113778574B (en) | Card sharing method, electronic device and communication system | |
| CN113553130A (en) | Method for executing drawing operation by application and electronic equipment | |
| WO2021036770A1 (en) | Split-screen processing method and terminal device | |
| WO2020155875A1 (en) | Display method for electronic device, graphic user interface and electronic device | |
| CN117873357A (en) | Application window management method, terminal device and computer readable storage medium | |
| US12282761B2 (en) | Application module startup method and electronic device | |
| WO2021073337A1 (en) | Method and apparatus for installing plug-in, and storage medium | |
| CN114444000A (en) | Method, apparatus, electronic device and readable storage medium for generating page layout file | |
| CN113438366A (en) | Information notification interaction method, electronic device and storage medium | |
| CN114173184B (en) | Screen projection method and electronic equipment | |
| CN118689425A (en) | Image synthesis method, device and electronic device | |
| CN114691248B (en) | Method, device, equipment and readable storage medium for displaying virtual reality interface | |
| CN114168115B (en) | Communication system, application downloading method and device | |
| CN117008787A (en) | Interface display method and electronic equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |