android - Is it possible to have a widget which is only useable when the user has unlocked the pro version of the app? -


my app has 2 widgets, , i'd hide 1 of them in list of homescreen widgets unless user has purchased pro version of app (which done via in-app billing).

as widget has declared in manifest, , appears in list when user goes create one, there way prevent "premium" widget showing unless condition has been met?

one way around keep in list, allowing user create it, , setting layout "upgrade pro" if hasn't been unlocked rather using proper layout. don't option it's not great ux, avoiding preferable.

you can use setcomponentenabledsetting:

http://developer.android.com/reference/android/content/pm/packagemanager.html#setcomponentenabledsetting(android.content.componentname, int, int)

so add manifest ( disabled ) , enable when user has payed


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -