07 2013 档案

摘要:String.contains("全勤") 阅读全文
posted @ 2013-07-30 15:36 xxdc 阅读(197) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-30 13:10 xxdc 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-26 09:24 xxdc 阅读(1) 评论(0) 推荐(0)
摘要:package com.wiiy.jtb.manager;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import org.apache.http.NameValuePair;import org.apache.http.message.BasicNameValuePair;import org.json.JSONArray;import org.json.JSONException;import org.json.JSONObject;import com.wiiy.jtb.R;impor 阅读全文
posted @ 2013-07-26 09:07 xxdc 阅读(541) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-25 11:17 xxdc 阅读(0) 评论(0) 推荐(0)
摘要:viewitem.bargain_price = (EditText) view.findViewById(R.id.bargain_price);viewitem.bargain_price.setFocusable(true); viewitem.bargain_price.setFocusableInTouchMode(true); viewitem.bargain_price.requestFocus(); Timer timer = new Timer(); timer.sc... 阅读全文
posted @ 2013-07-23 15:35 xxdc 阅读(704) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-23 15:10 xxdc 阅读(0) 评论(0) 推荐(0)
摘要:// 获取编辑框焦点editText.setFocusable(true);//打开软键盘InputMethodManager imm = (InputMethodManager) ctx.getSystemService(Context.INPUT_METHOD_SERVICE);imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);//关闭软键盘imm.hideSoftInputFromWindow(editText.getWindowToken(), 0); 阅读全文
posted @ 2013-07-22 22:40 xxdc 阅读(282) 评论(0) 推荐(0)
摘要:有时候我们再做一个程序的时候需要根据当前焦点是不是在桌面来做相应的处理/**get the launcher status */ private boolean isLauncherRunnig(Context context) { boolean result = false ; List names = getAllTheLauncher(); ActivityManager mActivityManager = (ActivityManager) context.getSystemService(Context.A... 阅读全文
posted @ 2013-07-16 15:22 xxdc 阅读(645) 评论(0) 推荐(0)
摘要:上一篇复习了Android生命周期和本地Service的使用,这一篇继续总结一下Android远程Service的使用,远程Service就是在新的进程中开启service,这样会遇到一个问题,就是进程间通信的问题。Android系统的进程之间不能共享内存,那怎么传递对象呢,需要把对象弄成操作系统可以识别的形式,在Android中,可以采用AIDL来公开服务的接口,采用远程过程调用(Remote Procedure Call,RPC)和代理模式来实现跨进程通信。AIDL:Android Interface Definition Language,即Android接口描述语言,ADT会根据aid 阅读全文
posted @ 2013-07-15 16:51 xxdc 阅读(507) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-15 16:22 xxdc 阅读(2) 评论(0) 推荐(0)
摘要:默认EditText在获得焦点时,会弹出软键盘,如果想实现当EditText获得焦点时,直接弹出对话框,像时间对话框,而不要弹出软键盘,该如何禁卡弹出软键盘?方法:即onCreate()中调用EditText实例的setInputType(InputType.TYPE_NULL),xml文件中定义EditText时,指定的Android:inputType="??",??可以任意。/** Init date EditText. */View.OnTouchListener dateEditTextOnTouchListener = new EditTextOnTouchLi 阅读全文
posted @ 2013-07-12 13:12 xxdc 阅读(615) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-11 10:53 xxdc 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2013-07-05 14:19 xxdc 阅读(1) 评论(0) 推荐(0)