×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Question Remain connection - Contact List

    Hello guys,

    I'm packaging my app and some issues has arise.

    First of all, the application wasn't been finished when pressing the "end call" (red key) button, so, I fixed it.

    If I access the contact list, and then I hit the "red key", the app is finished "normally". When I try to unistall the app, a message shows saying that there is an app/process associated with that and that one need to be closed too. It doesn't look a critical issue, but...

    if I access the contact list and then I try quit by main menu of my app, it seems to be closed, but it stay on "ghost" mode opened by OS (It cannot be access or opened again, and the OS show that there is an opened app).

    It leads my thoughts to a "remain connection" problem (with the contact list, of course).

    I'm accessing the contact list in a syncronous mode, as Forum Nokia Library shows. I'm using only GetList method.

    Do you guys have any idea to solve this?

    regards,
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    Try to unload the service instant on pressing the red key or unload it instantly if u dont need it any more.Read here about unloading:
    Unloading Services
    Hope it solves ur issue. If it doesnt solve then let me know that are these all behaviors only occur when u use contacts service api or it occurs even when u dont use any service api?

    Best Regards,
    SajiSoft

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Remain connection - Contact List

    Hello Saji,

    First of all, congratulations for be the Forum Nokia Champion, you really deserve it.

    I was already unloading the service object.

    The behavior happens only when I use service API.

    Regards,
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    First of all, congratulations for be the Forum Nokia Champion, you really deserve it.
    Thanks for appreciating
    I was already unloading the service object.
    The behavior happens only when I use service API.
    Then it seems to be software version issue. Can u please post the demo (swf & sis) here ? So, i will try it on my device (5800) and if i am able to reproduce the issue then i will surely try my best to solve it.

    Best Regards,
    SajiSoft

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Remain connection - Contact List

    Hey Saji,

    I thought it could be some movies attacheds with strong references, but its not. (I remove all of them)

    I thought it could be the syncronous method, then I changed to asyncronous, but the problem remains.

    My debug on device (with a text message) shows that the service reference was unloaded.

    I put all the code inside the onList callback method commented, but the problem remains. (This test scares me, )

    The features of app are working fine (The contact list is loaded correctly, the app send the SMS message successfully, etc)

    Just to remember

    I'm using Flash Lite 3.0 (I cannot use 3.1 because Ovi doesn't accept that).
    I'm generating the sisx file with carbide C++


    Send me your e-mail in a private message, then I will send you the sisx file as a gift to be a Forum Nokia Champion,

    PS: I'll make an app from scratch with just this feature and package it to try.
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  6. #6
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Angry Re: Remain connection - Contact List

    I just did an app from scratch, unfortunatelly THE SAME BUG APPEARS.



    To sumarize,

    When I try to finish the app from my button with fscommand2("Quit"), the app turns a ghost to OS. So, I reset the device then I open it again and I try to finish the app from the red key (with onKeyDown event assigned) and the app is supposedly terminated well, but when I try to uninstall the follow message appears "Unable to uninstall application. Other applications must be closed first. Close now?"

    I'm suspecting that flash lite open the connection to contact list database and doesn't release the resources...
    Last edited by atilacorreiacunha; 2010-03-02 at 23:39. Reason: Complement
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  7. #7
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    Quote Originally Posted by atilacorreiacunha View Post
    I just did an app from scratch, unfortunatelly THE SAME BUG APPEARS.

    Then it should be a software version issue & software version issue corresponds to Flash Lite Stub not the swf code. Thats why try the other way of making a swf launcher , it may helps u :
    Swf Launcher
    and if u think that it must not be software version issue then u can check ur sis in RDA devices (maybe n97 or 5800) and check that whether the same issue occurs because m sure they have the latest firmware of devices on RDA.

    Best Regards,
    SajiSoft

  8. #8
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Remain connection - Contact List

    The solution of laucher works great in my small test,

    The only problem that I have is even with only the S60 v5 SDK to choose in wizard, the carbide generate the files with 3_X_v_1_0_0 extension and the installer of sisx shows a message that the app is not to my phone,
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  9. #9
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    Quote Originally Posted by atilacorreiacunha View Post
    The only problem that I have is even with only the S60 v5 SDK to choose in wizard, the carbide generate the files with 3_X_v_1_0_0 extension and the installer of sisx shows a message that the app is not to my phone,
    Not a big deal.Just edit the .pkg file of ur project and add this line :
    Code:
    [0x1028315F], 0, 0, 0, {"S60 5th Edition devices"}
    Hope it helps

    Best Regards,
    SajiSoft

  10. #10
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Angry Re: Remain connection - Contact List

    Hello Saji, thanks for the help again.

    The challenge is not over.

    I did a lot of tests and unfortunatelly the results were not good.

    The laucher for the application works fine, but it brings back the confirmation message to access some resource (even if you set the capabilities correctly at mmp file in carbide), it's not too bad, except for the case...

    If you wait a while at this screen (do not confirm the access immediately, wait a minute or more), the application will get a Flash Content Error:4 (Action Script Stuck). I did the test with my game and a small app accessing the contact list, I tried syncronous and assyncronous methods, I tried packaged app and swf files directly on "others" folder, and all the tests get the same result.
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  11. #11
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    Umm..security issue. We have a last thing to try now. Try embedding the flash content in Symbian C++ application by using this method :
    How to: “embed” Flash Lite into C++ Symbian application
    Put capabilities in mmp and also put ur swf into the private folder i.e !\\private\\<Your APP UID>\\here.swf by editing pkg.

    Best Regards,
    SajiSoft

  12. #12
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Remain connection - Contact List

    It didn't work too,

    I tried the Stub Solution plus Laucher plus embed.

    The good point is that my C++ is not so rusty, hahaha
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  13. #13
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    Thanks for posting all ur feedbacks. I am sure it will be helpful to all other developers that go through this situation & the only way to get rid of this issue is to upgrade the software version (which i posted in my second post on this thread ).

    Btw, Did u tried it with any other phone having different software version ?

    Best Regards,
    SajiSoft

  14. #14
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Remain connection - Contact List

    Quote Originally Posted by sajisoft View Post
    upgrade the software version
    When you say that, you mean the Flash Lite Player of device?

    My device has Flash Lite Player 3.1 (Upgraded).
    The exported swfs by flash are in Flash Lite 3.0 version.
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  15. #15
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Remain connection - Contact List

    Quote Originally Posted by atilacorreiacunha View Post
    When you say that, you mean the Flash Lite Player of device?

    My device has Flash Lite Player 3.1 (Upgraded).
    The exported swfs by flash are in Flash Lite 3.0 version.
    No i actually mean to say firmware update which is also termed as device software update.

    Best Regards,
    SajiSoft

Similar Threads

  1. Can't find Serial Port
    By AliceC in forum Symbian
    Replies: 3
    Last Post: 2009-10-15, 11:23
  2. cannot add new contact list in my contact list application
    By dexth in forum Mobile Java General
    Replies: 0
    Last Post: 2009-10-10, 12:31
  3. j2me - contact list and event list
    By chia_84 in forum Mobile Java General
    Replies: 4
    Last Post: 2008-11-13, 09:40
  4. problem in send email from contact list.
    By Nitesh Bhardwaj in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-11-10, 06:30
  5. Contact list
    By GonzaloP in forum Mobile Java General
    Replies: 9
    Last Post: 2008-11-01, 00:31

Posting Permissions

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