×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Location
    Dhaka,Bangladesh
    Posts
    146

    How to check MMC insert / Remove?

    Hi i want to check memory insert and remove while my application is running.
    I use active object as below:

    void CDCEngineMMCCheck::ConstructL()
    {
    CEikonEnv::Static()->SetSystem( ETrue );
    CActiveScheduler::Add( this );
    TRequestStatus* status = &iStatus;
    User::RequestComplete( status, KErrNone );
    SetActive();
    }

    void CDCEngineMMCCheck::RunL()
    {
    const TInt64 KThreshold = 0x1000;
    CEikonEnv::Static()->FsSession().NotifyDiskSpace(KThreshold, EDriveE, iStatus);
    iObserver.UpdateList();
    SetActive();
    }

    void CDCEngineMMCCheck::DoCancel()
    {
    CEikonEnv::Static()->FsSession().NotifyDiskSpaceCancel();
    }

    Implement UpdateList() in my view class to update my memory list(ph memory,memory card).The code is working.but after 20/25 sec the application is crashed.may be it takes too much resource for checking while the card is remove or not.
    is there any other way to check and update my list without using active object?

    Thanx.
    Saniat

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to check MMC insert / Remove?

    I would suggest you to search our wiki sometimes: http://wiki.forum.nokia.com/index.ph...removal_events

  3. #3
    Regular Contributor
    Join Date
    Jan 2009
    Location
    Dhaka,Bangladesh
    Posts
    146

    Re: How to check MMC insert / Remove?

    Thanx yucca for reply.i already do that.and according to the wiki i design the code.but it is not work for me.while the memory card is inserted the application is running fine.but after remove the MMC the application is crashed after 20 /25 sec later.
    Saniat

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to check MMC insert / Remove?

    is it possible that your applciation is installed into the card, and it's resource or other files it needs is thus unavailable... Also the crashcode might help..

  5. #5
    Regular Contributor
    Join Date
    Jan 2009
    Location
    Dhaka,Bangladesh
    Posts
    146

    Re: How to check MMC insert / Remove?

    Thanx for reply.
    No.i installed my application in phone memory.its work fine in N95(sdk 3rd fp1) .but i problem face in E50( sdk 3rd)
    Saniat

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to check MMC insert / Remove?

    ok, then do check where it is crashing and what is the panic code for the crash..

Similar Threads

  1. Replies: 7
    Last Post: 2008-07-11, 06:41
  2. "Preinstall" java application on MMC
    By The_Evil_JesteR in forum Mobile Java General
    Replies: 2
    Last Post: 2005-09-12, 17:32
  3. how to unlock the locked mmc card
    By AllyMac in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2005-05-21, 01:59
  4. Installing a MIDlet from an MMC card on Series 60
    By m4xence in forum Mobile Java General
    Replies: 3
    Last Post: 2003-11-10, 13:30
  5. SMS Msg using VB Application
    By gurup83 in forum General Messaging
    Replies: 2
    Last Post: 2002-07-11, 04:48

Posting Permissions

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