转:http://blog.csdn.net/h7870181/article/details/83329911、方法一(如果输入法在窗口上已经显示,则隐藏,反之则显示)InputMethodManager imm = (InputMethodManager) getSystemService(Co...
分类:
移动开发 时间:
2014-09-11 18:45:02
阅读次数:
219
privatebooleanisServiceStart(){ActivityManagermyManager=(ActivityManager)getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);ArrayListr...
分类:
移动开发 时间:
2014-09-10 00:23:49
阅读次数:
242
private boolean isServiceStart() {
ActivityManager myManager = (ActivityManager) getApplicationContext()
.getSystemService(Context.ACTIVITY_SERVICE);
ArrayList runningService = (ArrayList) myM...
分类:
移动开发 时间:
2014-09-09 13:27:48
阅读次数:
208
/**
* 判断网络连接状态
*/
public static boolean isNetworkAvailable(Context context) {
ConnectivityManager cwjManager = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
Netw...
分类:
其他好文 时间:
2014-09-05 11:24:21
阅读次数:
143
TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); String imei = tm.getDeviceId(); String tel = tm.g...
分类:
移动开发 时间:
2014-09-04 14:35:49
阅读次数:
272
/** * 检测网络是否可用 * * @return */ public boolean isNetworkConnected() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVI...
分类:
移动开发 时间:
2014-09-01 17:28:53
阅读次数:
171
/** *使用系统自带下载功能 *@paramcontext *@parampath下载的URL */ publicstaticvoidsystemDownload(Contextcontext,Stringpath){ DownloadManagerdownloadManager=(DownloadManager)context .getSystemService(context.DOWNLOAD_SERVICE); if(path==null){ return; ..
分类:
其他好文 时间:
2014-09-01 15:47:24
阅读次数:
189
private Vibrator vibrator;取得震动服务的句柄vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);或者vibrator = (Vibrator)getApplication().getSystemService(S...
分类:
移动开发 时间:
2014-08-31 13:09:11
阅读次数:
232
IMEI号,IESI号,手机型号:privatevoidgetInfo(){TelephonyManagermTm=(TelephonyManager)getSystemService(TELEPHONY_SERVICE);Stringimei=mTm.getDeviceId();Stringims...
分类:
移动开发 时间:
2014-08-31 13:04:31
阅读次数:
342
1 public void getPhoneInfo() { 2 TelephonyManager tm = (TelephonyManager) this.getSystemService(TELEPHONY_SERVICE); 3 String mtyb = android.os.B...
分类:
移动开发 时间:
2014-08-30 20:25:29
阅读次数:
235