Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Android sniffer?

Posted on 2013-01-05
2
Medium Priority
?
403 Views
Last Modified: 2013-01-05
I am trying to use HTML5 to play video on browsers and devices, however I'm having trouble getting it to work on Android. I'd like a sniffer that would give Android users the Flash version of the video. The problem is that I have zero idea how to do this. HELP!!
0
Comment
Question by:tekgrl
2 Comments
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 38747637
Make a Google search for "User Agent" and also search the PHP.net web site for the term.  I can't remember for sure, but I am almost certain that you can detect Android with that kind of information.
0
 
LVL 12

Accepted Solution

by:
DarinTCH earned 2000 total points
ID: 38747707
are you trying to 'sniff' the traffic and analyze it

try this
http://mobile.tutsplus.com/tutorials/android/analyzing-android-network-traffic/


or are you just trying to determine if the device hitting your app is using android so you can redirect it???

try this code
http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-android-and-redirect-to-android-version-website
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question