×

Discussion Board

Results 1 to 4 of 4

Thread: Midlet UID

  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Midlet UID

    Hi All,
    how can i retrieve specific midlet uid from c++ code and launch that midlet? Please help me ASAP...
    Thanx...

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,748

    Re: Midlet UID

    Search for launch midlet in the Wiki. ASAP of course.

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Re: Midlet UID

    Thanx 4 reply wizard_hu....
    I used following code for launching midlet from my native c++ application, but it is not work properly .what is the problem in this code ....
    Code:
    TApaAppInfo appInfo;
    			TUid aAppUid;
    			RApaLsSession apaLsSession;
    			User::LeaveIfError(apaLsSession.Connect());
    			CleanupClosePushL(apaLsSession); 
    			User::LeaveIfError( apaLsSession.GetAllApps() );
    			
    			while ( apaLsSession.GetNextApp( appInfo ) == KErrNone )
    			    {
    			    	if(appInfo.iFullName.Right(8).Compare(_L(".fakeapp")) == 0)
    			    	{
    			    		if(appInfo.iFullName.Compare(_L("<midlet-name>.fakeapp")) == 0)
    			    		{	
    			    			aAppUid= appInfo.iUid;
    			    		}
    			       	}
    			    }
    
    			 TThreadId threadId;
    			 apaLsSession.StartDocument(_L(""),aAppUid, threadId);
         CleanupStack::PopAndDestroy(&apaLsSession);

  4. #4
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Re: Midlet UID

    Thanx 4 reply wizard_hu....
    I used following code for launching midlet from my native c++ application, but it is not work properly .what is the problem in this code ....
    Code:
    TApaAppInfo appInfo;
    			TUid aAppUid;
    			RApaLsSession apaLsSession;
    			User::LeaveIfError(apaLsSession.Connect());
    			CleanupClosePushL(apaLsSession); 
    			User::LeaveIfError( apaLsSession.GetAllApps() );
    			
    			while ( apaLsSession.GetNextApp( appInfo ) == KErrNone )
    			    {
    			    	if(appInfo.iFullName.Right(8).Compare(_L(".fakeapp")) == 0)
    			    	{
    			    		if(appInfo.iFullName.Compare(_L("<midlet-name>.fakeapp")) == 0)
    			    		{	
    			    			aAppUid= appInfo.iUid;
    			    		}
    			       	}
    			    }
    
    			 TThreadId threadId;
    			 apaLsSession.StartDocument(_L(""),aAppUid, threadId);
         CleanupStack::PopAndDestroy(&apaLsSession);

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. Nokia 6101 Locked 2 TMobile Midlet can't access internet...
    By Jason Glass in forum Mobile Java Networking & Messaging & Security
    Replies: 45
    Last Post: 2007-11-14, 02:19
  3. Trojan installation onto previous trusted Midlet suite?
    By guillermoTell in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-05-07, 08:40
  4. MIDlet: Can't Install, Run, or Delete
    By davidmanpearl in forum Mobile Java General
    Replies: 7
    Last Post: 2007-04-25, 17:23
  5. launching MIDlet from another MIDlet on 6310i problem
    By niko86 in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-07, 09:38

Posting Permissions

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