摘要:
public class OutCallReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String number = getResultD... 阅读全文
摘要:
public class BootCompleteReceiver extends BroadcastReceiver { private static final String TAG = "BootCompleteReceiver"; @Override public void onReceiv... 阅读全文
摘要:
public class GPSService extends Service { private LocationManager lm; private MyListener listener; private SharedPreferences sp; @Override public IBin... 阅读全文
摘要:
第一种方式:public class FocusedTextView extends TextView { public FocusedTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attr... 阅读全文
摘要:
public class UpdateInfoParser { /** * 解析服务器返回的输入流 * * @param is * @return 更新信息 null解析失败 */ public static UpdateInfo getUpdateInfos(InputStream i... 阅读全文
摘要:
public class UpdateInfoParser { /** * 解析服务器返回的输入流 * * @param is * @return 更新信息 null解析失败 */ public static UpdateInfo getUpdateInfos(InputStream i... 阅读全文
摘要:
public class ContactInfoProvider { /** * 返回系统所有的联系人信息 * @param context * @return */ public static List getContactInfos(Context context) { // 1.查... 阅读全文
摘要:
//1.定义一个手势识别器 private GestureDetector mGestureDetector;//2.初始化手势识别器 mGestureDetector = new GestureDetector(this, new GestureDetector.SimpleOnGestureL... 阅读全文
摘要:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); // 拷贝... 阅读全文
摘要:
public String geLocalVersion() { PackageManager pm = getPackageManager(); try { PackageInfo packInfo = pm.getPackageInfo(getPackageName(), 0); ... 阅读全文
摘要:
/** *afinal框架多线程下载 安装apk */ protected void downLoadApk() { final ProgressDialog pd = new ProgressDialog(this); pd.setTitle("正在下载"); pd.setProgre... 阅读全文
该文被密码保护。 阅读全文
摘要:
MD5加密的本质就是把字符串的每个字节转化为int型再转化为对应的十六进制,然后存入StringBuilder中! 阅读全文
摘要:
一.激活设备管理器账户,1.设置完成界面 按钮的点击事件 public void activeAdmin(View view) { Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); Component... 阅读全文
摘要:
在Myeclipse或Eclipse的选项中:可以在这个jsp上右键->Open with->Myeclipse JSP Editer。默认的是Myelicpse Visual JSP designer这个编辑器非常耗资源,还会出现CPU100%的问题。更彻底的解决方法是:General->Edit... 阅读全文