This topic has been closed. No new entries allowed.
Reason: You can now post comments on articles on Dev Opera
You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Opera Mobile 10 developer’s introduction
Opera has just released Opera Mobile 10 final, the latest version of our browser for high-end phones. In this article we take a look at the browser’s main new features, provide developers with information on making sites mobile-friendly, remote debugging with Opera Dragonfly, and give an overview of Opera Mobile 10’s new standards support.( Read the article )
Originally posted by romeouald:
meta viewport seems not working!
on 9.5 it works like a charm, but it looks like this feature is not supported in the new one?
is this a bug?
It is supported :-) Can you share a test case?
Originally posted by andreasbovens:
It is supported :-) Can you share a test case?
For example:
m.aff.hu
m.nol.hu
m.fn.hu
I tried with just '<meta name="viewport" content="width=device-width;"/>' without the 'initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' but it wasn't working either.
I am using an HTC Touch Diamond and the latest Opera Mobile installed (filename: Opera_Mobile_10_WM.cab exact file size: 5569483 B)
In the meantime, can you try replacing the semicolon delimiters with commas (or remove them when there is only one value), as semicolon delimiters are not per spec? Ie, use <meta name="viewport" content="width=device-width"/>
Originally posted by andreasbovens:
It works fine on my S60 build, but can confirm the behavior on the Touch Diamond is slightly different - let me investigate what is going on here.
In the meantime, can you try replacing the semicolon delimiters with commas (or remove them when there is only one value), as semicolon delimiters are not per spec? Ie, use <meta name="viewport" content="width=device-width"/>
Thanks for your quick reply!
I tried what you suggested, and it didn't help...
And the strange thing is, it's working on the HTC preinstalled Opera Mobile 9.5 (the same sites, even with the semicolon delimiters)
20. March 2010, 19:35:12 (edited)
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=240,initial-scale=1.0"/>Width Test </head> <body>![]()
<script language="JavaScript"> document.write('window.innerWidth: '+window.innerWidth+' \n'); document.write('document.documentElement.clientWidth: '+ document.documentElement.clientWidth+' \n'); </script> </body> </html>
This will display an image, stretched to 480 pixels wide, followed by the results of two separate JavaScript methods to report browser width (window.innerWidth & document.documentElement.clientWidth.)
Running this in Opera Mobile 10 (I can't find a build number under "About Opera") on a WVGA Touch Pro 2 accurately reported a width of 480 (both methods) but drew the picture twice as wide as the screen (i.e. I can only see the left half of the image.) As expected--because of the viewport meta tag--tapping the screen does not zoom.
One other observation that seems worth noting: if I hardcode the value of width in the viewport meta tag to 500 or greater, the zoom functionality is enabled and the page, when opened in a new tab, loads to show the full width of the image with much smaller text. (In this test case, window.innerWidth=480 & document.documentElement.clientWidth=500.)
Final note: Opera 9.7 (Build: 35758) has similar results, but not exactly the same. I won't detail the results here, other than to point out that loading the above page (with width=device-width) produces a reported width of 480 & 240 from the two methods, respectively.
I would like to know whether Opera Devices SDK 10.30
has the following capabilities.
1. 10-feet user interface conformance
2. Remote control navigation
3. Multi-tap or other CE-specific alpha-numeric input support
4. Client capability matching
5. User interface profiles management for usage on CE devices
Do opera have any test suite for HbbTV client application's (or products)
conformance to HbbTV standard?.
Regards,
Vimal
Originally posted by romeouald:
Originally posted by andreasbovens:
I've filed a bug report - let's see what our developers say :-)
Thank you! That's what I call customer support/service! It's definitely better than what I became in touch with this far!
Feedback for the time being is that it's probably a side-effect of the 200% zoom we apply by default on the (high-DPI) Touch Diamond. This is to make fonts etc. more readable, but does not seem to play so nice when combined with viewport + automatic text-wrapping, unfortunately. We're further looking into it.
Originally posted by Malcstewart:
Hi, I have a question about graphics in Opera Mobile 10. I'm using it on a Samsung Omnia i900, and images are being squashed - a problem not associated with viewing the same images in Opera Mobile 9.5. I have found as an example I need to adjust an image that is 210 x 210 pixels to say it is 220 x 220 pixels to make it render properly in Mobile 10, by which time it displays badly on other browsers. Any ideas please?
This is really odd - we have investigated this, and can't reproduce your problem. Do you have a specific test case URL we can look at? Cheers.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Hopefully someone can help me:
For some specific reasons, I need to know the device-width programmatically, via Javascript.
I tried all JS object/members I'm aware of, that is:
window.width
window.innerWidth
screen.width
screen.availWidth
but I cannot get a 100% reliable response on all handsets/Opera Mobile versions (9.5, 9.7, 9.80).
----
For example, on a HTC P3650 Cruise, device resolution 240x320, with Opera Mobi 9.80 I get:
window.innerWidth = 480
screen.width = 480
[UA = Opera/9.80 (Windows Mobile; WCE; Opera Mobi/WMD-50430; U; nb) Presto/2.4.13 Version/10.00].
----
On a Sony-Ericsson X1 Xperia, device resolution 480x800, with Opera Mobi 9.5 I get:
window.innerWidth = 960
screen.width = 240, or 400
[UA = Opera/9.5 (Microsoft Windows; PPC; Opera Mobi; U) SonyEricssonX1i/R2AA Profile/MIDP-2.0 Configuration/CLDC-1.1].
----
Can anybody point me to a 100% reliable way of getting the device width from Javascript?
Thanks in advance
Marco
PS: Something similar has been reported in this post:
http://stackoverflow.com/questions/1974703/meta-viewport-device-width-wrong-width-small-on-opera-mobile-9-7-10-works
Originally posted by mgillespie:
Without Android support Opera Mobile 10 is on a loser. Android is the biggest browing mobile platform...
It's on the way.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by maleko1970:
For some specific reasons, I need to know the device-width programmatically, via Javascript.
I tried all JS object/members I'm aware of, that is:
window.width
window.innerWidth
screen.width
screen.availWidth
I've investigated this problem with some of our developers, and they've said that screen.width should be the best one for you to use. But you say you're getting inconsistencies, with it sometimes returning different results? what tends to cause the results to differ...or does it just tend to be pretty random? Have you got a code sample we can look at?
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by tafrehzan:
hi
Opera App for iphone not supported persian language
persian language same as arabic lang
in opera app iphone characters have space but its not true
i can supported opera 4 mobile persian lang how i can do it
Hi there,
It looks like there is a known issue with right-to-left languages on Mini iPhone at the moment, which we're investigating, so it should be fixed soon. Also, support for ligatures will hopefully be improved soon.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by andreasbovens:
Originally posted by romeouald:
Originally posted by andreasbovens:
I've filed a bug report - let's see what our developers say :-)
Thank you! That's what I call customer support/service! It's definitely better than what I became in touch with this far!
Feedback for the time being is that it's probably a side-effect of the 200% zoom we apply by default on the (high-DPI) Touch Diamond. This is to make fonts etc. more readable, but does not seem to play so nice when combined with viewport + automatic text-wrapping, unfortunately. We're further looking into it.
Hi Andreas
Any update about this issue?
I am having the same problem on Opera 9.5 & 10 regarding the side effect of the 200% zoom...
Is there a way to disable this 200% zoom by code?
Thanks
Here's a few of our questions:
Double-tap to zoom? Is this working? Doesn't seem to for us. And there's no other control I could find to adjust the zoom manually, other than going through several clicks and a scroll to select a zoom size option from a list in the system settings area. This is too painful for casual browsing where zoom is frequently adjusted.
Shortcuts... love the idea, but they are based on the notion that the device has a phone keypad with the # * and number keys, and our device doesn't - its pure touch. Any thoughts? Note that most are not needed, since the icons are well designed and placed for most functions. However, that zoom thingy... we'd really love to see an additional icon with a magnifier on the bottom toolbar that displays a slider to zoom in/out (we saw one on an earlier version of Opera on a YouTube video).
Is there a file-based preferences file for the mobile 10 emulator, similar to opera6.ini? From one of your web pages, it says "The easiest way to see where opera6.ini and other Opera files are located on your computer, is to go to Help > About Opera" - however, when I do that from the emulator, no references to the preferences file appears. This comes into play because there are some default settings we'd like to change if we were to consider deploying opera mobile. For example, since the software is not actually being hosted in a mobile phone-type form factor, the useragent string causes some sites (such as abcnews.com) to render using their 'm' mobile format, which looks silly on a 7" screen.
Lastly, our major priority is getting Flash, any Flash, to run within our present configuration (see first line). We have not yet been able to determine if a Flash Lite version (or dare I say, a full Flash version) exists that will run within the emulator. Most references point to the mobile phone download page, but our devices is not a. Any info here would help tremendously. We wouldn't mind manually hacking things together for now.
Thanks
Originally posted by ReplayComplete:
We have the mobile 10 emulator running on an x86 Atom touch device running Ubuntu Mobile (lpia). Very sweet lookin' app
This sounds very cool! As for your questions, I'll talk to the Opera Mobile folks to see if we can get you some answers.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
The thing is, Flash installs and works easily in normal (full) Opera. Also, the various videos I've seen show Opera Mobile 10 running Flash (Lite) out-of-the-box. So, I'm wondering... is there something hard-wired in the Opera Mobile emulator that is blocking the use of plugins? Or more specifically, Flash plugins?
Please help.
Originally posted by ReplayComplete:
I've installed the the Opera Mobile 10 emulator on both Windows and Ubuntu and would like to see what Flash inside of the emulator would look like running on fast hardware. However, there seems to be something disconnected internally. I have spent the better part of several long days researching and trying everything I possibly could think of to enable plugin support. You name it, I've probably tried it - including enabling the Advanced/Plug-ins setting, pointing the User Prefs/Plugin Path everywhere I could think of (even at the "full" Opera plugins folder), downloaded numerous libraries, sym-linked everything everywhere, and so on. I've pretty much run out of ideas.
The thing is, Flash installs and works easily in normal (full) Opera. Also, the various videos I've seen show Opera Mobile 10 running Flash (Lite) out-of-the-box. So, I'm wondering... is there something hard-wired in the Opera Mobile emulator that is blocking the use of plugins? Or more specifically, Flash plugins?
Hi there,
I 'm pretty sure we don't support Flash in Opera Mobile 10. Where have you seen these videos? ;-)
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by ReplayComplete:
We have the mobile 10 emulator running on an x86 Atom touch device running Ubuntu Mobile (lpia). Very sweet lookin' app!
Here's a few of our questions:
Hi! I've got some answers to your questions:
Originally posted by ReplayComplete:
Double-tap to zoom? Is this working? Doesn't seem to for us. And there's no other control I could find to adjust the zoom manually, other than going through several clicks and a scroll to select a zoom size option from a list in the system settings area. This is too painful for casual browsing where zoom is frequently adjusted.
There is currently no way to adjust zoom levels manually; you are either zoomed in or zoomed out. This is by design, but changes might be considered in the future.
Double-tap to zoom out should work, though - here's an explanation of how:
First we will try to center the paragraph double-tapped onto, then on the next double-tap (on the same paragraph), we will try to zoom out. There could be bugs here, though.
Originally posted by ReplayComplete:
Shortcuts... love the idea, but they are based on the notion that the device has a phone keypad with the # * and number keys, and our device doesn't - its pure touch. Any thoughts? Note that most are not needed, since the icons are well designed and placed for most functions. However, that zoom thingy... we'd really love to see an additional icon with a magnifier on the bottom toolbar that displays a slider to zoom in/out (we saw one on an earlier version of Opera on a YouTube video).
The emulator is designed to work on many different platforms, so not all features might be relevant across the board.
For zoom - see above.
Originally posted by ReplayComplete:
Is there a file-based preferences file for the mobile 10 emulator, similar to opera6.ini? From one of your web pages, it says "The easiest way to see where opera6.ini and other Opera files are located on your computer, is to go to Help > About Opera" - however, when I do that from the emulator, no references to the preferences file appears. This comes into play because there are some default settings we'd like to change if we were to consider deploying opera mobile. For example, since the software is not actually being hosted in a mobile phone-type form factor, the useragent string causes some sites (such as abcnews.com) to render using their 'm' mobile format, which looks silly on a 7" screen.
For editing preferences directly in Opera, type opera:config in the address bar (no http or www in front).
See http://www.opera.com/support/usingopera/operaini/#ua for spoofing the UA string.
The information is slightly outdated, though; the file is just called opera.ini.
Originally posted by ReplayComplete:
Lastly, our major priority is getting Flash, any Flash, to run within our present configuration (see first line). We have not yet been able to determine if a Flash Lite version (or dare I say, a full Flash version) exists that will run within the emulator. Most references point to the mobile phone download page, but our devices is not a. Any info here would help tremendously. We wouldn't mind manually hacking things together for now.
The current release does not support Flash, unfortunately.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by ReplayComplete:
I've installed the the Opera Mobile 10 emulator on both Windows and Ubuntu and would like to see what Flash inside of the emulator would look like running on fast hardware. However, there seems to be something disconnected internally. I have spent the better part of several long days researching and trying everything I possibly could think of to enable plugin support. You name it, I've probably tried it - including enabling the Advanced/Plug-ins setting, pointing the User Prefs/Plugin Path everywhere I could think of (even at the "full" Opera plugins folder), downloaded numerous libraries, sym-linked everything everywhere, and so on. I've pretty much run out of ideas.
The thing is, Flash installs and works easily in normal (full) Opera. Also, the various videos I've seen show Opera Mobile 10 running Flash (Lite) out-of-the-box. So, I'm wondering... is there something hard-wired in the Opera Mobile emulator that is blocking the use of plugins? Or more specifically, Flash plugins?
Ok - I have a more conclusive answer for you - we support Flash at a basic level on Opera Mobile 10 for Windows Mobile touchscreen phones only.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by chrismills:
After playing with it some more, I was in fact able to see the double-tap zoom in/out feature working when opening and viewing large *images* only. However, I have not been able to replicate the behavior described above on any standard HTML content. Pages that seem to cater to a 1024 resolution won't auto-zoom in/out with OM-10 for slightly smaller displays (e.g., 800x600), no matter how many times I double-tab, or where. May want to pass this info along to the dev team for review.Double-tap to zoom out should work, though - here's an explanation of how:
First we will try to center the paragraph double-tapped onto, then on the next double-tap (on the same paragraph), we will try to zoom out. There could be bugs here, though.
Originally posted by chrismills:
Understood. I thought it was also up and active on the Symbian/S60 (and the forthcoming Android port), but I guess I was mistaken. And, to clarify, I'm assuming basic level==Flash Lite?Ok - I have a more conclusive answer for you - we support Flash at a basic level on Opera Mobile 10 for Windows Mobile touchscreen phones only.
in 104 days before this post you said :
It looks like there is a known issue with right-to-left languages on Mini iPhone at the moment, which we're investigating, so it should be fixed soon. Also, support for ligatures will hopefully be improved soon.
now after 104 days we dont seen update and fix and whats mean of soon ?
opera mini is my favo browser in pc and when i seen it in iphone i was very happy and day and day waiting for updating for persian lang but not
pls if you dont have any fix or update say to us to iraian user find another browser with this greats ablities ( i know replacement s very hard )
and if you can fix it pls do it dears
i cant write for privacy how much in iran we need that
thank you
Originally posted by Persian-elf:
Dear Dev Teamin 104 days before this post you said : It looks like there is a known issue with right-to-left languages on Mini iPhone at the moment, which we're investigating, so it should be fixed soon. Also, support for ligatures will hopefully be improved soon.now after 104 days we dont seen update and fix and whats mean of soon ?
I'm sorry about this. I will investigate this again, and see what has become of the fix ;-(
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by Persian-elf:
Dear Dev Teamin 104 days before this post you said : It looks like there is a known issue with right-to-left languages on Mini iPhone at the moment, which we're investigating, so it should be fixed soon. Also, support for ligatures will hopefully be improved soon.now after 104 days we dont seen update and fix and whats mean of soon ?
Hi there,
I've asked the dev team, and they are asking for some more details - which problems still exist? Which ones are you referring to? Can you point me to screenshots detailing the problem, maybe?
many thanks,
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Originally posted by andreasbovens:
Feedback for the time being is that it's probably a side-effect of the 200% zoom we apply by default on the (high-DPI) Touch Diamond.
Hi, I use Samsung Omnia 2 (I8000) and Opera Mobile 10. There is still problem with many webpages width. They are very often too wide (twice wider than screen width).
Example pages:
portal.opera.com/download
mceneo.pl
https://m.mbank.pl
and other webpages made for touch phones.
When I use Opera built in the phone, width works well, but I would like to use Opera Mobile 10, because it's better.
Is there any way to fix it?
Originally posted by johnekj:
Hi, I use Samsung Omnia 2 (I8000) and Opera Mobile 10. There is still problem with many webpages width.
Hrm, I tested all of these and they look fine on my Opera Mobile install. Can you give me a link to some screenshots?
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com