2013年6月6日
摘要: 1.修改hosts文件。在/etc/hosts添加然后在出现的记事本窗体中在最末位出加入“#google_android更新 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com”文字,注意要换行,然后,source /etc/hosts 使它生效。2.回到Android SDK Manager,菜单栏中依次选择“Packages”、“Reload”,然后就会显示所有的Packages 阅读全文
posted @ 2013-06-06 14:23 bailun 阅读(211) 评论(0) 推荐(0) 编辑
摘要: link:http://stackoverflow.com/questions/9950344/cant-import-com-google-android-maps-mapviewright clicked on my project in the Package Exploere and selected "Build Path->Configure Build Path"Selected "Java Build Path" and the "Libraries" tabSelected "Add External 阅读全文
posted @ 2013-06-06 08:31 bailun 阅读(546) 评论(0) 推荐(0) 编辑
  2013年6月2日
摘要: AVD启动速度有了质的飞跃 阅读全文
posted @ 2013-06-02 20:24 bailun 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-06-02 19:46 bailun 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.jdk下载后下载后直接双击。2.打开ibus:accessories->application finder-->input 阅读全文
posted @ 2013-06-02 11:20 bailun 阅读(183) 评论(0) 推荐(0) 编辑
  2013年5月31日
摘要: 1.下载https://01.org/powertop/downloads2.解压后:#make#sudo make install3启动:#sudo powertop效果图: 阅读全文
posted @ 2013-05-31 17:06 bailun 阅读(309) 评论(0) 推荐(0) 编辑
  2013年5月30日
摘要: 参考:http://www.linuxidc.com/Linux/2011-12/50056.htmbaoyu@baoyu:~$ gedit /var/lib/locales/supported.d/local添加:zh_CN.GBK GBKzh_CN.GB2312 GB2312 baoyu@baoyu:~$ sudo dpkg-reconfigure --force localesGenerating locales... en_AG.UTF-8... done en_AU.UTF-8... done en_BW.UTF-8... done en_CA.UTF-8... done en_DK 阅读全文
posted @ 2013-05-30 18:25 bailun 阅读(1226) 评论(0) 推荐(1) 编辑
摘要: #tar zxvf jdk-7u21-linux-x64.tar.gz#sudo mv jdk1.7.0_21/ /usr/bin/jvm#gedit .bashrc添加:export JAVA_HOME=/usr/bin/jvmexport JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH#source .bashrc #java -version显示:java version "1.7.0_21" 阅读全文
posted @ 2013-05-30 17:13 bailun 阅读(1196) 评论(0) 推荐(0) 编辑
  2013年5月29日
摘要: import java.io.*;public class AppendContent{ public static void main(String[] args) { try(RandomAccessFile raf = new RandomAccessFile("out2.txt", "rw")) { raf.seek(raf.length()); raf.write("追加的内容! \r\n".getBytes()); } catch (IOException ex) ... 阅读全文
posted @ 2013-05-29 18:38 bailun 阅读(196) 评论(0) 推荐(0) 编辑
  2013年4月11日
摘要: import android.app.TabActivity;public class MainActivity extends TabActivity //注意这里是TabActivity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TabHost tabHost = getTabHost(); 阅读全文
posted @ 2013-04-11 20:05 bailun 阅读(365) 评论(0) 推荐(0) 编辑