android - Programmatically determine if application is the MarketPlace version -


i have application that's offered in , outside of marketplace.

is there way of determining within code application came from?

i've got few indirect methods ...

1) infer whether have "allow installation of non-market applications" ticked ...

http://developer.android.com/reference/android/provider/settings.html#action_manage_applications_settings

2) or make separate builds , make explicit in code.

if packagemanager.getinstallerpackagename() returns com.google.android.feedback application, installed android market.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -