tags:

views:

38

answers:

1

Hi,

Kindly provide me the Android code to get the User-Agent from the Android mobile device like in J2me where we can get System information about the mobile device using the J2me API.

Also , is there any list of Rdf or useragent string/ xml for the different Android devices available in the market.

Kindly help.

Warm Regards,

Chiranjib Banerjee

A: 

The User-Agent header is private to the Browser application. Also note that different browsers (there are quite a few on the market) will use different User-Agent strings. Also, I don't know of any list of Android User-Agent strings.

If you're just looking to test whether someone is using Android to browse your website, just check for "android" in the User-Agent string.

Felix