aspose file tools
The moose likes Android and the fly likes android browser recognition Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "android browser recognition" Watch "android browser recognition" New topic
Author

android browser recognition

Gabi Teris
Greenhorn

Joined: Feb 07, 2011
Posts: 4

Hi,

Is there a way for a web application to recognize the user-agent of an android browser? I want to define proper CSS for different type of browsers.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32769
Searching for "android browser user-agent header" or some such phrase should provide you with all the information you need.


Android appsImageJ pluginsJava web charts
Gabi Teris
Greenhorn

Joined: Feb 07, 2011
Posts: 4

But is that applicable for all phones, all browsers? I have the integrated browser on the HTC Wildfire, which I think it's Webkit or something, and when going onto a site it is seen as a pc browser (page displayed normally) and Opera mini / mobile which is seen as iphone (!) and some flash movies are displayed as m4v (MPEG4) and can be seen on the phone without flash.

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32769
It's quite possible that some sites don't care about what browser accesses them, or get it wrong. But you intend to get it right, so what they do is of no concern to you :-)
 
 
subject: android browser recognition
 
Threads others viewed
Browser support for HTML5
Android 2.2 sdk emulator has browser for run Android [cross-platform] Apps? is it the same as normal
WA #1.....word association
Browser based Apps on Android
WA #2 ..... word association
MyEclipse, The Clear Choice