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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -