摘要: Eclipse快捷键-方便查找,呵呵,记性不好行注释/销注释Ctrl+/ 块注释/销注释/XML注释Ctrl+Shift+/ Ctrl+Shift+\查找 查找替换Ctrl+H Ctrl+F查找下一个/往回找Ctrl+K Ctrl+Shift+K跳到某行 Ctrl+L,哈用惯了Editplus,不时会敲下Ctrl+G,查找当前元素的声明 Ctrl+G查找当前元素的所有引用Ctrl+Shift+G重新组织ImportCtrl+Shift+O,能帮你一次去掉所有未使用的Import声明!快速修正 Ctrl+1引入某个类(接口)ctrl +shift + m加头注释 shift +alt + j更改 阅读全文
posted @ 2013-10-30 12:22 mushishi 阅读(113) 评论(0) 推荐(0)
摘要: 在开发android应用的时候,在一些情况下要有前置条件,比如这边所说的要启动时要确保别的应用程序服务已经打开 或者在操作中启动别的应用等。 先来一段google上的代码:1、 已知包名和类名的情况下:Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); //前面两个设置是为了调用该应用的主页 也就如C#或JAVA 常说的 MAIN函数入口ComponentName cn = new ComponentName(packageName, cl... 阅读全文
posted @ 2013-10-30 11:35 mushishi 阅读(431) 评论(0) 推荐(0)