上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: such asvi ~/.bashrc (root默认目录下的bashrc文件)在这个文件中加入:export PATH=/home/homer/android-sdk-linux/platform-tools/:$PATH 阅读全文
posted @ 2013-03-31 22:41 JustinYo 阅读(156) 评论(0) 推荐(0) 编辑
摘要: df -h/-k 阅读全文
posted @ 2013-03-31 21:52 JustinYo 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Ctrl + PageDownfor Next TabCtrl + PageUpfor Previous Tabto move tab left , tryCtrl + Shift + Leftctrl+shift +t opne a new tabctrl+shift + w close the current tabif you knew more ,please tell me.Thanks 阅读全文
posted @ 2013-03-31 21:16 JustinYo 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Ubuntu已经无jdk1.6的源,无法用sudo apt-get install直接安装,下面是手动下载bin包后安装及配置方法。jdk-6u37-linux-x64.bin第一步,到官方网站下载:http://www.oracle.com/technetwork/java/javase/downloads/jdk6u37-downloads-1859587.htmljdk-6u37-linux-x64.bin(64位)第二步,下载完成后开始安装和配置:1、把jdk安装在/usr/lib/jdk下面;root@cofface-desktop:~# sudo chmod 777 jdk-6u3 阅读全文
posted @ 2013-03-31 19:20 JustinYo 阅读(352) 评论(0) 推荐(0) 编辑
摘要: To install a .deb file, simply double click on it, and then select Install PackageAlternatively, you can also install a .deb file by opening a terminal and typing:sudo dpkg -i package_file.deb 阅读全文
posted @ 2013-03-31 19:06 JustinYo 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 今天写程序的时候碰到这样的问题:public String[] getPlatformIDList() { Vector result = new Vector(); try { Statement stmt = conn.createStatement(); String sql = "SELECT PlatformID FROM Platform"; rs = stmt.executeQuery(sql); while(rs.next()) { result.add(rs.getString(1)); } if (result.size() > 0) { Stri 阅读全文
posted @ 2013-03-29 15:50 JustinYo 阅读(569) 评论(0) 推荐(0) 编辑
摘要: Does Java pass by reference or pass by value?Why can't you swap in Java?By Tony Sintes, JavaWorld.com, 05/26/00Q:If Java uses the pass-by reference, why won't a swap function work?A:Your question demonstrates a common error made by Java language newcomers. Indeed, even seasoned veterans find 阅读全文
posted @ 2013-03-28 21:04 JustinYo 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 302 Found 类似于301,但新的URL应该被视为临时性的替代,而不是永久性的。注意,在HTTP1.0中对应的状态信息是“Moved Temporatily”,而HttpServletResponse中相应的常量是SC_MOVED_TEMPORARILY,而不是SC_FOUND。出现该状态代码时,浏览器能够自动访问新的URL,因此它是一个很有用的状态代码。为此,Servlet提供了一个专用的方法,即sendRedirect。使用response.sendRedirect(url)比使用response.setStatus(response.SC_MOVED_TEMPORARILY)和re 阅读全文
posted @ 2013-03-26 19:41 JustinYo 阅读(10223) 评论(0) 推荐(0) 编辑
摘要: 在AndroidMenifest.xml中,常常会有下面的语句:<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10" android:maxSdkVersion="10" /> 在default.properties中,会看到下面的语句:target=android-10 如果是使用Eclipse的话,还可能会看到这样的警告: Attribute minSdkVersion (4) is lower than the project target 阅读全文
posted @ 2013-03-26 16:29 JustinYo 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 在使用手机调试程序的时候出现了java.io.IOException: Unable to open sync connection!这样的异常,我尝试使用拔掉USB然后重新,插入,结果失败。再尝试,关掉USB调试,再重新开启USB调试,结果发现有驱动自动开始安装,安装完成之后,eclipse中device试图出现手机,调试完成,运行测试工程,正确通过。所以,解决java.io.IOException: Unable to open sync connection!方案:关掉USB调试,然后重新开启。 阅读全文
posted @ 2013-03-25 19:39 JustinYo 阅读(385) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页