码迷,mamicode.com
首页 >  
搜索关键字:getsystemservice    ( 396个结果
Android 手动显示和隐藏软键盘
转:http://blog.csdn.net/h7870181/article/details/83329911、方法一(如果输入法在窗口上已经显示,则隐藏,反之则显示)InputMethodManager imm = (InputMethodManager) getSystemService(Co...
分类:移动开发   时间:2014-09-11 18:45:02    阅读次数:219
Android 判断Service是否已经运行
privatebooleanisServiceStart(){ActivityManagermyManager=(ActivityManager)getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);ArrayListr...
分类:移动开发   时间:2014-09-10 00:23:49    阅读次数:242
Android 判断Service是否已经运行
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
android 检测网络是否可用
/** * 检测网络是否可用 * * @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
android Vibrator 使用
private Vibrator vibrator;取得震动服务的句柄vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);或者vibrator = (Vibrator)getApplication().getSystemService(S...
分类:移动开发   时间:2014-08-31 13:09:11    阅读次数:232
android获取手机信息2
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
396条   上一页 1 ... 31 32 33 34 35 ... 40 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!