×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    26

    Check Landscape does supported by device or not

    Hi all,
    I want make an application on 3rd editon that have feature to flip screen (landscape/potrait).
    Seem some 3rd editon phone (like E61) can't do that flip screen stuff, I want my program to check is the device support flip screen or not.
    Does anybody know how to do this?? What API i should use?

    Thanks b4

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

    Re: Check Landscape does supported by device or not

    maybe CWsScreenDevice and its GetRotationsList()-function would do the trick.

    yucca

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    26

    Re: Check Landscape does supported by device or not

    Thanks for the answer symbianyucca...
    I have difficulty to use that function. My code is like this:

    Code:
    CWsScreenDevice* tWsScreenDevice = iCoeEnv->ScreenDevice();
    CArrayFixFlat< TInt >* aRotationList = new ( ELeave ) CArrayFixFlat< TInt > (1);
    CleanupStack::PushL(aRotationList);
    TInt err = tWsScreenDevice->GetRotationsList(tWsScreenDevice->CurrentScreenMode(),aRotationList);
    if(err==KErrNone)
    	{
    	for(TInt i=0;i<aRotationList->Count();i++)
    		{
    		switch(aRotationList->At(i))
    			{
    			case CFbsBitGc::EGraphicsOrientationRotated270:
    			case CFbsBitGc::EGraphicsOrientationRotated180:
    			case CFbsBitGc::EGraphicsOrientationRotated90:
    				{
    				CleanupStack::PopAndDestroy(aRotationList);
    				return ETrue;
    				}
    			}
    		}
    	}
    CleanupStack::PopAndDestroy(aRotationList);
    return EFalse;
    Because I use tWsScreenDevice->CurrentScreenMode() as parameter 1, it make me get EFalse if the screen is not in landscape mode and ETrue if the screen is in landscape mode. What I have to use if I want to fill it with landscape screen mode although the screen is in potrait mode ??
    .... Or is my code is wrong ??

    Thanks again..

Similar Threads

  1. How To Develope Vibration on MIDP1.0 supported device
    By sachinwarang in forum General Development Questions
    Replies: 1
    Last Post: 2006-03-07, 16:35
  2. How To Develope Vibration on MIDP1.0 supported device
    By sachinwarang in forum General Development Questions
    Replies: 1
    Last Post: 2006-03-07, 15:04
  3. How To Develope Vibration on MIDP1.0 supported device
    By sachinwarang in forum Mobile Java General
    Replies: 1
    Last Post: 2006-03-07, 13:37
  4. How To Develope Vibration on MIDP1.0 supported device
    By sachinwarang in forum Streaming and Video
    Replies: 0
    Last Post: 2006-03-07, 12:41
  5. Which is the best Nokia j2me supported device?
    By fbebic in forum Mobile Java General
    Replies: 1
    Last Post: 2002-07-11, 11:03

Posting Permissions

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