×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Bangkok
    Posts
    84

    Scalable UI (UNI-10)

    My application is showing fixed-sized animation image (For example, I will show animation image 176x132 pixels in Nokia6680 and 240x215 pixels in NokiaN71). I am afraid that my application will not pass Symbian Signed criteria in Scalable UI (UNI-10).

    Please advice me how to workaround this criteria.

    Is it possible that my application will support only one orientation and will not using ScalableUI feature?

    How can I inform user that my app is only supported only one orientation?

    Thank you in advance.
    Sawaddee krab.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,562

    Re: Scalable UI (UNI-10)

    Quote Originally Posted by junmobus View Post
    My application is showing fixed-sized animation image (For example, I will show animation image 176x132 pixels in Nokia6680 and 240x215 pixels in NokiaN71). I am afraid that my application will not pass Symbian Signed criteria in Scalable UI (UNI-10).

    Please advice me how to workaround this criteria.

    Is it possible that my application will support only one orientation and will not using ScalableUI feature?

    How can I inform user that my app is only supported only one orientation?

    Thank you in advance.

    Check if this helps you!!

  3. #3
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Bangkok
    Posts
    84

    Re: Scalable UI (UNI-10)

    Thank you for Symbian_Neil. That information looks like how to support scalableUI and screen orientation.

    but

    Can I workaround this criteria because my app don't support scalableUI and screen orientation? For example, showing dialog when User change orientation.

    How can I pass "Scalable UI (UNI-10)" if my application don't support "scalable UI and screen orientation"?
    Last edited by junmobus; 2008-05-25 at 07:28.
    Sawaddee krab.

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Scalable UI (UNI-10)

    Many of the Symbian Signed test criteria have exceptions and some of the criteria can be waived with manufacturer's approval. If it does not make sense for your application to support scalable UI and if you take precautions in informing the end-user about this limitation then you can apply for a waiver before submitting the application to Symbian Signed.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Bangkok
    Posts
    84

    Re: Scalable UI (UNI-10)

    Thank you Itomuta so much. It is the last criteria that I have no idea how to workaround with.

    Could you please give me some entry point of code capturing screen orientation event so I can write code showing information dialog?

    I have to write fuction HandleResourceChange() and SizeChanged() in all containers of my application????
    Code:
    void CJourneyCMenu::HandleResourceChange(TInt aType)
    {
    
            //show dialog that this app is not supported ScalableUI and screen orientation
            //if user clicks no 
            //return;
            //if user clicks yes
            //do the following code
    	CCoeControl::HandleResourceChange(aType);
    	if (aType == KEikDynamicLayoutVariantSwitch)
    	{
    		// User switched the layout configuration 
    		// or the screen resolution
    		// -> we have to recreate the layout
    		SetExtentToWholeScreen();	// Results in a call 
    		                            // of SizeChanged()
    	}
    }
    
    void CJourneyCMenu::SizeChanged()
    {
    }
    The idea to pass this criteria showing information dialog to user is OK but I have no idea about how to code (code that workaround this criteria and can run in all phones). Please advice me. Thank you in advance.
    Last edited by junmobus; 2008-05-25 at 16:29.
    Sawaddee krab.

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Scalable UI (UNI-10)

    Code:
    void CJourneyCMenu::HandleResourceChange(TInt aType)
    {
    	CCoeControl::HandleResourceChange(aType);
    	if (aType == KEikDynamicLayoutVariantSwitch)
    	{
    		// User switched the layout configuration 
    		// or the screen resolution
    		
    		// verify if you support the current layout
    		// if so update the layout
    		// if not display the message and ask the user
    		// to switch to a supported mode or close the app
    	}
    }
    See the scalable UI example on Forum Nokia.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Bangkok
    Posts
    84

    Re: Scalable UI (UNI-10)

    Thank you for Itomuta. Is this acceptable ?
    Code:
    void CMyAppUi::HandleResourceChange(TInt aType)
    {
    	CAknAppUi::HandleResourceChangeL(aType);
    	if (aType == KEikDynamicLayoutVariantSwitch)
    	{
    
    		//show Dialog
    		TInt result = ShowQueryDialogL(_L("This application is not supported screen orientation, Yes for Continue or No for exit application?"));		 
       		//if press no
       		if(result == 0){ 
    			Exit();
       		}		
       		                            
    	}
    }
    Sawaddee krab.

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Scalable UI (UNI-10)

    You should not display that message each time the layout/orientation changes. You should try to understand what the current layout is and whether you support it or not. Only if you do not support it then display the warning message.

    Also, the least you can do for the unsupported layouts is to display a clean background, that would hide your (expectedly) defective layout.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Bangkok
    Posts
    84

    Re: Scalable UI (UNI-10)

    Thank you Itomuta. I will try it again.
    Sawaddee krab.

Similar Threads

  1. doubts on symbian signing UNI - 10 testcase
    By vinayakak in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2008-04-12, 22:00
  2. CAknGrid and Scalable UI (not so scalable?)
    By jpetersson in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-10-24, 16:06
  3. Replies: 13
    Last Post: 2007-02-12, 03:43
  4. Scalable icons and helptexts
    By svdwal in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2006-07-19, 09:45
  5. * Scalable UI development on S60 * learning path published
    By jaaura in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-02-28, 11:06

Posting Permissions

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