![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
CCbleach
这个作者很懒,什么都没留下…
展开
-
android 强制2G/3G或WIFI 优先上网
public void setPreferredNetwork(int networkType) { ConnectivityManager connMgr = (ConnectivityManager) this.context.getSystemService("connectivity"); if (networkType == NetworkType.TYPE_MOBIL...原创 2013-05-05 09:18:13 · 243 阅读 · 0 评论 -
android2.3 之后 接听来电代码
if(android.os.Build.VERSION.SDK_INT >=15 ) { Intent meidaButtonIntent = new Intent(Intent.ACTION_MEDIA_BUTTON); KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_HEADSETHO...原创 2013-05-16 16:52:18 · 172 阅读 · 0 评论