×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Launching Camera application like MMS composer

    Hi,

    I Would like to do following

    1. start own application
    2. select take photo
    3. camera application starts
    4. user takes picture
    5. ask does user want to use this picture if pressing yes close camera application and receive image path to own application

    this is like MMS composer does it so I thought is there way to do it from own application.

    I have implemented camera API but that is not so nice to for user than Nokia camera application.

    Many thanks for helping

    BR

    miikkis
    Last edited by miikkis; 2009-07-06 at 13:34.

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,021

    Re: Lauching Camera application like MMS composer

    so what have you done so far, have you implemented UI related task as you said in your post, like starting camera, saving image etc...

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

    Re: Lauching Camera application like MMS composer

    Have a look into New File service API included in the API plug-in, with it you cna embed the native camera into your application and get the file name of the last taken image..

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Lauching Camera application like MMS composer

    Quote Originally Posted by symbianyucca View Post
    Have a look into New File service API included in the API plug-in, with it you cna embed the native camera into your application and get the file name of the last taken image..
    yes thanks I found this too didnt get it yet fully work, but I think it will work

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Lauching Camera application like MMS composer

    Quote Originally Posted by vineet.jain View Post
    so what have you done so far, have you implemented UI related task as you said in your post, like starting camera, saving image etc...
    i created camera controller and view for it. that wasnt so nice way to do it it worked well, but I want to use nokia UI and it should be possible using tip what symbianyucca told

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

    Re: Lauching Camera application like MMS composer

    ok, what kind of problem do you have with the New File service API ?
    AFAIK it should work just fine.

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Lauching Camera application like MMS composer

    i tested this code.

    Code:
    CNewFileServiceClient* fileClient = NewFileServiceFactory::NewClientL();
    CleanupStack::PushL( fileClient );
    
    CDesCArray* fileNames = new ( ELeave ) CDesCArrayFlat( 1 );
    CleanupStack::PushL( fileNames );
    
    CAiwGenericParamList* paramList = CAiwGenericParamList::NewLC();
    
    TSize resolution( 1600, 1200 ); // 2 megapixels
    
    TPckgBuf<TSize> buffer( resolution );
    TAiwVariant resolutionVariant( buffer );
    TAiwGenericParam param( EGenericParamResolution, resolutionVariant );
    paramList->AppendL( param );
    
    const TUid KUidCamera = { 0x101F857A }; // Camera UID for S60 5th edition
    
    TBool result = fileClient->NewFileL( KUidCamera, *fileNames, paramList,
                                   ENewFileServiceImage, EFalse );
    
    if ( result )
        {
        CEikonEnv::InfoWinL(_L("Success"),_L(""));
        for(TInt i=0;iCount();i++)
           {
           TPtrC fileName=fileNames->MdcaPoint(i);
           }
    }
    else
        {
        CEikonEnv::InfoWinL(_L("Failed"),_L(""));
        }
    
    CleanupStack::PopAndDestroy( fileClient );
    CleanupStack::PopAndDestroy( paramList );
    CleanupStack::PopAndDestroy( fileNames );
    this code does not work I think one reason might be that I use 3rd FP2 SDK and there might be different camera UID than 5th edition SDK?


    miikkis

  8. #8
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Lauching Camera application like MMS composer

    ok I noticed that there is differed UID for every phone model? that isnt very good thing.
    how ever n95 uid worked ok.


    miikkis

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

    Re: Lauching Camera application like MMS composer

    read this thread: http://discussion.forum.nokia.com/fo...d.php?t=166812

    basically it would be better not to use UIDs.

  10. #10
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Lauching Camera application like MMS composer

    yep, I tried without UID but nothing happened. just like kkc_123 told in other thread.

    here is code what works on n78 but not on 6220 classic:
    Code:
            const TUid KUidCamera = 	{0x101ffa86}; //n95
    	TBool result( EFalse );
    
    	CNewFileServiceClient* fileClient = NewFileServiceFactory::NewClientL();
    	CleanupStack::PushL( fileClient );
    
    	CDesCArray* fileNames = new ( ELeave ) CDesCArrayFlat( 1 );
    	CleanupStack::PushL( fileNames );
    
    	CAiwGenericParamList* paramList = CAiwGenericParamList::NewLC();
    
    	
    	switch ( aEnum )
    		{
    		
    		case ENewFileServiceImage:
    		case ENewFileServiceVideo:
    			{
    			result = fileClient->NewFileL(	KUidCamera,
    							*fileNames, 
    							paramList,
    							aEnum, 
    							EFalse );
    
                     }
    I also tested removing KUidCamera and it didnt open camera either
    Last edited by miikkis; 2009-07-06 at 13:21. Reason: more text

Similar Threads

  1. custom SMIL MMS client application!
    By kmandal in forum General Messaging
    Replies: 0
    Last Post: 2005-10-17, 16:24
  2. MMS terminating application in Series60
    By ostache in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-06-10, 20:37
  3. 7210 MMS vs. 7650 MMS ...
    By poncha in forum General Messaging
    Replies: 1
    Last Post: 2002-12-19, 11:07
  4. filtering application as a recipient?
    By aidj in forum General Messaging
    Replies: 1
    Last Post: 2002-11-12, 06:26
  5. MMS Java Application for 7650
    By chris101lbg in forum General Messaging
    Replies: 1
    Last Post: 2002-10-22, 08:19

Posting Permissions

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