随笔分类 - android
摘要:安装KVM:sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils在Postfix Configuration时,可以选择No configuration将用户名添加到KVM和libvirtdsudo adduser your_user_name kvmsudo adduser your_user_name libvirtd验证安装结果:sudo virsh -c qemu:///system list成功的话,应该显示为下面的回显Id Name State--------...
阅读全文
摘要:Android里的事务提交 SQLiteDatabase db = SQLiteHelper.getInstance().getWritableDatabase(); db.beginTransaction(); for (Map.Entry<String, String> entry : config.entrySet()) { ContentValues contents = new ContentValues(); contents.put("value", entry.getValue()); ...
阅读全文
摘要:在Activit获取wifi状态获取WIFI的开关状态WifiManager wifiMgr = (WifiManager) this.getSystemService(WIFI_SERVICE);int stat = wifiMgr.getWifiState(),获取WIFI的连接状态ConnectivityManager conMan = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);State wifi = conMan.getNetworkInfo(ConnectivityManage
阅读全文
摘要:Windows下安装驱动包SCI-android-usb-driver-jungo-v4后,通过Android SDK中的adb devices获取不到设备信息这是由于Android SDK的USB驱动配置文件缺少展讯的厂商标识导致,只需要修改以下两个文件即可解决1、修改adt-bundle-windows-x86\sdk\extras\google\usb_driver\android_winusb.inf在[Google.NTx86]、[Google.NTamd64]两个区域分别添加以下的内容; SPRD Adb%CompositeAdbInterface% = USB_Install,
阅读全文
摘要:ubuntu下为android sdk更新设置代理为~/.android/androidtool.cfg,添加如下的内容‘http.proxyPort=8087http.proxyHost=127.0.0.1再次运行SDK内tools/android即可第二屏动画位于 /system/media/bootanimation.zip里面由若干连续的静态图片及相应的描述组成
阅读全文

浙公网安备 33010602011771号