Android的:如何在Android SDK中得到的UAProf价值? [英] Android: How to get UAProf value in Android SDK?

查看:253
本文介绍了Android的:如何在Android SDK中得到的UAProf价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发与显示是专为手机,因此在X-WAP的配置文件标题必须以调整CSS和图像发送到该网站。网站网页视图组件的An​​dr​​oid应用程序

谁能帮我找到的UAProf设备设置?

我已经进行了大量的寻找,但没有成功。

任何帮助将大大AP preciated。

先谢谢了。


解决方案

  

谁能帮我找到的UAProf设备设置?


有没有的UAProf设备设置。

欢迎您使用使用loadURL的版本(),你提供你自己的套头来包括您所需的标题。请注意,这是在API级别增加8(也叫做Android 2.2的) - 据我所知,Android的以前的版本有供应自定义标题没有选项

也欢迎您通过 WebSettings 来设置您的用户代理字符串,如果网站有问题会使用,而不是你想要的标题。

I am currently developing an Android application with a WebView component which displays a website that is designed for mobile phones and thus the x-wap-profile header must be sent to the site in order to resize the CSS and the images.

Can anyone help me find the UAProf device setting?

I've conducted a lot of searching, with no success.

Any help will be greatly appreciated.

Thanks in advance.

解决方案

Can anyone help me find the UAProf device setting?

There is no "UAProf device setting".

You are welcome to use the version of loadUrl() where you supply your own set of headers to include your desired header. Note that this was added in API Level 8 (a.k.a., Android 2.2) -- AFAIK, prior versions of Android had no options for supplying custom headers.

You are also welcome to set your user agent string via WebSettings, if the Web site in question will use that instead of your desired header.

这篇关于Android的:如何在Android SDK中得到的UAProf价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆