bchandler — 2012-10-11T23:07:45-04:00 — #1
Has anyone else run into this issue? Stackoverflow as some posts about it but nothing super helpful so was wondering if someone on here has found a way to target a range or specific user agent of the Samsung Galaxy S3?
aussiejohn — 2012-10-17T05:15:25-04:00 — #2
Any reason you'd want to test for a particular user agent? (Feature testing might be a better option if you're trying to target new functionality).
paul_wilkins — 2012-10-17T05:30:48-04:00 — #3
Don't is my answer.
Instead, make good use of CSS media queries instead, and if needed, feature detection.
bchandler — 2012-10-17T17:41:33-04:00 — #4
I need a quick solution as I'm really time poor at this second to do adequate testing.
I know the pitfalls, I have been through this conversation many times. If someone has the code it would be fantastic if they could post it.
paul_wilkins — 2012-10-17T18:24:54-04:00 — #5
Here's a good article about it that includes some code.
bchandler — 2012-10-17T19:45:34-04:00 — #6
Sorry I can't tell if you are legitimately trying to help or providing a link to an article I read when it first came out just to make a point that css and media queries are the way to go.
If I need to provide a back story as to why I want a user agent solution: I work at an agency, I do front end design and coding.. with some js/php knowledge. I have a very old client site that my boss does not want to spend money on to fix, nor do we have the time, nor do the devs have the time to quickly test with me.
I came here trying to find a very quick solution. I am completely aware of the advantages and disadvantages and will definitely come back to this project and do it right through a whole css re-write.
But anyway thanks for your input.
paul_wilkins — 2012-10-17T19:54:14-04:00 — #7
The problem is that the iPhone 5 helped to highlight the problem that specific layouts for specific devices are guaranteed to break when progress occurs. And you can always guarantee that change happens.
Android devices now have a range of 70 different layouts, depending on the type of device that is detected. That becomes a real problem when you have to create different layouts for each one.
So as a result, mobile developers are turning back to css media queries so that screen-size break points can be used to help manage the complexity. This is also where an infinite grid system can be of a great help too.
bchandler — 2012-10-17T21:37:42-04:00 — #8
lol the iphone 5? mate these problems were around well before the iphone 5 was launched
I'm starting to think this is probably the wrong forum to come looking for straight advice and solutions. If I wanted to brush up on my media queries and css skills I could open one of the endless twitter streams, blog posts, books I have access to and get a more comprehensive and detailed insight.
Thanks though champ
paul_wilkins — 2012-10-17T22:24:01-04:00 — #9
Well you're welcome to visit the developing for mobile devices forum. They're likely to know more about how to resolve your particular problem.
bchandler — 2012-10-17T23:43:26-04:00 — #10
Thank you. That section looks promising.