You Are Here:

Community: Developer Discussion Boards

#1 Old How to rotate annunciator and command action area in N95 using j2me... - 2009-03-03, 12:01

Join Date: Nov 2008
Posts: 16
aparna_bhure
Offline
Registered User
Hi,

I am working on Nokia N95, which supports landscape and portrait mode. I want to restrict my application to run in portrait mode only whether device is in landscape mode. I can rotate image and text at angle of 270 using Sprite.TRANS_ROT270 while device is in landscape mode, but not able to rotate command area or annunciator area as portrait.

Is there any way to rotate this or how can we restrict our application to go into landscape mode ...?

Thank you,
Regards,
Aparna
Reply With Quote

#2 Old Re: How to rotate annunciator and command action area in N95 using j2me... - 2009-03-03, 12:14

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi Aparna,

check out this related thread:

http://discussion.forum.nokia.com/fo...d.php?p=460123

Basically, you can force a specific display orientation by using "Nokia-MIDlet-Canvas-Scaling-Orientation-Switch" JAD property only starting from S60 3rd edition FP2 devices, while N95 is a FP1 phone.

Anyway, about the workaround you're using, you could try by using fullscreen Canvas displayables and custom commands, to totally hide "standard" UI elements.

Pit


www.jappit.com - mobile and web blog
Reply With Quote

#3 Old Re: How to rotate annunciator and command action area in N95 using j2me... - 2009-03-18, 12:26

Join Date: Nov 2008
Posts: 16
aparna_bhure
Offline
Registered User
Hi Pit,

I have tried with setFullScreen Mode, it is working fine for all screens, excepts "Menu Popup" screen. In my application we are using Commands with more then two options, when I try to slide a phone when "Menu items screen" is on, application behave differently, it goes to sizeChanged() function once; where I write the following code:

protected void sizeChanged(int w, int h)
{
if(w >=320 && h <= 240)
{
isSliderOn = true;
setFullScreenMode(true);
}
else
{
setFullScreenMode(false);
isSliderOn = false;
}
}

Due to setFullScreenMode(true), some garbage screen appears(ie the screen from where we slide the phone) and still the menu popup is activated in background. And when I close the slider control doesn't go to the sizeChanged() function so the same screen appears with popup activated in background.

Is there any event through which we can get Popup is on or not in canvas?

I have also try to solve it without setting canvas fullscreen mode, at this time when control goes to sizeChanged() I have removed all commnads added in the canvas and when I resumed back I am adding them again, but here when I am removing the commands, commands get removed one by one ie user can see the removale. How can I remove all commands at once? as we don't have removeAllCommands() in canvas.

Please let me know workaround for this.

Thank
Aparna
Reply With Quote

#4 Old Re: How to rotate annunciator and command action area in N95 using j2me... - 2009-04-20, 07:18

Join Date: Nov 2008
Posts: 16
aparna_bhure
Offline
Registered User
Hi,

I have solved it by Canvas Switching.

Regards,
Aparna
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ