I have an activity inside which I want to get the User-Agent string which is available to WebKit. I need to transmit the user-agent to the server on every server request. I don't want to hard code any fixed user agent string in my application because we want to track which devices are being used with our application and the best way to do that would be to use what comes built in with the device (inside WebKit).
Is there any way I can get that user agent that WebKit uses inside my activity? Just FYI...I don't have any WebView. I just have a normal activity with some layouts and buttons. I couldn't find any documentation. Any ideas? Thanks in advance.
Is there any way I can get that user agent that WebKit uses inside my activity? Just FYI...I don't have any WebView. I just have a normal activity with some layouts and buttons. I couldn't find any documentation. Any ideas? Thanks in advance.