mShell Blog

29
Feb

Planned Maintenance

by Luke

We are moving our servers and will have a longer downtime from Saturday (1.3.08) to Sunday (2.3.08) of www.m.shell.net and the registering processes. Well try to keep it as short as possible!

Thanks for your understanding. 

Currently rated 4.3 by 3 people

  • Currently 4.333333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

mShell Team | News

25
Feb

Screen resolution independent programming

by Juerg

Since a few weeks I have a Nokia E90. This great phone has an external screen at standard S60 3rd Ed resolution of 240x320 pixels and an internal screen with 800x284 canvas size.

What a pitty when I started some of my scripts written earlier for the Nokia N70. Many of them has been written with the typical S60 2nd Ed screen resolution in mind so the app screen "hangs" somewhere in the upper left corner when running on a bigger screen. Although the script worked fine I had to go trough the code and change all constant screen coordinates or sizes to relative coordinates and sizes. All the time I saved with the quick hack to assume a constant screen size and/or orientation where eated up with the boring and time consuming adaptions for screen res. independency.

When programming for mobile phones you should always aware that screen size can be different from device to device. Also the screen orientation can change while your programm is updating the screen.

Use graph.size() to get the current screen resolution. If you are using icons (from files) it's a good idea to produce the graphics for a virtual screen resolution which should be at least  two times higher than the current standard. Before drawing the icons you can scale it with graph.size(icon, scale) or graph.size(icon, w, h).

For many applications it is also sufficient to to put the graph module in scaled mode. 

Whatever method you like better, make your application screen resolution independent!

Currently rated 3.0 by 2 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

m Programming

04
Feb

Mobile Web Server: The Future?

by Luke

I've just been playing with the mobile web server of Nokia Research. What they did was just simply porting the Apache web server to the Symbian platform. One problem they had to work around was that the IP of the phone is not accessible from the outside since it is behind a firewall of the provider. To work around that they just implemented a gateway that redirects the requests to the phone. Its quite simple: You install the application on the phone and start it up then you register on the website and pick a subdomain (http://mshell.mymobilesite.net for example). Then you enter your account details on the phone, it connects then to the gateway and is ready for the requests. You can also browse your mobile site locally by using the browser on your phone. What kinda sucks is that if you don't have a flatrate for your data transfers its almost unusable unless you want to ruin yourself, you can only browse it locally.

The whole project is open source and you can create dynamic pages just like in PHP or ASP using Python. Would be nice to create mobile web applications using m, eh?

Huge Kudos to the research team of Nokia.

MyMobileSite.com

Project Site on Forum Nokia 

Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Symbian | Tips and Tricks

Powered by BlogEngine.NET 1.3.0.0


Calendar
<<  October 2008  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar
Archive
Authors
Tags
Categories

Sign in