473,544 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Check for mobile device?

Hello,

Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?

E.g. User agent, screen size etc.?

anything else?

Sep 4 '07 #1
4 7080
howa wrote:
Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?
I'm not a specialist, but the HTTP Accept: header seems to be the best
place to see what formats the user-agent likes.
It's even pounded with a quality ratio.

Apache's algorithm is a good example of clever content negotiation:

http://httpd.apache.org/docs/2.2/con...tml.en#methods
E.g. User agent, screen size etc.?
No.

--
You can contact me at <ta************ *****@yahoDELET ETHATo.fr>
Sep 4 '07 #2
On Tue, 04 Sep 2007 19:16:15 +0200, howa <ho******@gmail .comwrote:
Hello,

Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?

E.g. User agent, screen size etc.?

anything else?
Keeping the same data/html, possibly with another stylesheet (check the
media attribute). Wasn't WAP dead BTW? The only people I know who can
browse the internet on their phone just have a 'regular browser'.
--
Rik Wasmus
Sep 4 '07 #3
On 9/4/2007 10:16 AM, howa wrote:
Hello,

Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?

E.g. User agent, screen size etc.?

anything else?
If you plan to "sniff" for user agent, be very careful that you are
checking it correctly.

There are far too many Web sites that do sniffing to distinguish IE from
Firefox from Opera from Safari from etc. Often, there is no really good
reason for this other than the fact that some non-standard IE capability
has been used that won't work with other browsers.

In the meantime, sniffing for Firefox should actually be for Gecko
(Mozilla's Web rendering engine within Firefox). When Web sites sniff
specifically for Firefox and not Gecko, those sites often do not display
correctly for SeaMonkey, Camino, and other Mozilla products, all of
which are also using Gecko as does Netscape and more than 20 other
browsers. If Firefox can properly display a Web page, so should any
other Gecko brower PROVIDING there is poorly implemented sniffing. See
<http://geckoisgecko.or g/for a discussion on Gecko sniffing.

While my rant does not seem to apply to mobile devices, the Minimo
browser for mobile devices uses Gecko. Thus, my original warning: Be
very careful!
--

David E. Ross
<http://www.rossde.com/>.

Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
Sep 5 '07 #4

Rik Wasmus

Keeping the same data/html, possibly with another stylesheet (check the
media attribute). Wasn't WAP dead BTW?
XHTML Mobile Profile is nice and easy to convert from current XHTML

Sep 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2359
by: John | last post by:
Hi We have an access db which records daily orders. We would like the orders to be downloaded to a windows mobile 2003 device via usb cradle. Drivers then take along the device and get signatures from customers when items delivered. Once drivers are back, the information to be synched back to the access db as drivers may have amended the...
1
3137
by: tobesurveyor via AccessMonster.com | last post by:
Hello all, The program I am creating takes certain files found on a Pocket PC and places them on a specific directory on a network drive. It is automated in the transfering of the files, and in recording in the database the paths the data were saved to. When I demo the application using example files on different network drives it works...
1
1785
by: Jeff | last post by:
Hey asp.net 2.0 I wonder if it's possible to have both standard asp.net and mobile asp.net in the same web application. When the web server gets a request it can detect if this requested comes from a mobile or not???. Maybe there is setting in web.config specifying the default page if requested by a mobile phone???
3
2487
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I am confused about how I can insert literal text into a page from C# in the ASP.NET 2.0 Mobile Page model. There is no supported "Literal" control as there is in ASPX (standard), though I don't understand why not. So the question is, how do I get literal HTML text into a certain spot on my ASPX page in mobile? It seems I cannot even insert a...
2
1643
by: Paulson | last post by:
bye Paulson Hi all I want to create a small application on my mobile(SamsungC200) As a first step I made a solution and added Project SamrtDeviceApplication I named it SmartDeviceTest1
3
1994
by: John | last post by:
Hi We have a staff database app that also stores staff pictures with each staff record. I have been asked to design something so we can send pictures of staff to people's mobiles when they need it for ID purposes. I have no idea where to start on this. Has anyone had any experience with sending pictures to mobiles from a .net app? Any...
1
2840
by: =?Utf-8?B?V29vZGdub21l?= | last post by:
Hi, I have use the following code to transmit a file back to the browser that worked fine on a HTC_TTyN device running windows mobile 5.0. The code executes in the onclick event of a mobilelist control. Now on a similar device running window mobile 6.0 the file is not displayed - the link causes a post back succesfully and the code appears...
0
2412
by: tthkbw | last post by:
I am writing an application and have the need to open files that exist on an ActiveSync connected Mobile Device (in this case, a PocketPC, could be a SmartPhone). When the mobile device is connected via ActiveSync an I open Windows Explorer, under My Computer, I see "Mobile Device" and can browse files on the PocketPC. However, in my C#...
7
3236
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ Much of the info looks old. I have a MSDN account where can I download it or is it already in VS 2008 and I just don't know how to find it? I'm...
1
7360
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7699
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5895
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5288
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4905
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3400
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3398
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1833
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.