Android app - Lite version or paid version -


i developing 1 android app single source library. wish submit app both free , paid version. free version planned disable functionalities , give more functionalities paid one. there way find android app free or paid java code?

edit 1: in windows phone "app.xaml.cs" file contains following method identify free or paid version of windows phone app.

private void application_launching(object sender, launchingeventargs e) {    var license = new microsoft.phone.marketplace.licenseinformation();    istrial = license.istrial(); } 

here istrail property returns true or false. there method available android detect free or paid version.?

google play services doesn't offer api accessing google play metadata in relation running app. application licensing might way forward, user sandy mentioned cannot used in paid app (sounds odd though).

i suggest way forward though:

  • unless offer single version of app in-app purchase upgrade free paid version have upload 2 different versions google play (since package name cannot same 2 apps). there's no way around fact.

  • since have build 2 different versions of app @ compile-time preprocess compiled code , replace parts of code differ between free , paid version. designed code should no problem @ all. library projects should suitable this.

  • another option provide 2 different sets of data/config-files @ compile time through means of config/launch parameters control parts of code should activated.

if provide bit more information app it's easier suggest solution. game paid app has more levels? app functionality isn't available in free version? app limited number of uses day in free version?

update: mention want disable comments in free app while in paid app comment should posted server. think best way separate paid , free logic 2 library projects , use 1 project when building paid version , 1 when building free version:

  1. create 2 library projects, 1 code free app , 1 paid app. in both projects should have class called commentposter or that. have both classes implement interface main project defines method called when user posts comment, let's call icommentposter , have method called postcomment(string comment).

  2. let postcomment() method of commentposter class in paid version send comment server

  3. let postcomment() method of commentposter class in free version create dialog, toast or other means of telling user function isn't available. optionally have method called isavailable() in icommentposter if want let user know beforehand comments aren't available

if don't idea of 2 library project , want keep code in single project preprocessing , include 1 out of 2 different config files , have app read config file check if comments should available or not. has disadvantage of being hackable quite since need have code in app , it's matter of modifying config file benefits of paid version (most higher risk on rooted devices guess)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -