上一页 1 ··· 7 8 9 10 11 12 下一页
  2010年8月25日
摘要: 1、在同一个类中,按照参数严格匹配的原则,示例如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;public class Test extends Parent { public static void main(String[] args) { System.out.println("haha"); Test t= new Test(); t.t2(3); } publ 阅读全文
posted @ 2010-08-25 09:37 snowdrop 阅读(6187) 评论(0) 推荐(0)
  2010年8月24日
摘要: 1、要使用Service,首先就是在配置文件里吗添加Service,如果不填加,你的Service是不能够使用的。目前学到的方法有两种 方法一:<service android:enabled="true" android:name=".PlayService" /> 方法二:<service android:name=".PlayService" /> 点后面是Service类的名字。2、工程包括两个类:ServiceActivity.javaPlayService.java其中:ServiceActivit 阅读全文
posted @ 2010-08-24 11:22 snowdrop 阅读(57216) 评论(0) 推荐(1)
  2010年8月23日
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;publicclass T1 {publicstaticvoid main(String args[]){String s1="123";int t2=333;T1 t=new T1();t.t1(s1);System.out.println(s1);t.t3(t2);System.out.println(String.valu 阅读全文
posted @ 2010-08-23 09:54 snowdrop 阅读(200) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;publicclass T1 {publicstaticvoid main(String args[]){String s1="123";String s2="123";System.out.println(s1==s2);String s3=new String("abc");Strin 阅读全文
posted @ 2010-08-23 09:37 snowdrop 阅读(114) 评论(0) 推荐(0)
  2010年8月20日
摘要: 问题:比如运行which fastboot,会出现一个路径A,如果你在另一个地方B也有这个fastboot,并且你想默认指向这个地方B,怎么办不是 通过建立符号链接而是通过环境变量的设置在普通用户权限下,运行修改环境变量,vim ~./bashrc把这个地方的路径加进去。 export PATH=$PATH:/home/srx/master/out/host/linux-x86/bin保存,退出。重启电脑,否则不能生效。即可。 阅读全文
posted @ 2010-08-20 16:07 snowdrop 阅读(248) 评论(0) 推荐(0)
摘要: 在普通用户权限下面,运行su,然后运行adb push 本地apk所在的目录,具体到/apk 手机里的目录,如sdcard然后push成功后,去手机里面的“文件管理“里面去查看自己刚才push的apk,点击安装即可。 阅读全文
posted @ 2010-08-20 16:04 snowdrop 阅读(433) 评论(0) 推荐(0)
  2010年8月19日
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;public class T { //类变量,静态变量public static String s="srx";public String s1="zf";public static void main(String args[]){ System.out.println("s=="+s) 阅读全文
posted @ 2010-08-19 09:38 snowdrop 阅读(393) 评论(0) 推荐(0)
  2010年8月18日
摘要: 这个工程包括两个类:1、SensorActivity.java2、SensorListenerTest.java在SensorActivity里面可以不用监听,就可以完成自己想要的动作。1、SensorActivity.java代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.sener.listener;import android.app.Activity;import android.content.Conte 阅读全文
posted @ 2010-08-18 17:57 snowdrop 阅读(834) 评论(0) 推荐(0)
摘要: 两个类:1、SensorTest类,是Acvitivity2、SensorListenerTest类,实现了SensorEventListener类,SensorTest.java:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.sensor;import android.app.Activity;import android.os.Bundle;public class SensorTest extends Ac 阅读全文
posted @ 2010-08-18 10:09 snowdrop 阅读(4210) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;public class T extends Parent { public void Method1(int a, int c, String b) { System.out.println("this is t.t1"); } public static void main(String args[]) { T t = ne 阅读全文
posted @ 2010-08-18 09:32 snowdrop 阅读(14303) 评论(1) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 下一页