摘要: 透视package com.sunny;import java.nio.ByteBuffer;import java.nio.ByteOrder;import java.nio.FloatBuffer;import java.nio.ShortBuffer;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.opengles.GL10;import android.opengl.GLSurfaceView;public class VortexRenderer implements 阅读全文
posted @ 2011-07-17 15:11 朱旭东 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 增加color modepackage com.sunny;import java.nio.ByteBuffer;import java.nio.ByteOrder;import java.nio.FloatBuffer;import java.nio.ShortBuffer;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.opengles.GL10;import android.opengl.GLSurfaceView;public class VortexRenderer i 阅读全文
posted @ 2011-07-17 15:10 朱旭东 阅读(475) 评论(0) 推荐(0) 编辑
摘要: package com.sunny;import android.app.Activity;import android.os.Bundle;public class mainActivity extends Activity { private static final String LOG_TAG=mainActivity.class.getSimpleName(); private VortexView _vortexView; /** Called when the activity is first created. */ @Override public void onCreate 阅读全文
posted @ 2011-07-17 13:39 朱旭东 阅读(856) 评论(0) 推荐(1) 编辑
摘要: public class LinkList<T> { public class Node{ private T data; private Node next; public Node(){ } public Node(T data,Node next){ this.data=data; this.next=next; } } private Node header; private Node ... 阅读全文
posted @ 2011-07-16 21:12 朱旭东 阅读(292) 评论(0) 推荐(0) 编辑
摘要: public class LinkList<T> { public class Node{ private T data; private Node next; public Node(){ } public Node(T data,Node next){ this.data=data; this.next=next; } } private Node header; private Node ... 阅读全文
posted @ 2011-07-16 21:07 朱旭东 阅读(489) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays;public class SequenceList<T> { private int DEFAULT_SIZE=16; //保存数组的长度 private int capacity; //定义一个数组用于保存顺序线性表的元素 private Object[] elementData; //保存顺序表中元素的当前个数 private int size=0; public SequenceList(){ capacity=DEFAULT_SIZE; elementData=new Object[capacity]; } public Se 阅读全文
posted @ 2011-07-16 20:08 朱旭东 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 在Activity上有两个ImageButton,分别控制播放/暂停、停止。@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); start = (ImageButton) findViewById(R.id.play); stop = (ImageButton) findViewById(R.id.stop); start.setOnClickListener(this); stop.setOn 阅读全文
posted @ 2011-04-20 16:25 朱旭东 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 在Activity中设置两个按钮,分别为启动和关闭Service:bt01.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent i = new Intent(mainActivity.this, MyService.class); startService(i); Toast.makeText(mainActivity.this, "Service启动成功", To 阅读全文
posted @ 2011-04-18 20:23 朱旭东 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Intent的功能有:在mainActivity中为按钮1添加监听事件:listener1 = new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent1 = new Intent(mainActivity.this, Activity1.class); intent1.putExtra("mainActivity", "这是来自mainActivity的数据"); startActivi 阅读全文
posted @ 2011-04-18 18:09 朱旭东 阅读(2027) 评论(1) 推荐(0) 编辑
摘要: 转自:http://blogold.chinaunix.net/u/24632/showart_2320672.html今天开始launcher2分析系列,Launcher2的代码路径为:$ANDROID_SRC/packages/apps/Launcher2项目构成:AndroidManifest.xml 项目Launcher2的描述文件CleanSpec.mk android项目授权文件?NOTICE apache授权协议Android.mk Launcher2编译的makefileMODULE_LICENSE_APACHE2 空文件proguard.flags -keep clashhr 阅读全文
posted @ 2011-04-18 09:41 朱旭东 阅读(2109) 评论(0) 推荐(0) 编辑