Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2009

    Thumbs up How to get java UID(this uid use to uninstall his owner app ) on symbian s60 5th???

    i install a java app in my code ,but i can't get the register UID
    i want to uninstall the java app,but no the register UID,so i can't do that.

    all of above ,on 3rd,i can do it compliate.

    anybody can tell me?

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    ShenZhen, China

    Re: How to get java UID(this uid use to uninstall his owner app ) on symbian s60 5th

    RApaLsSession appSession;

    TInt count = 0;
    LOG_FMT(_L("appcount = %d"), count);

    //User::LeaveIfError(appSession.GetFilteredApps(TApaAppCapability::EBuiltAsDll, TApaAppCapability::EBuiltAsDll));
    TApaAppInfo appInfo;
    TInt aIndex = 0;
    while(KErrNone == appSession.GetNextApp(appInfo))
    LOG_FORMAT((_L("aIndex=%d"), aIndex));
    LOG_FORMAT((_L("appInfo.iFullName=%S"), &(appInfo.iFullName)));
    LOG_FORMAT((_L("appInfo.iCaption=%S"), &(appInfo.iCaption)));
    LOG_FORMAT((_L("appInfo.iShortCaption=%S"), &(appInfo.iShortCaption)));
    LOG_FORMAT((_L("appInfo.iUid.iUid=0x%08x"), appInfo.iUid.iUid));
    if(appInfo.iFullName.Right(8).Compare(_L(".fakeapp")) == 0)
    TThreadId threadId;
    TInt err = appSession.StartDocument(_L(""), appInfo.iUid, threadId);
    LOG_FORMAT((_L("err=%d"), err));
    CleanupStack::PopAndDestroy(1, &appSession); //appSession

    if "if(appInfo.iFullName.Right(8).Compare(_L(".fakeapp")) == 0)" is true, it is a java app.
    if appInfo.iCaption == jar/jad 's app name , appInfo.iUid.iUid is the key
    坚持学习, 坚持编码

Similar Threads

  1. what is the sms editor uid on 5th symbian os?
    By heartfree in forum Symbian
    Replies: 2
    Last Post: 2009-11-26, 04:26
  2. How to retrieve MIDlet UID on symbian 5th?
    By bjzjg in forum Symbian
    Replies: 1
    Last Post: 2009-06-10, 13:39
  3. Replies: 12
    Last Post: 2009-03-26, 08:04
  4. Replies: 1
    Last Post: 2007-08-14, 06:40

Posting Permissions

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