JayceLi  
1 2 3 4 5 ··· 13 下一页

2013年12月7日

摘要: 以eclipse为例,自行下载的。创建文件/usr/share/applications/eclipse-kepler.desktop文件内容:#------------------------[Desktop Entry] Version=1.0Name=eclipse-keplerComment=eclipseType=ApplicationCategories=Development;IDE;#你的eclipse的可执行文件的路径Exec=/home/jayce/program/eclipse-kepler/eclipseTerminal=falseStartupNotify=true# 阅读全文
posted @ 2013-12-07 13:08 JayceLi 阅读(651) 评论(0) 推荐(0) 编辑

2013年4月8日

摘要: Android平台上简单的FramebufferObject示例。FramebufferObject的概念就不说了,参考OpenGL ES 2.0 Programming Guide的第10章。下面是render framebuffer到texture的例子。代码的主要流程是:创建framebuffer,绑定framebuffer,render framebuffer到texture,切换回system提供的framebuffer,利用之前产生的texture.方便起见,两个render流程用的同样的shader.下面是renderer的代码,Test7Renderer.java 1 pac. 阅读全文
posted @ 2013-04-08 17:27 JayceLi 阅读(8656) 评论(1) 推荐(0) 编辑

2013年3月18日

摘要: finally clause might not always run.finally clause won't run in a deamon thread if program exit before run finally clause. 阅读全文
posted @ 2013-03-18 13:26 JayceLi 阅读(166) 评论(0) 推荐(0) 编辑

2013年2月16日

摘要: find -name "*.apk" -exec adb install {} \; 阅读全文
posted @ 2013-02-16 16:07 JayceLi 阅读(541) 评论(0) 推荐(0) 编辑

2013年1月25日

摘要: 在自己的ContentProvider类里,重写applyBatch方法,加入事务: 1 @Override 2 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation>operations) 3 throws OperationApplicationException{ 4 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); 5 db.begi... 阅读全文
posted @ 2013-01-25 11:54 JayceLi 阅读(1931) 评论(0) 推荐(0) 编辑

2012年12月6日

摘要: 1 ImageView iv = new ImageView(this); 2 setContentView(iv); 3 Bitmap originImg = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher); 4 Bitmap grayImg = Bitmap.createBitmap(originImg.getWidth(), originImg.getHeight(), Bitmap.Config.ARGB_8888); 5 Canvas canvas = new Canvas(grayImg);. 阅读全文
posted @ 2012-12-06 15:17 JayceLi 阅读(1471) 评论(0) 推荐(0) 编辑

2012年11月27日

摘要: 编译安装freeglut,完了可以在/usr/local/lib里看到libglut.so.3,libglut.so创建链接:sudo ln -s /usr/lib/libglut.so.3 /usr/lib/libglut.so 阅读全文
posted @ 2012-11-27 20:09 JayceLi 阅读(1311) 评论(0) 推荐(0) 编辑

2012年11月17日

摘要: 以转Gmail2.odex为例。新建个目录gmail:mkdir gmail进入目录:cd gmail从手机拉出依赖文件,转化的时候要用:adb pull system/framework/下载4个文件放到gmail目录,baksmali,smali,baksmali-1.4.0.jar,smali-1.4.0.jar:http://code.google.com/p/smali/downloads/list执行命令:java -jar baksmali-1.4.0.jar -a 17 -x Gmail2.odex这里Gmail2.odex是从android4.2里提出来的,所以API LEV 阅读全文
posted @ 2012-11-17 13:58 JayceLi 阅读(522) 评论(0) 推荐(0) 编辑

2012年11月15日

摘要: 1,在Activity的onCreate中设置:1 getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);2 getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);2,在需要显示和隐藏的时候调用: 1 private void hideStatusBar() { 2 WindowManager.LayoutParams attrs = getWindow().get... 阅读全文
posted @ 2012-11-15 18:55 JayceLi 阅读(1745) 评论(2) 推荐(0) 编辑

2012年11月13日

摘要: 1 private View mCurrentView; 2 3 @Override 4 public void setPrimaryItem(ViewGroup container, int position, Object object) { 5 mCurrentView = (View)object; 6 } 7 8 public View getPrimaryItem() { 9 return mCurrentView;10 }ViewPager的adapter通过setPrimary... 阅读全文
posted @ 2012-11-13 19:07 JayceLi 阅读(3225) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 13 下一页