摘要: public class GPSService extends Service { private LocationManager lm; private MyListener listener; private SharedPreferences sp; @Override public IBin... 阅读全文
posted @ 2015-11-23 13:29 黑土白云 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:public class FocusedTextView extends TextView { public FocusedTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attr... 阅读全文
posted @ 2015-11-23 13:26 黑土白云 阅读(151) 评论(0) 推荐(0) 编辑
摘要: public class UpdateInfoParser { /** * 解析服务器返回的输入流 * * @param is * @return 更新信息 null解析失败 */ public static UpdateInfo getUpdateInfos(InputStream i... 阅读全文
posted @ 2015-11-23 13:23 黑土白云 阅读(305) 评论(0) 推荐(0) 编辑
摘要: public class UpdateInfoParser { /** * 解析服务器返回的输入流 * * @param is * @return 更新信息 null解析失败 */ public static UpdateInfo getUpdateInfos(InputStream i... 阅读全文
posted @ 2015-11-23 13:18 黑土白云 阅读(211) 评论(0) 推荐(0) 编辑
摘要: public class ContactInfoProvider { /** * 返回系统所有的联系人信息 * @param context * @return */ public static List getContactInfos(Context context) { // 1.查... 阅读全文
posted @ 2015-11-23 13:17 黑土白云 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //1.定义一个手势识别器 private GestureDetector mGestureDetector;//2.初始化手势识别器 mGestureDetector = new GestureDetector(this, new GestureDetector.SimpleOnGestureL... 阅读全文
posted @ 2015-11-23 13:16 黑土白云 阅读(127) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); // 拷贝... 阅读全文
posted @ 2015-11-23 13:12 黑土白云 阅读(227) 评论(0) 推荐(0) 编辑
摘要: public String geLocalVersion() { PackageManager pm = getPackageManager(); try { PackageInfo packInfo = pm.getPackageInfo(getPackageName(), 0); ... 阅读全文
posted @ 2015-11-23 13:11 黑土白云 阅读(134) 评论(0) 推荐(0) 编辑
摘要: /** *afinal框架多线程下载 安装apk */ protected void downLoadApk() { final ProgressDialog pd = new ProgressDialog(this); pd.setTitle("正在下载"); pd.setProgre... 阅读全文
posted @ 2015-11-23 13:08 黑土白云 阅读(144) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-11-23 12:59 黑土白云 阅读(0) 评论(0) 推荐(0) 编辑