2013年6月21日

摘要: 1 /*************************************************************** 2 函数名称:FindFile 3 查找指定目录下指定文件 4 输入:fileName:指定文件名,fileNath:指定查找路径 5 输出:打印文件路径 6 ***************************************************************/ 7 int FindFile(string fileName, string filePath) 8 { 9 assert(fileName != "" & 阅读全文
posted @ 2013-06-21 17:01 天涯一浪子 阅读(3092) 评论(0) 推荐(0)
 
摘要: 1 final Handler handler = new Handler() { 2 public void handleMessage(Message msg) { 3 switch (msg.what) { 4 case MSG_OK: 5 rl_loading.setVisibility(View.GONE); 6 break; 7 } 8 super.h... 阅读全文
posted @ 2013-06-21 14:51 天涯一浪子 阅读(196) 评论(0) 推荐(0)
 
摘要: 新任务需要Android程序开机跑一个服务,查找资料得出如下方法:用广播的方法监听系统启动事件:android.intent.action.BOOT_COMPLETED并在AndroidManifest.xml加入广播监听事件信息1 <receiver android:name="AutoStartReceiver"> 2 <intent-filter> 3 <!-- 系统启动完成后会调用--> 4 <action android:name="android.intent.action.BOOT_COMPLETED&quo 阅读全文
posted @ 2013-06-21 14:41 天涯一浪子 阅读(262) 评论(0) 推荐(0)