On Wed, Apr 24, 2013 at 4:22 PM, TreKing <[email protected]> wrote:
> On Wed, Apr 24, 2013 at 5:42 AM, Perry168 <[email protected]> wrote: > >> I hope to check user is download my apps from google play store or from >> other place. But I don't know how to write the program. >> > > There is no way for you to detect this. > > Well, there is PackageManager.getInstallerPackageName() which was probably meant for this purpose, however as it turns out, installer packages apart from the Google Play client routinely ignore it (apparently they just leave it at null). Even the Google Play client is said to put varying values in it so even if the function returns non-null, the returned string might be hard to make sense of as you don't know what to look for. I too would love to have a way of checking who installed a particular package (our app, most of the time) but to my knowledge, you can't find out reliably. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

