The present invention relates to the field of communications technologies, and in particular, to an application sharing method and apparatus.
With the development of smartphones, applications on a terminal are increasing. Generally, when needing an application, a user downloads the application from an application store. After the application is installed on a terminal, the user may further share, by using the terminal, an application that rates high with another terminal for use (that is, share a link address URL of the application with the another terminal). The user shares an application with another terminal in the following manner, which is specifically:
Some applications have a sharing function, and a terminal can share a link address URL of a to-be-shared application with another terminal by using a built-in sharing function of the application. Specifically, if the user considers an application good, the user may select a “share” label in a “setting” option of the application. Such a built-in “sharing” function of an application supports sharing by the user a link address URL (Uniform/Universal Resource Locator, uniform resource locator) of the application with a friend in multiple manners, which, for example, may include: the user is allowed to send the link address URL of the application to the friend by using a short message service, email, Bluetooth, instant messaging, or the like.
However, not all applications have a sharing function; therefore, the manner of sharing an application by using a sharing function of the application lacks universality, and the user cannot share an application without a sharing function with a friend.
Embodiments of the present invention provide an application sharing method and apparatus, which can implement sharing of any application.
To achieve the foregoing objective, the embodiments of the present invention use the following technical solutions:
According to a first aspect, an application sharing method is provided, where the method includes:
obtaining a distance between an icon of a first application and an icon of a second application, where the first application is a to-be-shared application, and the second application is used to share the first application;
determining whether the distance is less than a preset distance;
if the distance is less than the preset distance, obtaining application information of the first application in an application store on the Internet, and obtaining information about a to-share-with user, where the application information includes a link address of the first application in the application store; and
sending the link address to the to-share-with user by using the second application.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the icon of the second application is displayed on a display unit after the icon of the first application is selected.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the second application is a communications application, a social application, or the application store.
With reference to the first aspect or the first possible implementation manner or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, if the second application is a communications application, the obtaining information about a to-share-with user includes:
obtaining the information about the to-share-with user by using the second application; or
if the second application is a social application, the obtaining information about a to-share-with user includes:
obtaining the information about the to-share-with user by using the second application, where the information about the to-share-with user is stored in a file related to the second application.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the application information further includes evaluation information on the first application; and
after the determining whether the distance is less than a preset distance, the method further includes:
if the distance is less than the preset distance, sending the evaluation information to the application store by using the second application.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the obtaining application information of the first application in an application store on the Internet includes:
obtaining the link address of the first application from an installation package of the first application according to an identifier of the first application; or
obtaining the link address of the first application from a stored table of correspondences between identifiers and link addresses of installed applications according to an identifier of the first application; or
obtaining the link address of the first application from the application store on the Internet according to an identifier of the first application, where the application store on the Internet stores a table of correspondences between identifiers and link addresses of applications.
According to a second aspect, an application sharing apparatus is provided, where the apparatus includes:
a first obtaining unit, configured to obtain a distance between an icon of a first application and an icon of a second application, where the first application is a to-be-shared application, and the second application is used to share the first application;
a determining unit, configured to determine whether the distance is less than a preset distance;
a second obtaining unit, configured to: if the distance is less than the preset distance, obtain application information of the first application in an application store on the Internet, and obtain information about a to-share-with user, where the application information includes a link address of the first application in the application store; and
a first sending unit, configured to send the link address to the to-share-with user by using the second application.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the apparatus further includes a display unit, and the icon of the second application is displayed on the display unit after the icon of the first application is selected.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the second application is a communications application, a social application, or the application store.
With reference to the second aspect or the first possible implementation manner or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the second obtaining unit is specifically configured to: if the second application is a communications application, obtain the information about the to-share-with user by using the second application; or
the second obtaining unit is further configured to: if the second application is a social application, obtain the information about the to-share-with user by using the second application, where the information about the to-share-with user is stored in a file related to the second application.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the application information obtained by the second obtaining unit further includes evaluation information on the first application; and
the apparatus further includes:
a second sending unit, configured to: after the determining unit determines whether the distance is less than the preset distance, if the distance is less than the preset distance, send the evaluation information to the application store.
With reference to the second aspect, in a fifth possible implementation manner of the second aspect, the second obtaining unit is specifically configured to obtain the link address of the first application from an installation package of the first application according to an identifier of the first application; or
obtain the link address of the first application from a stored table of correspondences between identifiers and link addresses of installed applications according to an identifier of the first application; or
obtain the link address of the first application from the application store on the Internet according to an identifier of the first application, where the application store on the Internet stores a table of correspondences between identifiers and link addresses of applications.
According to the application sharing method and apparatus provided by the embodiments of the present invention, after the foregoing solutions are used, an icon of a second application that can be used to share a first application is displayed on a display unit, and a user can move a position of an icon of the first application on the display unit, and implements and triggers sharing of the first application according to a distance between the icon of the first application and the icon of the second application, that is, triggers sharing of the first application by using the second application. In this way, any application can be shared.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
The following clearly and describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
To resolve the problem put forward in the background, an embodiment provides an application sharing method. The method can be applied to, but not limited to, an electronic device. The electronic device may include a display unit. The display unit can be used to, but not limited to, display an icon of a first application. The first application is a to-be-shared application. As shown in
101. Obtain a distance between the icon of the first application and an icon of a second application.
The first application is a to-be-shared application, and the second application is used to share the first application.
As an implementation manner of this embodiment, when a user needs to share the first application by using the second application, the user may drag the icon of the first application to the icon of the second application, and when the distance between the icon of the first application and the icon of the second application is less than a preset distance, the user may share the first application by using the second application.
102. Determine whether the distance is less than a preset distance, and if the distance is less than the preset distance, perform step 103; if the distance is not less than the preset distance, perform step 101.
The preset distance is not limited in this embodiment, and may be set according to actual requirements. For example, the preset distance may be, but is not limited to, 0.5 centimeter. Details are not described herein again.
103. If the distance is less than the preset distance, obtain application information of the first application in an application store on the Internet, and obtain information about a to-share-with user.
The application information may include, but is not limited to, a link address of the first application in the application store.
As an implementation manner of this embodiment, if the distance between the icon of the first application and the icon of the second application is less than the preset distance, an operation of sharing the first application is triggered, that is, the link address of the first application may be sent to the to-share-with user.
104. Send the link address to the to-share-with user by using the second application.
After the foregoing solution is used, an icon of a second application that can be used to share a first application is displayed on a display unit, and a user can move a position of an icon of the first application on the display unit, and implements and triggers sharing of the first application according to a distance between the icon of the first application and the icon of the second application, that is, triggers sharing of the first application by using the second application. In this way, any application can be shared.
An embodiment provides another application sharing method. This method is a further extension of the method shown in
201. Obtain a distance between an icon of a first application and an icon of a second application.
The first application is a to-be-shared application, and the second application is used to share the first application.
As an implementation manner of this embodiment, when a user needs to share the first application by using the second application, the user may drag the icon of the first application to the icon of the second application, and when the distance between the icon of the first application and the icon of the second application is less than a preset distance, the user may share the first application by using the second application.
As an implementation manner of this embodiment, an electronic device may periodically obtain a position coordinate of the icon of the first application and that of the icon of the second application, which are displayed on a display unit, and calculates the distance between the two icons by using the position coordinates.
A method for obtaining the distance between the icon of the first application and the icon of the second application is not limited in this embodiment, and is a technology well known by a person skilled in the art and may be set according to actual requirements, and details are not described herein again.
Further, the icon of the second application may be displayed on the display unit all the time.
Further, the icon of the second application may also be displayed on the display unit after the icon of the first application is selected.
As an implementation manner of this embodiment, after the icon of the first application is selected, a fuzzy layer is added to all areas displayed on the display unit except the icon of the first application, and the corresponding icon of the second application is displayed at the fuzzy layer.
A method and a position for displaying the icon of the second application are not limited in this embodiment, and may be set according to actual requirements, and details are not described herein again.
Further, the second application may be, but is not limited to, a communications application, a social application, or an application store.
202. Determine whether the distance is less than a preset distance, and if the distance is less than the preset distance, perform step 203; if the distance is not less than the preset distance, perform step 201.
203. Obtain application information of the first application in an application store on the Internet, and obtain information about a to-share-with user.
As an implementation manner of this embodiment, if the distance between the icon of the first application and the icon of the second application is less than the preset distance, an operation of sharing the first application is triggered, that is, a link address of the first application may be sent to the to-share-with user.
Further, the application information may include, but is not limited to: a link address of the first application in the application store and evaluation information on the first application.
As an implementation manner of this embodiment, the application store on the Internet may store the application information of the first application, which may include, for example, the link address, the evaluation information, a screenshot of a running application, and a keyword.
Further, the obtaining application information of the first application in an application store on the Internet includes:
obtaining the link address of the first application from an installation package of the first application according to an identifier of the first application; or
obtaining the link address of the first application from a stored table of correspondences between identifiers and link addresses of installed applications according to an identifier of the first application; or
obtaining the link address of the first application from the application store on the Internet according to an identifier of the first application, where the application store on the Internet stores a table of correspondences between identifiers and link addresses of applications.
Further, if the second application is a communications application, the obtaining information about a to-share-with user includes:
obtaining the information about the to-share-with user by using the second application.
Further, if the second application is a social application, the obtaining information about a to-share-with user includes:
obtaining the information about the to-share-with user by using the second application, where the information about the to-share-with user is stored in a file related to the second application.
204. Send the link address to the to-share-with user by using the second application and send the evaluation information to the application store by using the second application.
As an implementation manner of this embodiment, when the distance between the first application and the second application is less than the preset distance, the second application may be triggered and started; the second application may obtain the link address of the first application from the application store according to the identifier of the first application; and after the information about the to-share-with user is obtained, the first application is sent to the to-share-with user by using the second application.
The application store is not limited in this embodiment, and is a technology well known by a person skilled in the art and may be set according to actual requirements, and details are not described herein again.
After the foregoing solution is used, an icon of a second application that can be used to share a first application is displayed on a display unit, and a user can trigger sharing of the first application by operating the icon of the first application, that is, trigger sharing of the first application by using the second application. In this way, any application can be shared, and operation steps for triggering sharing are simplified. Moreover, an electronic device may further select, by using a communications application, a specified friend to share with, and may share the first application with the specified friend. In addition, evaluation information on the first application may also be sent to an application store, so that another user obtains the evaluation information on the first application from the application store.
To describe the solution more clearly and more completely, some specific embodiments in which the solution is applied to some scenarios are provided below.
An embodiment provides another application sharing method. The method is a specific limitation and step extension of the steps shown in
Scenario 1 may be: a user drags an icon of a first application (a to-be-shared application) by using an electronic device, and an operation of sharing the first application is triggered until a distance between the icon of the first application and an icon of a second application is less than a preset distance. As shown in
301. The electronic device obtains the distance between the icon of the first application and the icon of the second application.
The first application is a to-be-shared application, and the second application is used to share the first application.
As an implementation manner of this embodiment, after the electronic device downloads and installs an application, an icon of the application may be displayed on a display unit of the electronic device. When a user needs to share the first application, the user may drag the icon of the first application to an icon of any second application by using the electronic device. In this way, the first application may be shared by using the corresponding second application.
To share the first application in time, the electronic device may obtain the distance between the icon of the first application and the icon of the second application in real time.
302. Determine whether the distance between the icon of the first application and the icon of the second application is less than the preset distance, and if the distance is less than the preset distance, perform step 303; if the distance is not less than the preset distance, perform step 301.
As an implementation manner of this embodiment, a preset range is set around the icon of the second application; if the icon of the first application is moved into the preset range, the distance between the icon of the first application and the icon of the second application is less than the preset distance; if the icon of the first application is not moved into the preset range, it indicates that the distance between the icon of the first application and the icon of the second application is not less than the preset distance.
A value of the preset distance is not limited in this embodiment, and may be accordingly set according to actual requirements. For example, the value may be 0.5 centimeter. Details are not described herein again.
303. Obtain application information of the first application in an application store on the Internet, and obtain information about a to-share-with user.
Further, the application information may include, but is not limited to: a link address of the first application in the application store and evaluation information on the first application.
Further, the application store on the Internet may obtain the application information of the first application from the application store according to an identifier of the first application, where the identifier of the first application may be, but is not limited to, a unique identifier of the first application.
As an implementation manner of this embodiment, the electronic device may obtain the unique identifier of the first application first, and then obtain a link address corresponding to the unique identifier from the application store. The application store provided by this embodiment may be an application, and a link address of any application may be stored in a file related to the application store.
The unique identifier may specifically be a package name of an installation package of the first application. For example, in an Android system, the package name may be stored in an AndroidManifest.xml file of an application installation package file, and a form of the package name may be: manifest package=“com . . . .”.
A method for obtaining a link address of an application is not limited in this embodiment, and is a technology well known by a person skilled in the art and may be set according to actual requirements, and details are not described herein again.
The obtaining, by the electronic device, a link address of the first application may include, but is not limited to:
obtaining the link address of the first application from the installation package of the first application according to the identifier of the first application.
Specifically, when downloading and installing an application, the user writes address information URL corresponding to the application and in the application store into a file of an installation package of the application, to enable a system to automatically extract the address information URL when the system detects that the user recommends the application. For example, for an iOS application, address information URL of a downloaded and installed application may be added to a field in an info.plist file, and for an Android application, address information URL of a downloaded and installed application may be added to a field in an AndroidManifest.xml file. Formats of address information URL may be shown below:
1. For an AndroidManifest.xml file in an Android system:
<url android:address=“http://www.1234apk.com/apk/3433/”></url>
2. For an info.plist file in an iOS system:
Alternatively, the method for obtaining the link address of the first application may further include:
obtaining the link address of the first application from a stored table of correspondences between identifiers and link addresses of installed applications according to the identifier of the first application.
Each time the user downloads and installs an application, a system automatically writes a URL of the installed application into a URL list of a mobile terminal device. Each time the user recommends an application to another person and drags an icon of the application to an icon of a communications application, and after a system confirms that this action is application recommendation, the system automatically detects a name of the application whose application icon is dragged, queries, according to the name of the application, the URL list maintained by the system for a URL corresponding to the to-be-recommended application, and sends, by using the communications application, a query result to a party to which the application is recommended.
Alternatively, the method for obtaining the link address of the first application may further include:
Specifically, a manner of querying a URL online in real time may include:
1. An operating system of a mobile phone detects a unique identifier corresponding to an icon of a to-be-recommended client application, where the unique identifier may be specifically a package name of an installation package of the to-be-recommended application.
2. The operating system of the mobile phone requests, from the application store on the Internet, a URL corresponding to the unique identifier of the application, and information related to the application, such as an application name, the number of times that the application is downloaded, and the last application evaluation.
3. The application store on the Internet searches, according to the received unique identifier of the application, for the URL corresponding to the to-be-recommended application and the information related to the application.
4. The application store on the Internet sends the URL corresponding to the application and the information related to the application to the operating system of the mobile phone.
5. After receiving the URL and the information related to the application, the operating system of the mobile phone sends, by using a communications application, the URL and the information related to the application to a party to which the application is recommended.
Further, by using the manner of querying a URL online in real time, not only a link address URL of a recommended application can be requested, but also information related to the application, such as an application name, the number of times that the application is downloaded, and the last application evaluation, can be requested from the application store on the Internet. When recommending an application to another person, the user cannot only send a link address of the recommended application in the application store, but also send other information related to the recommended application and requested from the application store on the Internet to a party to which the application is recommended, that is, information about the to-share-with user.
The method for obtaining the link address by the electronic device is not limited in this embodiment, is not limited to the methods described above, and may be set according to actual requirements, and details are not described herein again.
To simplify steps of sharing an application, the user may share the first application by dragging the icon, and if the user wants to implement the steps of sharing by using an application, the user may drag the icon of the first application to an icon corresponding to the application.
That an icon is dragged to another icon, which is provided by this embodiment, refers to that a distance between the two icons is less than a preset distance, and details are not described hereinafter again.
The icon of the second application may be, but is not limited to: an icon of a communications application, an icon of a social application, or an icon of the application store.
The communications application may be, but is not limited to: a short message service, Bluetooth, or an instant messaging application. The social application may be, but is not limited to:
a social communications application.
Further, the icon of the second application may be displayed on the display unit all the time.
In this case, the user may directly drag the icon of the first application to the icon of the second application on the display unit, to trigger a sharing operation, that is, to trigger the electronic device to send the link address of the first application to the information about the to-share-with user.
Further, the icon of the second application may also be displayed on the display unit after the icon of the first application is selected.
Specifically, as shown in
In this case, that the user shares the first application may include: the user may tap the icon of the first application on the display unit; after the icon of the first application is selected, the corresponding icon of the second application is displayed around the icon of the first application, and then the user drags the icon of the first application to the corresponding icon of the second application to trigger the sharing operation.
Alternatively, when the icon of the first application is not selected, the icon of the second application is not displayed around the icon of the first application on the display unit. As shown in
When the icon of the first application is dragged to a corresponding sharing area, a corresponding icon of a communications application or a corresponding icon of a social application is displayed on the display unit. Then the user may select a corresponding icon and uses an application corresponding to the icon as the second application, for example, if a selected icon is instant messaging, instant messaging may be used as the communications application to perform the sharing operation.
A display manner and content of the icon of the second application are not limited in this embodiment, are not limited to the content described above, and may also be another condition. Details are not described herein again.
As an implementation manner of this embodiment, after detecting that the distance between the icon of the first application and the icon of the second application on the display unit is less than the preset distance, the electronic device can execute the second application.
Further, if the second application is a communications application, the information about the to-share-with user may be obtained by using the second application, that is, the user may select a number of a friend that the user needs to share with (that is, the information about the to-share-with user).
For example, as shown in
If the second application is a social application, the information about the to-share-with user may be obtained by using the second application, where the information about the to-share-with user is stored in a file related to the second application.
For example, when the social application is a Renren application, the first application may be shared on a public home page, and an address of the public home page may be stored in a file related to the Renren application, which is a technology well known by a person skilled in the art, and details are not described herein again.
304. Send a link address to the to-share-with user by using the second application.
305. Send the evaluation information to the application store by using the second application.
As an implementation manner of this embodiment, if the second application is an instant messaging application, after the information about the to-share-with user is obtained by using step 303, the link address is sent to the to-share-with user by using the instant messaging application.
Further, the evaluation information on the first application provided by the user may be further sent to the application store, so that the application store may use the evaluation information as an evaluation of the application in the application store; and rating information of the application provided by the user is sent to the application store, so that the application store may use the rating information as a rating of the application in the application store.
Further, if the icon of the second application is an icon corresponding to the application store, after the icon of the first application is moved to the icon of the second application, an application store program is opened; the electronic device obtains the unique identifier corresponding to the icon of the first application, and obtains the link address corresponding to the unique identifier from the application store; and the link address is sent to an account of a friend, where the friend is a friend added by the user after the user registers an account in the application store application.
It should be noted that an application store client may be a mobile terminal client or a computer desktop client. When a network of the party to which the application is recommended (that is, a network corresponding to the information about the to-share-with user) is unstable or does not have enough traffic to download the first application, it may be considered that an application store client of a computer desktop is used to download the first application.
Because an existing application store does not have many evaluations, it is considered that when the user recommends an application to a friend, not only a link address of the application in the application store is sent to the friend, but also the evaluation information on the first application provided by the user may be further sent to a user evaluation module of the application store, and the rating information of the first application provided by the user may be further sent to a user rating module of the application store. In this way, a piece of evaluation information on the first application or a piece of rating information of the first application provided by the user is added to the application store, so that other users can better understand the application.
Further, when the icon of the first application is dragged to an icon of the application store, the electronic device may further open the first application in the application store after obtaining the link address corresponding to the icon of the first application; or the electronic device may detect the unique identifier corresponding to the icon of the first application, search the application store for an application with the same unique identifier, and open the application with the same unique identifier as the first application.
Scenario 2 may include: sharing of a first application is implemented by continuously tapping for a long time an icon of the first application (the to-be-shared application) displayed on a display unit. As shown in
701. An electronic device obtains a time length during which the icon of the first application is continuously tapped.
702. Determine whether the time length is greater than a preset time length, and if the time length is greater than the preset time length, perform step 703; if the time length is not greater than the preset time length, perform step 701.
The preset time length is not limited in this embodiment, and may be set according to actual requirements. For example, the preset time length may be 3 s. Details are not described herein again.
As an implementation manner of this embodiment, as shown in
703. Obtain application information of the first application in an application store on the Internet.
This step is similar to the content in step 303, and details are not described herein again.
704. Receive a sharing request.
Further, the sharing request may include, but is not limited to: an identifier of a second application. The electronic device may determine an application corresponding to the identifier included in the sharing request, as the second application that executes the sharing operation.
As an implementation manner of this embodiment, as shown in
Specific sharing steps and the icon of the second application have been described in “Scenario 1”, and details are not described herein again.
705. Obtain information about a to-share-with user.
This step is similar to the content of obtaining the information of the to-share-with user provided by step 303, and details are not described herein again.
706. Send a link address to the to-share-with user by using the second application, and send evaluation information on the first application to the application store by using the second application.
This step is similar to the content in step 304, and details are not described herein again.
Further, the evaluation information on the first application may be further sent to the application store.
Scenario 3 may include: open an execution program that executes a sharing operation, and add an icon of a first application to a sharing function in the execution program to implement sharing of the first application. As shown in
901. An electronic device obtains a triggering event.
Further, the triggering event is used to represent whether the icon of the first application is added to a second application.
Further, the second application may be, but is not limited to: a communications application, a social application, or an application store.
The communications application may be, but is not limited to: a short message service, Bluetooth, or an instant messaging application. The social application may be, but is not limited to: a social communications application.
902. Determine whether the icon of the first application is added to the second application, and if the icon of the first application is added to the second application, perform step 903; if the icon of the first application is not added to the second application, perform step 901.
903. Obtain application information of the first application in an application store on the Internet.
This step is similar to the corresponding content in step 303, and details are not described herein again.
904. Obtain information about a to-share-with user.
This step is similar to the corresponding content in step 303, and details are not described herein again.
905. Send a link address to the to-share-with user by using the second application.
This step is similar to the content in step 304, and details are not described herein again.
Further, evaluation information on the first application may be further sent to the application store.
As an implementation manner of this embodiment, to simplify steps of sharing an application, a user may first select the second application that executes a sharing operation, and then add the icon of the first application to the second application for sharing.
For example, as shown in
This step further includes obtaining the information about the to-share-with user, and a method for obtaining the information about the to-share-with user has been described in step 303, and details are not described herein again.
After the foregoing solution is used, an icon of a second application that can be used to share a first application is displayed on a display unit, and a user can trigger sharing of the first application by operating the icon of the first application, that is, trigger sharing of the first application by using the second application. In this way, any application can be shared, and operation steps for triggering sharing are simplified. Moreover, an electronic device may further select, by using a communications application, a specified friend to share with, and may share the first application with the specified friend. In addition, evaluation information on the first application may also be sent to an application store, so that another user obtains the evaluation information on the first application from the application store.
Some embodiments of virtual apparatuses are provided below, and the apparatus embodiments correspond to the foregoing corresponding method embodiments.
An embodiment provides an application sharing apparatus. As shown in
a first obtaining unit 111, configured to obtain a distance between an icon of a first application and an icon of a second application, where the first application is a to-be-shared application, and the second application is used to share the first application;
a determining unit 112, configured to determine whether the distance is less than a preset distance;
a second obtaining unit 113, configured to: if the distance is less than the preset distance, obtain application information of the first application in an application store on the Internet, and obtain information about a to-share-with user, where the application information includes a link address of the first application in the application store; and
a first sending unit 114, configured to send the link address to the to-share-with user by using the second application.
After the foregoing solution is used, an icon of a second application that can be used to share a first application is displayed on a display unit, and a user can move a position of an icon of the first application on the display unit, and implements and triggers sharing of the first application according to a distance between the icon of the first application and the icon of the second application, that is, triggers sharing of the first application by using the second application. In this way, any application can be shared.
An embodiment provides another application sharing apparatus. This apparatus is a further extension of the apparatus shown in
a first obtaining unit 121, configured to obtain a distance between an icon of a first application and an icon of a second application, where the first application is a to-be-shared application, and the second application is used to share the first application;
a determining unit 122, configured to determine whether the distance is less than a preset distance;
a second obtaining unit 123, configured to: if the distance is less than the preset distance, obtain application information of the first application in an application store on the Internet, and obtain information about a to-share-with user, where the application information includes a link address of the first application in the application store; and
a first sending unit 124, configured to send the link address to the to-share-with user by using the second application.
Further, the apparatus further includes a display unit, and the icon of the second application is displayed on the display unit after the icon of the first application is selected.
Further, the icon of the second application is displayed on the display unit all the time.
Further, the icon of the second application is displayed on the display unit after the icon of the first application is selected.
Further, the icon of the second application displayed on the display unit is an icon of a communications application, an icon of a social application, or an icon of the application store.
Further, the second application may be, but is not limited to: a communications application, a social application, or the application store.
Further, the application information obtained by the second obtaining unit further includes evaluation information on the first application.
The apparatus further includes:
a second sending unit 125, configured to: after the determining unit determines whether the distance is less than the preset distance, if the distance is less than the preset distance, send the evaluation information to the application store.
Further, the second obtaining unit 123 is specifically configured to obtain the link address of the first application from an installation package of the first application according to an identifier of the first application; or
obtain the link address of the first application from a stored table of correspondences between identifiers and link addresses of installed applications according to an identifier of the first application; or
obtain the link address of the first application from the application store on the Internet according to an identifier of the first application, where the application store on the Internet stores a table of correspondences between identifiers and link addresses of applications.
After the foregoing solution is used, an icon of a second application that can be used to share a first application is displayed on a display unit, and a user can trigger sharing of the first application by operating the icon of the first application, that is, trigger sharing of the first application by using the second application. In this way, any application can be shared, and operation steps for triggering sharing are simplified. Moreover, an electronic device may further select, by using a communications application, a specified friend to share with, and may share the first application with the specified friend. In addition, evaluation information on the first application may also be sent to an application store, so that another user obtains the evaluation information on the first application from the application store.
Through the descriptions of the foregoing embodiments, a person skilled in the art may clearly understand that the present invention may be implemented by software in addition to necessary universal hardware and certainly, may also be implemented by hardware. In most circumstances, the former is a better implementation manner. Based on such an understanding, the technical solutions of the present invention essentially or the part contributing to the prior art may be implemented in a form of a software product. The computer software product is stored in a readable storage medium, such as a floppy disk, a hard disk or an optical disc of a computer, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform the methods described in the embodiments of the present invention.
The foregoing descriptions are merely specific implementation manners of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
2013 1 0216485 | Jun 2013 | CN | national |
This application is a continuation of International Application No. PCT/CN2014/079041, filed on Jun. 3, 2014, which claims priority to Chinese Patent Application No. 201310216485.3, filed on Jun. 3, 2013, both of which are incorporated herein by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
8850422 | Chang | Sep 2014 | B2 |
20100274858 | Lindberg | Oct 2010 | A1 |
20120026201 | Amano | Feb 2012 | A1 |
20120072283 | DeVore | Mar 2012 | A1 |
20120124524 | Szarfman | May 2012 | A1 |
20120159334 | Messerly et al. | Jun 2012 | A1 |
20120159472 | Hong | Jun 2012 | A1 |
20120265827 | Hansson | Oct 2012 | A9 |
20130225087 | Uhm | Aug 2013 | A1 |
20140172911 | Cohen | Jun 2014 | A1 |
20150026275 | Zhang | Jan 2015 | A1 |
Number | Date | Country |
---|---|---|
101321179 | Dec 2008 | CN |
101888620 | Nov 2010 | CN |
102546835 | Jul 2012 | CN |
102572096 | Jul 2012 | CN |
102999379 | Mar 2013 | CN |
2 988 208 | Feb 2016 | EP |
2007131540 | Nov 2007 | WO |
2008110188 | Sep 2008 | WO |
2009109980 | Sep 2009 | WO |
20100141217 | Dec 2010 | WO |
Entry |
---|
International Search Report dated Aug. 27, 2015 in corresponding international application PCT/CN2014/079041. |
Extended European Search Report dated Jul. 20, 2016 in corresponding European Patent Application No. 14807684.7. |
PCT International Search Report dated Aug. 27, 2014 in corresponding International Patent Application No. PCT/CN2014/079041. |
Number | Date | Country | |
---|---|---|---|
20160057205 A1 | Feb 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/079041 | Jun 2014 | US |
Child | 14933251 | US |