上一页 1 2 3 4 5 6 7 ··· 10 下一页
  2014年7月2日
摘要: 注意:有些功能是需要权限的,在这里并没有写出来,在程序运行中,根据程序报的错误,添加相应的权限即可,里面的具体里面可能有一些小细节,没有明确的写出来,具体的需要在程序中自己调试,解决。 这个总结涵盖了Android的一些核心的内容,如四大组建Service、ContentProvider、Bro... 阅读全文
posted @ 2014-07-02 17:14 I love Android 阅读(3862) 评论(29) 推荐(37) 编辑
  2014年5月26日
摘要: 1 布局文件的设置,如下 2 3 4 10 11 15 16 21 22 29 30 38 39 49 50 ... 阅读全文
posted @ 2014-05-26 22:01 I love Android 阅读(395) 评论(0) 推荐(0) 编辑
  2014年5月23日
摘要: 解决方案: 将https修改为http://在Android SDK manager中,的tools文件夹下,选择options...选项, 勾选 Force https//... sources to be fetched using http:// 之后点击close 然后再 c:\\wi... 阅读全文
posted @ 2014-05-23 09:50 I love Android 阅读(269) 评论(0) 推荐(0) 编辑
  2014年1月2日
摘要: 1[3458]\d{4}(\d)\1{3}1 匹配 1[3458] 匹配 3 4 5 8 任意一个\d{4} 匹配 4个0-9(\d) 匹配 0-9并捕获到\1\1{4} 匹配 4个之前捕获到的\1public class Test9 { /** * 写一个正则表达式,可以匹配尾号5连的手机号。规则: 第1位是1,第二位可以是数字3458其中之一,后面4位任意数字,最后5位为任意相同的数字。 * 例如:18601088888、13912366666 * @param args */ public static void main(String[] args) { String reg... 阅读全文
posted @ 2014-01-02 20:16 I love Android 阅读(3114) 评论(1) 推荐(0) 编辑
  2013年12月23日
摘要: http://www.cnblogs.com/hoojo/archive/2012/01/29/2331215.html 阅读全文
posted @ 2013-12-23 21:05 I love Android 阅读(136) 评论(0) 推荐(0) 编辑
  2013年12月16日
摘要: 运行结果如下图: 阅读全文
posted @ 2013-12-16 21:26 I love Android 阅读(193) 评论(0) 推荐(0) 编辑
  2013年12月11日
摘要: public class Test { private static Scanner scanner; public static void main(String[] args) { scanner=new Scanner(System.in); checkMail(scanner.next()); } //邮箱验证 /* * 要求 * 1.长度为3到18位 * 2.包含大小写字母 和数字以及下划线 * 3. */ public static void checkMail(String mail) { //定义一个正则表达式 //开始是小写字母a到z或者大写字母A到Z或... 阅读全文
posted @ 2013-12-11 18:39 I love Android 阅读(209) 评论(0) 推荐(0) 编辑
  2013年12月9日
摘要: 下面看看我们如何使用它,达到我们想要的效果public class MainActivity extends Activity { /** * 双向滑动菜单布局 */ private SliderMenu SliderMenu; /** * 在内容布局上显示的ListView */ private ListView contentList; /** * ListView的适配器 */ private ArrayAdapter contentListAdapter; /** * 用于填充conten... 阅读全文
posted @ 2013-12-09 13:54 I love Android 阅读(2085) 评论(1) 推荐(0) 编辑
  2013年11月25日
摘要: PopupWindow window=new PopupWindow(view, LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);//必须让popupwindow获得焦点时才能弹出输入法window.setFocusable(true); 阅读全文
posted @ 2013-11-25 17:56 I love Android 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: //选择图片,调用图库 bt4.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); intent.putExtra("crop", true); intent.putExtra("return-data", true); startActivityForResu 阅读全文
posted @ 2013-11-25 11:47 I love Android 阅读(1594) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页