解决方案 »
- android 通过LayoutInflater获得View,但是如何获得View里的控件
- android未来发展?
- 如何获取当前运行的屏幕的activity的实例对象??
- 找到一个在Android上创建阻塞式模态对话框的方法
- SD卡文件夹下,有几千个录音文件,删除极慢,怎么解决?
- 请教:Service能否显示一个Yes/No提示框?
- android如何避免杀毒软件报毒
- 来大神 求一个第三方 google登录
- Android平板UI的复杂布局怎么做?例如这个zaker HD的
- 求指教:android如何将一个Bitmap保存为单色的BMP格式的位图
- 如何修改/data/app目录下程序文件权限
- 如何设置webview使用自定义封装字体
这个设定是否在:
4.0.3_r1/frameworks/base/core/res/res/values/config.xml中设规定?? <!-- Set of NetworkInfo.getType() that reflect data usage. -->
<integer-array translatable="false" name="config_data_usage_network_types">
<item>0</item> <!-- TYPE_MOBILE -->
<item>2</item> <!-- TYPE_MOBILE_MMS -->
<item>3</item> <!-- TYPE_MOBILE_SUPL -->
<item>4</item> <!-- TYPE_MOBILE_DUN -->
<item>5</item> <!-- TYPE_MOBILE_HIPRI -->
<item>10</item> <!-- TYPE_MOBILE_FOTA -->
<item>11</item> <!-- TYPE_MOBILE_IMS -->
<item>12</item> <!-- TYPE_MOBILE_CBS -->
</integer-array>我是做驱动的,只能找到这里了,跟android 网络管理 相关,请大家多指教………………
./packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadThread.java中删除
Following code will forcefully allow ethernet network as usable required for v310/c210.
if (networkUsable != DownloadInfo.NETWORK_OK) {
Log.i(Constants.TAG, " Forcing ethernet connection usable for download to work!!!");
networkUsable = DownloadInfo.NETWORK_OK;
}
4.0.3_r1/device/samsung/smdkv310/overlay/frameworks/base/core/res/res/values/config.xml中删除:
<!-- This string array should be overridden by the device to present a list of network
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[Connection name],[ConnectivityManager connection type],
[associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
<!-- the 5th element "resore-time" indicates the number of milliseconds to delay
before automatically restore the default connection. Set -1 if the connection
does not require auto-restore. -->
<!-- the 6th element indicates boot-time dependency-met value. -->
<string-array translatable="false" name="networkAttributes">
<item>"ethernet,9,9,1,-1,true"</item>
</string-array>
<!-- This string array should be overridden by the device to present a list of radio
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[ConnectivityManager connectionType],
[# simultaneous connection types]" -->
<string-array translatable="false" name="radioAttributes">
<item>"9,1"</item>
</string-array>
<string-array translatable="false" name="networkAttributes">
<string-array translatable="false" name="radioAttributes"> 原来这两列没加有移动网络,并把下面的配置文件覆盖了。android/frameworks/base/core/res/res/values/config.xml
4.0.3_r1/frameworks/base/core/res/res/values/config.xml
嘿嘿,原因不大一样,
我的是
4.0.3_r1/device/samsung/smdkv310/overlay/frameworks/base/core/res/res/values/config.xml覆盖了上面那个配置相关选项
1、这里面是我遇到的情况,解决办法如下:
http://blog.csdn.net/xubin341719/article/details/7897666
2、7楼兄弟遇到是另外一种情况;
希望对大家有用