本帖最后由 xubin341719 于 2012-07-19 10:01:25 编辑

解决方案 »

  1.   

    cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)
    这个设定是否在:
    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 网络管理 相关,请大家多指教………………
      

  2.   

    我感觉你是少一个配置文件,在frameworks/base/data/etc/里找找,类似于android.hardware.location.gps.xml这种。如果没有合适的把手机的拷出来看看,放到system/etc/permissions里面
      

  3.   

    我的问题跟你刚好相反,我搞的平板没有移动网络,只有wifi,现在装了googlemap没法用wifi定位,我是想把其他的定位方式干掉。google到你这里来了
      

  4.   

    楼主,解决了没。我在调试3G,发现android 4.0 设置里没有移动网络这项,不清楚怎么加上去。
      

  5.   

    三星平台:
    ./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>
      

  6.   

    谢谢提醒,我的也是三星平台,不是v310,是v210。android/device/samsung/smdkv310/overlay/frameworks/base/core/res/res/values/config.xml
    <string-array translatable="false" name="networkAttributes">  
    <string-array translatable="false" name="radioAttributes"> 原来这两列没加有移动网络,并把下面的配置文件覆盖了。android/frameworks/base/core/res/res/values/config.xml
      

  7.   

    移动网络配置是在这个文件中:
    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覆盖了上面那个配置相关选项
      

  8.   

    结个贴吧,
    1、这里面是我遇到的情况,解决办法如下:
    http://blog.csdn.net/xubin341719/article/details/7897666
    2、7楼兄弟遇到是另外一种情况;
    希望对大家有用