How can a double version of an app be realized, for instance a Free and a Premium one?
Is possible to have some controls, like EditText
s, Buttonm
s, etc, be shown only in a Premium version?
How can a double version of an app be realized, for instance a Free and a Premium one?
Is possible to have some controls, like EditText
s, Buttonm
s, etc, be shown only in a Premium version?
Of course it is. You can do findViewById(R.id.premium).setVisible(View.GONE)
in your free app to hide controls that should only be visible in the premium version.
You might also be interested in In App Billing Documentation.
I think the best way is separating both versions into two library projects; so in one you would add just the free version and in the other one the full version.
Each of them should have their own structural files, such as drawable resources, Manifest... You'll be able to find more info in several other StackOverflow questions such as this (just googleing a little you'll find a bunch).