摘要: 在VMware虚拟机上搭建ubuntu,使用一段时间之后,会遇到先前构建的硬盘不够用的情况,此时就需要扩充硬盘容量了。下面的这个方法是我在网上找之后总结下来的。 首先进入到设置虚拟机的界面,选中Disk这一项,然后在右侧进行扩充,如下图 VMware虚拟机扩充完成后,就可以开启ubuntu系统,进入其中了,在终端安装gperted,命令:sudo apt-get install gperted,安装完之后运行:sudo gperted就会弹出图形界面,先选中右上角的盘符,选中中间对应的分区右键,卸载,这一步很重要,如果不卸载后续就无法操作。 紧接着,先对分区的父级进行扩充,再对子级进行... 阅读全文
posted @ 2013-08-13 16:19 浪儿~ 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.sina.com.cn/s/blog_5f35912f0100q3p1.html手动加载驱动####16th,Jul驱动加载modprobe libertasmodprobe libertas_sdio加载第二行时出错拉# modprobe libertas_sdiolibertas_sdio: Libertas SDIO driverlibertas_sdio: Copyright Pierre Ossmanmodel=0xbsd8686_helper.bin sd8686.bininit: untracked pid 958 exited过了一会出现:lib 阅读全文
posted @ 2013-08-12 17:12 浪儿~ 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/iefreer/article/details/8639946可以使用WifiManager和WifiInfo来获取当前Wifi连接信息[java]view plaincopyWifiManagerwifiManager=(WifiManager)getSystemService(WIFI_SERVICE);WifiInfowifiInfo=wifiManager.getConnectionInfo();Log.d("wifiInfo",wifiInfo.toString());Log.d("SSID", 阅读全文
posted @ 2013-05-22 13:59 浪儿~ 阅读(2686) 评论(0) 推荐(0) 编辑
摘要: 用vs2010 的时候,遇到使用comboBox控件的时候 卡死的问题, vs2010直接卡死,未响应。解决办法: 若此时开了 有道词典,把有道词典关闭,即可正常。 若没有开启 有道词典,可尝试把其他的软件先关闭了,在试试。 阅读全文
posted @ 2013-04-19 13:19 浪儿~ 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 编译android 源码,编译完了,在用genrootfs 脚本生成的时候,遇到以下问题,./genrootfs.sh: 16: ./genrootfs.sh: Syntax error: "(" unexpected解决方法是直接用 . genrootfs.sh 把斜杠改成 空格。# . genrootfs.shGenerating rootfs for Android......doneCreate device file......doneInstall prebuilt packages......doneInstall kernel modules and fir 阅读全文
posted @ 2013-04-10 14:31 浪儿~ 阅读(376) 评论(1) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/uid-28177039-id-3356704.htmlYou are attempting to build with the incorrect version of java.Your version is: java version "1.6.0_20".The correct version is: Java SE 1.6.Please follow the machine setup instructions athttp://source.android.com/source/download.html 阅读全文
posted @ 2013-04-08 16:45 浪儿~ 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.2cto.com/kf/201204/127658.html1、问题一:/bin/bash: bison: 未找到命令解决方法:$ sudo apt-get install bison2、问题二:You are attempting to build with the incorrect version of java.Your version is: /bin/bash: java: 未找到命令.The correct version is: 1.5.解决方法:http://www.cnblogs.com/qler/archive/2013/04/08/30083 阅读全文
posted @ 2013-04-08 09:41 浪儿~ 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/neil89/article/details/7749152Android软件时,常常需要打开系统设置或信息界面,来设置相关系统项或查看系统的相关信息,这时我们就可以使用以下语句来实现:(如打开“无线和网络设置”界面) Intent intent = new Intent("/"); ComponentName cm = new ComponentName("com.android.settings","com.android.settings.WirelessSettings"); i 阅读全文
posted @ 2013-03-31 18:12 浪儿~ 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/rhljiayou/article/details/7110258首先,说明我们是从sd卡里读文件,来播放文件!!2、布局文件main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:l 阅读全文
posted @ 2013-03-25 16:27 浪儿~ 阅读(1811) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/xzf158/archive/2009/09/04/1560042.html 昨天晚上在写一个Android的计时器,开始认为很容易,用Java一般写法,结果发现计时器根本不能运行,但却不报任何错误,当时就呆在那了,不知道该怎么办了,后来在网上查了一下,Android考虑到线程安全问题,不允许在线程中执行UI线程(我的现在所知道,还有其他的限制发现中),在Android中,有一个很有意思的类:android.os.Handler,这个可以实现各处线程间的消息传递。先看段代码,这个实例化了一个Handler,Handler可以通过Messa. 阅读全文
posted @ 2013-03-25 16:23 浪儿~ 阅读(546) 评论(0) 推荐(0) 编辑