2012年8月13日

SQL 列出某列有重复的记录

摘要: select*fromReportCustomMissionwhereProjectCodein(selectProjectCodefromReportCustomMissiongroupbyProjectCodehaving(count(*)>1)) 阅读全文

posted @ 2012-08-13 17:39 jxgxy 阅读(459) 评论(0) 推荐(0) 编辑

android 取网址的HTML代码

摘要: /****@paramaUrl网址*@paramaEncode编码*@return返回的HTML代码*@throwsException对外抛出异常*/publicStringgetHTML(StringaUrl,StringaEncode)throwsException{URLurl=newURL(aUrl);HttpURLConnectionconn=(HttpURLConnection)url.openConnection();conn.setConnectTimeout(5000);conn.setRequestMethod("GET");if(conn.getRes 阅读全文

posted @ 2012-08-13 16:00 jxgxy 阅读(475) 评论(0) 推荐(0) 编辑

android 判断SIM卡是哪个运营商

摘要: packagecom.eboy.checksimoperator;importandroid.app.Activity;importandroid.content.Context;importandroid.os.Bundle;importandroid.telephony.TelephonyManager;importandroid.view.Menu;importandroid.view.View;importandroid.widget.Toast;publicclassMainActivityextendsActivity{@OverridepublicvoidonCreate(Bun 阅读全文

posted @ 2012-08-13 14:55 jxgxy 阅读(2930) 评论(0) 推荐(0) 编辑

@Override must override a superclass method 问题解决

摘要: 如果在使用Eclipse开发Java项目时,在使用 @Override 出现以下错误:The method *** of type *** must override a superclass method主要是因为你的Compiler是jdk5,(5不支持@Override等形式的批注)只要把它改为6就可以了。方法:将window->preferences->java-compiler中的Compiler compliance level修改为6.0。 阅读全文

posted @ 2012-08-13 14:09 jxgxy 阅读(956) 评论(0) 推荐(0) 编辑

android 通话录音实现

摘要: 因受系统限制,只能录自已麦的声音,录不到对方的声音,可能需要改内核才能实现双向录音;接通电话和挂断电话时,震动一下;使用广播接收者实现自启动;服务代码:packagecom.eboy.phoneListener;importjava.io.File;importandroid.app.Service;importandroid.content.Context;importandroid.content.Intent;importandroid.media.MediaRecorder;importandroid.os.Environment;importandroid.os.IBinder;im 阅读全文

posted @ 2012-08-13 11:55 jxgxy 阅读(15556) 评论(1) 推荐(1) 编辑

导航