Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Registered User microsoft2's Avatar
    Join Date
    Jan 2006
    Posts
    279
    Hello Sirs,
    In my application I use ReadUserData capability to check for unread emails and smses. There is no such option in the list bellow, so can I skip the privacy dialog?
    Also, is this statement text to be followed word by word?

    Code:
    TITLE: For your information
    
    BODY: This application will make use of the following features of your
    phone. If you have any questions or concerns, please contact us at
    
    e-mail address>:
    
    . Bluetooth to connect to other Bluetooth-enabled devices
    . Sending SMS messages
    . Sending MMS messages
    . Making phone calls
    . Making a connection to the Internet
    . Allowing you to add or edit contacts
    . Reading existing information from your contacts database
    . Recording sounds using your phone’s microphone

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,671
    I think you can use your own wording, at least I have done that earlier and never got any complaints about it. Also it is good idea to include everything that you are not sure of, I don't think they would fail symbian signing if there is too much info, but they will if there is not enough.

    yucca

  3. #3
    Registered User microsoft2's Avatar
    Join Date
    Jan 2006
    Posts
    279
    Thank you Yucca!
    I will use my own words, similar to the upper statement, although I find the statement not necessary for my program.

  4. #4
    Regular Contributor suterma's Avatar
    Join Date
    Mar 2003
    Posts
    113
    SybianYucca, Microsoft2,

    how have you done to display this text? For me, this is too much for just using a simple dialog, and I have not found out so far a possibility like a scrollable text.

    I would prefer something like a big dialog with slighly smaller text and a option to scroll it, on Series60, for the N80. How to do it?

    br, Marcel

  5. #5
    Registered User microsoft2's Avatar
    Join Date
    Jan 2006
    Posts
    279
    I am using the about dialog box
    Code:
    RESOURCE DIALOG R_ABOUT_DIALOG
    {
    	flags = EAknGeneralQueryFlags;
    	buttons = R_AVKON_SOFTKEYS_CLOSE;
    	items = 
    	{
    		DLG_LINE
    		{
    			type = EAknCtPopupHeadingPane;
    			id = EAknMessageQueryHeaderId;
    			control = AVKON_HEADING
    			{
    				label = text_about_heading_txt;
    			};
    		
    		},
    		DLG_LINE
    		{
    			type = EAknCtMessageQuery;
    			id = EAknMessageQueryContentId;
    			control = AVKON_MESSAGE_QUERY
    			{
    				message = text_about_body_txt;
    			};
    		}
    	}; //end of items
    }
    Code:
    	if (showPrivacyDialog)
    	{
    		HBufC* text = CEikonEnv::Static()->AllocReadResourceLC(R_TEXT_PRIVACY_BODY);
    		CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(*text);
    		dlg->PrepareLC(R_ABOUT_DIALOG);
    		dlg->Heading()->SetTextL(GetR(R_TEXT_PRIVACY_HEADING));
    		TInt res = dlg->RunLD();
    		CleanupStack::PopAndDestroy();//-text
    
    		if (aFirstTime && EAknSoftkeyClose == res)
    		{//do not show again
    				CDictionaryStore* iniFile = CDictionaryFileStore::OpenLC(CCoeEnv::Static()->FsSession(), KSettingsFileName, TUid::Uid(0x200050BF));
    				//+iniFile
    				Utils::SaveIntL(iniFile, EShowPrivacyDialog, EFalse);
    
    				CleanupStack::PopAndDestroy();//-iniFile				
    		}
    	}

  6. #6
    Regular Contributor suterma's Avatar
    Join Date
    Mar 2003
    Posts
    113
    Hi,

    in the meantime I have found something very similar and it works perfect.

    br, Marcel

  7. #7
    Registered User richy's Avatar
    Join Date
    Aug 2006
    Posts
    4
    Hi,

    Are there any translations of the standard privacy statement (see first post in this thread) for other languages.
    My app requires German, French and Italian. I can get it translated, but a single translation used by all apps would be better.

  8. #8
    Registered User davidmaxwaterman's Avatar
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386
    Can you tell me where these pieces of code should go, in a typical application?

    I assume this dialog has to appear before anything else or something.

    I have tried to display something - I put it in my container:raw() function, but I get a WSERV 10 panic...

    Any help appreciated.

    Max.

    Quote Originally Posted by microsoft2
    I am using the about dialog box
    Code:
    RESOURCE DIALOG R_ABOUT_DIALOG
    {
    	flags = EAknGeneralQueryFlags;
    	buttons = R_AVKON_SOFTKEYS_CLOSE;
    	items = 
    	{
    		DLG_LINE
    		{
    			type = EAknCtPopupHeadingPane;
    			id = EAknMessageQueryHeaderId;
    			control = AVKON_HEADING
    			{
    				label = text_about_heading_txt;
    			};
    		
    		},
    		DLG_LINE
    		{
    			type = EAknCtMessageQuery;
    			id = EAknMessageQueryContentId;
    			control = AVKON_MESSAGE_QUERY
    			{
    				message = text_about_body_txt;
    			};
    		}
    	}; //end of items
    }
    Code:
    	if (showPrivacyDialog)
    	{
    		HBufC* text = CEikonEnv::Static()->AllocReadResourceLC(R_TEXT_PRIVACY_BODY);
    		CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(*text);
    		dlg->PrepareLC(R_ABOUT_DIALOG);
    		dlg->Heading()->SetTextL(GetR(R_TEXT_PRIVACY_HEADING));
    		TInt res = dlg->RunLD();
    		CleanupStack::PopAndDestroy();//-text
    
    		if (aFirstTime && EAknSoftkeyClose == res)
    		{//do not show again
    				CDictionaryStore* iniFile = CDictionaryFileStore::OpenLC(CCoeEnv::Static()->FsSession(), KSettingsFileName, TUid::Uid(0x200050BF));
    				//+iniFile
    				Utils::SaveIntL(iniFile, EShowPrivacyDialog, EFalse);
    
    				CleanupStack::PopAndDestroy();//-iniFile				
    		}
    	}

  9. #9
    Regular Contributor suterma's Avatar
    Join Date
    Mar 2003
    Posts
    113
    davidmaxwaterman,

    I only show it after construction of the AppUi, using a timer with a slight delay. I think it is OK, if the user sees it, before he does some action with the app. We got our app singned like this.

    br, Marcel

  10. #10
    Registered User microsoft2's Avatar
    Join Date
    Jan 2006
    Posts
    279
    Mine is in ConstructL before constructing the views, without a timer (I am using CAknViewAppUi) also I have it in Options near About (it must be shown only once on start up), so the user can show it again.

    PS: Actually one user really contacted me to ask about the privacy statement )

  11. #11
    Registered User davidmaxwaterman's Avatar
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386
    Quote Originally Posted by microsoft2
    Mine is in ConstructL before constructing the views, without a timer (I am using CAknViewAppUi) also I have it in Options near About (it must be shown only once on start up), so the user can show it again.

    PS: Actually one user really contacted me to ask about the privacy statement )
    OK, I tried to move it to void CGalleryAppUi::ConstructL() which inherits CAknViewAppUi. My code thus far is :


    Code:
    {
        TBufC<20> textBuf( _L("Hello") );
        //HBufC* text = CEikonEnv::Static()->AllocReadResourceLC(R_STR_PRIVACY_TITLE);
        CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(textBuf);
        dlg->PrepareLC(R_STR_PRIVACY_TITLE);
        dlg->Heading()->SetTextL(textBuf.Ptr());
        TInt res = dlg->RunLD();
        CleanupStack::PopAndDestroy();//-text
    }
    but when I run it, I get a BAFL 4 panic.

    Any idea would be gratefully received. I'm trying to put it in for testing, and this is (hopefully) the last complaint they have...

    Max.

  12. #12
    Registered User microsoft2's Avatar
    Join Date
    Jan 2006
    Posts
    279
    :-D
    dlg->PrepareLC(R_STR_PRIVACY_TITLE);

  13. #13
    Registered User davidmaxwaterman's Avatar
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386
    Quote Originally Posted by microsoft2
    :-D
    dlg->PrepareLC(R_STR_PRIVACY_TITLE);
    OK, ok

    So, now I get a dialogue box of some kind. My code is now :

    Code:
    CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(*Tools::readLC(R_STR_PRIVACY_STATEMENT));
    dlg->PrepareLC(R_ABOUT_DIALOG);	dlg->QueryHeading()->SetTextL(Tools::readLC(R_STR_PRIVACY_TITLE)->Des());
    TInt res = dlg->RunLD();
    CleanupStack::PopAndDestroy(2);
    and it displays my text ok, but when I click 'Close', I get a KERN-EXEC 3.

    Any quick ideas?

    BTW, Tools::readLC() just does return CCoeEnv::Static()->AllocReadResourceLC(stringResourceID);
    I assume I need to do a PopAndDestroy(2) since I do two of the above; right?

    Max.

  14. #14
    Registered User davidmaxwaterman's Avatar
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386
    For the record, I ended up removing a fair bit of the example code above, ending up with :

    Code:
    CAknMessageQueryDialog* dlg = new(ELeave) CAknMessageQueryDialog;
    dlg->ExecuteLD( R_ABOUT_DIALOG );
    I put the RESOURCE DIALOG R_ABOUT_DIALOG in my data/<app>.rss file, and replaced the 'text_about_heading_txt' and 'text_about_body_txt' bits with the strings I had defined (in the same file, and also in the language include files inc/<app>.l10, etc).

    I did also change "flags = EAknGeneralQueryFlags" to "flags = EEikDialogFlagWait" - I'm not sure if that's relevant or not...whatever works, I think.

    Max.

  15. #15
    Registered User patrickfrei's Avatar
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    438
    What do you think:

    Is it also possible to add a privacy statement in a similar way as adding the symbian freeware dialog? I.e. the statement will be shown only once during the installation of the application... no code has to be written and no ini file has to be used...

Page 1 of 2 12 LastLast

Similar Threads

  1. Update SQL statement doesn't work
    By asheeshv in forum Symbian C++
    Replies: 4
    Last Post: 2008-12-11, 05:41
  2. what is wrong with this statement ???
    By claudiuandreii in forum Python
    Replies: 3
    Last Post: 2006-05-15, 16:12
  3. Escaping quotes in sql statement
    By scompt in forum Python
    Replies: 0
    Last Post: 2005-05-24, 20:54
  4. How to perform if statement on database
    By zerglim in forum Symbian C++
    Replies: 3
    Last Post: 2004-07-03, 05:23
  5. rendering in select statement
    By grimault in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2003-07-04, 04:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved