×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Question How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    Hi,

    My flash lite 3.1 app should show a login screen if the user has accessed the app for the first time.

    1. How can I ascertain that it is the first time that the app is accessed - which uniqueness parameters ensure this?
    2. Also, what signing capability would I need for this - will it be the Express signed or the Certified Signed?
    3. Will the Ovi store provide any of the 2 signing capabilities or will I have to look for it somewhere else?

    Regards,
    Supriya Tenany

  2. #2
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    I think u can deal with this by just software...
    Simply create a Shared Object that set a boolean upon First launch...

    was I clear ? Would this tackle ur case....
    Twitter - manikantan_k
    Just in --

  3. #3
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    I am not sure if using a shared object could solve my purpose...since my app would be making table entries of users for our record, I had thought of using the DeviceID as the unique parameter and if through a webservice, no record is fetched from the table, the user is made to register once, which gets entered in the table. The next time, when the application is accessed by the same user (meaning the same device in this logic), the webservice would return a row from the table for that device ID, thus validating the device and the user need not be welcomed with the registration screen and hence can start using the app directly. Although there is one and the only case that I apprehend will fail this logic - if the handset is in use by another person, possessing a different SIM...in this case, the device ID would although remain the same, but the user would have changed.

    There are 2 things that I need to know using shared object as I have never used this before:

    1. Would compiling this project also produce a swf file? I am using Carbide C++ (as I am satisfied with only this packager) for a simple SIS packaging.
    2. Will the shared object counter the failure in my stated logic? If a different SIM is used in the same handset...what would it be...a new user?
    3. What is the concept on which you suggest using the shared object?
    4. What is the lifetime of a shared object? What will happen if the app is uninstalled and then reinstalled on the same handset?

    Regards,
    Supriya Tenany
    Last edited by supriyaakg; 2011-01-10 at 09:25.

  4. #4
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    Yes. use of shared object can handle this case... But if u want an online maintenance / registry for ur own bookkeeping, shred object is not the best way.. Use the webservice logic...
    Shared object, will not change if u put a new SIM..
    its dependent on the handset.. Essentially, it creates a small file corresponding to the SWF inside the phone...

    Please read this article from our Wiki, http://wiki.forum.nokia.com/index.ph...a_in_FlashLite
    Twitter - manikantan_k
    Just in --

  5. #5
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    Hi Manikantan,

    Thanks for supporting my logic, but there is one more thing that I am unsure of - what will happen to the shared object variable if the application is uninstalled and then reinstalled?
    Regards,
    Supriya Tenany

  6. #6
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    Not sure... Should be a good thing to experiment..
    Twitter - manikantan_k
    Just in --

  7. #7
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: How to find out uniqueness of handset or SIM with flash lite 3.1 app?

    Hi Manikantan,

    The following code worked:

    function fnCheckSharedObjectSupport ()
    {
    SharedObjectCapability.text = System.capabilities.hasSharedObjects;
    }
    fnCheckSharedObjectSupport ();

    SharedObject.addListener("ObjectName",fnShdObjLoaded);
    var oShdObj = SharedObject.getLocal("ObjectName");
    function fnShdObjLoaded(oShared:SharedObject)
    {
    if (oShared.getSize() == 0)
    {
    SharedObjectSize.text = "No object Stored";
    SharedObjectData.text = "---------";
    oShdObj.data.username = "Supriya";
    oShdObj.flush();
    }
    else
    {
    SharedObjectSize.text = "Found Object";
    SharedObjectData.text = oShdObj.data.username;
    }
    }

    Also, the shared object data stored in the device does get erased on app uninstall.
    Last edited by supriyaakg; 2011-01-19 at 09:46.
    Regards,
    Supriya Tenany

Similar Threads

  1. make c++ app send data to flash lite app
    By redfuse in forum Symbian
    Replies: 3
    Last Post: 2009-10-24, 09:43
  2. Flash Lite App
    By shankx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2009-04-15, 16:44
  3. Flash Lite App
    By shankx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2009-04-13, 11:23
  4. Problem with Flash Lite & Nokia - Flash Lite does not open in MMS
    By muggzy in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2008-12-17, 17:13
  5. Getting Flash Lite installed on Flash Lite enabled but not pre-built devices!
    By sirbijan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-06-04, 07:39

Posting Permissions

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