×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: Creating a Trial App with usage limit

    Nice question indeed - and winner of the current promotion. Well done.

    I was wondering if anyone in the thread would like to create a wiki article covering in more detail the ideas and concepts here? I think "How do I create a trial app in Windows phone" which explores the difficulty of getting unique identifiers, server vs local storage, limiting on functionality rather than uses, in app purchase/advertising could make a very good story.

    As a side note, I wonder if the in-app purchase could somehow be used here - ie is it possible to create a consumable (20 free goes) that can only be purchased once by a particular user?

  2. #17
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Re: Creating a Trial App with usage limit

    Thanks Hamish for the device.

    Surly need a wiki article for creating a trial app with usage/time limited applications. Since there is no help in web for this condition.

    Binu

  3. #18
    Registered User
    Join Date
    Mar 2013
    Posts
    5

    Re: Creating a Trial App with usage limit

    Congrats binu for your Lumia..

  4. #19
    Nokia Developer Champion
    Join Date
    Nov 2012
    Location
    Karachi
    Posts
    89

    Re: Creating a Trial App with usage limit

    Hi binu_ji ;
    Nice Question and congrats for your Lumia

    Please can you share the code that how are you counting that the app is working for 20times.

    Thanks

  5. #20
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    292

    Re: Creating a Trial App with usage limit

    Quote Originally Posted by Shayan Rais View Post
    Hi binu_ji ;
    Nice Question and congrats for your Lumia

    Please can you share the code that how are you counting that the app is working for 20times.

    Thanks
    You can do so easly by storing that in the IsolatedStorageSettings
    and putting it in the app launch event.
    Code:
    var settings = IsolatedStorageSettings.ApplicationSettings;
    bool reachedMax = false;
    if(settings.contains("AppUseCount"))
    {
        var i = (int) settings["AppUseCount"];
        reachedMax = (i>=20);
        settings["AppUseCount"] = i+1;
    }
    else 
    {
        settings["AppUseCount"] =1;
    }
    settings.Save()
    if(reachedMax) MessageBox.Show("You reached the trial limit.")
    but by uninstalling and installing the app again, the counter is back to 0 and the user can try it again.

  6. #21
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Re: Creating a Trial App with usage limit

    Quote Originally Posted by Shayan Rais View Post
    Hi binu_ji ;
    Nice Question and congrats for your Lumia

    Please can you share the code that how are you counting that the app is working for 20times.

    Thanks
    I used RadTrialApplicationReminder control from telerik, which take care of app usage counts.
    My Apps - http://www.windowsphone.com/en-IN/store/publishers?publisherId=Binu

  7. #22
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: Creating a Trial App with usage limit

    Hi Binu
    Quote Originally Posted by binu_ji View Post
    Thanks Hamish for the device.

    Surly need a wiki article for creating a trial app with usage/time limited applications. Since there is no help in web for this condition.

    Binu
    You're welcome. If you feel you could create such an article, I'd be happy to help tidy it up. Does anyone else volunteer?

  8. #23
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Re: Creating a Trial App with usage limit

    The problem is i am an VB developer, and my code is also in VB. Is that ok?
    My Apps - http://www.windowsphone.com/en-IN/store/publishers?publisherId=Binu

  9. #24
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Creating a Trial App with usage limit

    Quote Originally Posted by binu_ji View Post
    The problem is i am an VB developer, and my code is also in VB. Is that ok?
    That is absolutely no problem, and yes, using VB code in a Wiki article is perfectly ok.

  10. #25
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    921

    Re: Creating a Trial App with usage limit

    Quote Originally Posted by binu_ji View Post
    The problem is i am an VB developer, and my code is also in VB. Is that ok?
    I'm also an VB developer so I welcome VB articles

Similar Threads

  1. Using the same UID for a trial version
    By spol in forum [Closed] Publishing to Nokia Store
    Replies: 4
    Last Post: 2009-09-03, 20:59
  2. Time Trial
    By maozet in forum Mobile Java General
    Replies: 1
    Last Post: 2008-01-21, 17:04
  3. Limit Midlet usage
    By cprome in forum Mobile Java General
    Replies: 0
    Last Post: 2007-04-12, 10:07
  4. bh4-x trial driver
    By Never_Die in forum Bluetooth Technology
    Replies: 3
    Last Post: 2004-11-30, 11:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •