You Are Here:

Community: Developer Discussion Boards

#1 Old Question Portrait/Landscape N95 - 2007-09-06, 12:31

Join Date: Jun 2007
Posts: 17
IkerJ
Offline
Registered User
Hi, I'm starting to write an application that will reproduce video that is being streamed through a 3G connection.
I intend to develop it for a N95, but I don't have one yet. I'd like to know a few things before buying it:
- Does it support landscape and portrait mode for a Midlet?
- If so, how can I detect it?
- What will trigger the change (user moving the phone, application command)?
- Is there any document that gives guidelines on how to develop app switching between different screen resolutions at runtime?
- Do I have to rotate the video? is that done automagically when the screen changes mode?

Thanks!
Iker.
Reply With Quote

#2 Old Re: Portrait/Landscape N95 - 2007-09-06, 13:52

Join Date: Aug 2005
Posts: 44
nimishjain15882
Offline
Registered User
hi

As of now there is no way to set the landscape mode of the video that is to be displayed. Setting to full screen mode is dependent on the phone implementation.

regards
nimish
Reply With Quote

#3 Old Re: Portrait/Landscape N95 - 2007-09-06, 16:06

Join Date: Jun 2007
Posts: 17
IkerJ
Offline
Registered User
Well, I've played with a N92 and a N70 and both support fullscreen mode, I'm almost sure that N95 supports it as well. What I wanted to ask was if the phone would display a MIDlet correctly when working in landscape mode (which I'm not sure it does yet) and while in that mode I can expect that the video would be correctly displayed, not rotated 90 degrees.
Reply With Quote

#4 Old Unhappy Re: Portrait/Landscape N95 - 2007-09-10, 11:14

Join Date: Jun 2007
Posts: 17
IkerJ
Offline
Registered User
Nobody has programmed for the N95 yet and can give me some hints?
Reply With Quote

#5 Old Re: Portrait/Landscape N95 - 2007-09-10, 13:04

Join Date: Jun 2007
Posts: 534
Location: Mumbai
Send a message via Yahoo to prakash.raman
prakash.raman's Avatar
prakash.raman
Offline
Super Contributor
Well buddy N95 do support both landscape and portrait mode. and u can get event for this by protected void javax.microedition.lcdui.DisplayablesizeChanged(int w, int h) .
Reply With Quote

#6 Old Smile Re: Portrait/Landscape N95 - 2007-09-10, 18:17

Join Date: Jun 2007
Posts: 17
IkerJ
Offline
Registered User
Quote:
Originally Posted by prakash.raman View Post
Well buddy N95 do support both landscape and portrait mode. and u can get event for this by protected void javax.microedition.lcdui.DisplayablesizeChanged(int w, int h) .
And how does the phone change from portrait to landscape? just moving it? does the phone detect how it is hold? or is there a button to switch modes?
Reply With Quote

#7 Old Re: Portrait/Landscape N95 - 2007-09-11, 00:16

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
A Symbian native app can change the screen orientation with Orientation Mode API. A MIDlet cannot do that.
How to see that on real device? For example slide the media keys out and see how the screen orientation changes. If you now change some other application to the foreground, the landscape orientation is maintained.

There are no sensors to detect how the phone is held.

Hartti
Reply With Quote

#8 Old Smile Re: Portrait/Landscape N95 - 2007-09-11, 10:46

Join Date: Jun 2007
Posts: 17
IkerJ
Offline
Registered User
Thanks very much for all the answers, I have a much clearer idea of how this works now.
Reply With Quote

#9 Old Re: Portrait/Landscape N95 - 2007-09-12, 10:26

Join Date: Nov 2006
Posts: 9
steppi
Offline
Registered User
I just did an application like this on a N95.

As said, you can't set the screen orientation in J2ME (hey nokia, feature request! ;-) ).

But the phone automatically changes the orientation when you slide out the media keys. It also triggers the sizeChanged method in J2ME where you can load new background images or whatever.

In this case the Canvas.LEFT/RIGHT etc. are also changed to landscape orientation.

So if you develop an application, that's very dynamic in the way it handles the screen and keys, it will run just fine in both modes (i testet that with an older application of mine)

But if you want to build a videoplayer that runs on many devices in portrait and landscape mode... have fun learning c.

Sensors are not available yet, but there is JSR 256 coming up.
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
Another N95 and Wifi problem ric9887 Wired and Wireless interfaces 3 2009-07-15 09:05
ActivateViewL to open Settings on N95 dracula78 Symbian User Interface 5 2008-12-10 11:09
Citymap (with GPS feature) application for Nokia N95 and 6110 navigator vgps General Discussion 4 2008-06-18 03:22
N95 Some Questions & Suggestions subzero_brighton General Discussion 0 2007-06-22 16:37
Could not open local link 3gp file in Nokia N95 Browser? xiatao General Browsing 5 2007-05-25 11:00

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