×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    37

    How to get the appinfo of application which was installed into NOKIA drive at once?

    void CInstallationMonitor::RunL()
    {
    if ( iStatus == KErrNone )
    {
    TInt installationStatus;
    iProperty.Get( KUidSystemCategory, KSAUidSoftwareInstallKeyValue,
    installationStatus );

    if ( ( installationStatus & EInstOpInstall ) && ( installationStatus
    & EInstOpStatusSuccess ) )
    {
    TInt appUid;
    User::LeaveIfError( RProperty::Get( KUidSystemCategory,
    KUidSwiLatestInstallation, appUid ) );

    TApaAppInfo appInfo;
    User::LeaveIfError( iSession.GetAppInfo( appInfo, TUid::Uid( appUid ) ) );

    // notify observer
    iObserver.NewApplicationInstalled( appInfo.iCaption, appInfo.iUid );
    }

    // re-issuing the request
    NotifyStateChange();
    }
    else
    {
    iObserver.HandleError( iStatus.Int() );
    }
    }

    About the function iSession.GetAppInfo( appInfo, TUid::Uid( appUid ).
    when i get the notification of installed application. It is work well if the application was install into memory card.
    But the GetAppInfo funcation will get error code (-1) if the application would been installed into NOKIA drive.
    I think installed into NOKIA drive application doesn't updated at once.

    How to do it?

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How to get the appinfo of application which was installed into NOKIA drive at on

    correct the installed application list does get updated immediatly, use CApaAppListNotifier to get notified when the application list has been updated and is ready to be used with the newly installed application.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    37

    Re: How to get the appinfo of application which was installed into NOKIA drive at on

    Quote Originally Posted by Paul.Todd View Post
    correct the installed application list does get updated immediatly, use CApaAppListNotifier to get notified when the application list has been updated and is ready to be used with the newly installed application.
    the CApaAppListNotifier class , i can't find it in SDK. where is it?

    can give example about it?

    can it receive notification when uninstall application?

  4. #4
    Regular Contributor
    Join Date
    Dec 2009
    Posts
    77

    Re: How to get the appinfo of application which was installed into NOKIA drive at on

    There is no documentation but you will find it installed in your sdk. header file for this class is

    apgnotif.h

  5. #5
    Registered User
    Join Date
    Aug 2012
    Posts
    8

    Re: How to get the appinfo of application which was installed into NOKIA drive at on

    Hello,

    I use Belle SDK and it does not contain this file.

    Maybe it contains some alternative API to be notified when app installed/uninstalled?

    Thanks,Yury

  6. #6
    Registered User
    Join Date
    Aug 2012
    Posts
    8

    CApaAppListNotifier in Belle is not acceccible?

    Hello,

    I use Belle SDK and try to get notifications when device install/installing/uninstall/uninstalling applications.
    It looks like CApaAppListNotifier class [http://www.symlab.org/main/documenta...1D2F2C93.html] can help but Belle SDK does not contain apgnotif.h

    How can I use this class with Belle?
    Or Belle provides any alternative?

    thanks,
    Yuriy

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: CApaAppListNotifier in Belle is not acceccible?

    First you can try copying it from an older SDK (and hope that the corresponding library contains the definitions). Or you can also try getting it from the ex-open source Symbian^3 code, which can be found as project symbiandump on SourceForge. It is going to be in the sf-mw-appsupport package. If you go for the .hg files, they are used by the Mercurial revision control system, you can use the file(s) as a source repository for clone command (if you are familiar with Tortoise tools, you may want to use TortoiseHg for this task).

  8. #8
    Registered User
    Join Date
    Aug 2012
    Posts
    8

    Re: CApaAppListNotifier in Belle is not acceccible?

    Quote Originally Posted by wizard_hu_ View Post
    First you can try copying it from an older SDK (and hope that the corresponding library contains the definitions). Or you can also try getting it from the ex-open source Symbian^3 code, which can be found as project symbiandump on SourceForge. It is going to be in the sf-mw-appsupport package. If you go for the .hg files, they are used by the Mercurial revision control system, you can use the file(s) as a source repository for clone command (if you are familiar with Tortoise tools, you may want to use TortoiseHg for this task).
    Thanks,

    just found and put file APGNOTIF.H into \Nokia\devices\Nokia_Symbian_Belle_SDK_v1.0\epoc32\include and it works!

Posting Permissions

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