摘要: public void Test (int i) { switch (i){ case 0: ... case 1: ... default: ... } 阅读全文
posted @ 2018-07-18 21:02 时光正好, 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 总结:生成列表需要的三个因素是:listView,适配器,数据源。适配器绑定数据源listView绑定适配器public class MainActivity extends Activity implements AdapterView.OnItemClickListener{//实现列表的监听接口 List data; private ListView listView; ... 阅读全文
posted @ 2018-07-18 20:50 时光正好, 阅读(277) 评论(0) 推荐(0) 编辑
摘要: //第一个例子 //第二个例子 //第三个例子 阅读全文
posted @ 2018-02-07 19:24 时光正好, 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: //从ActivityA跳转至ActivityB //跳转需在AndroidManfest.xml设置权限, 阅读全文
posted @ 2018-01-10 13:51 时光正好, 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.sina.com.cn/s/blog_5f1bfbd901015d5d.html 阅读全文
posted @ 2017-06-01 22:29 时光正好, 阅读(6477) 评论(0) 推荐(0) 编辑
摘要: package com.mialab.parse; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.mialab.parse.bean.Person; import com.mialab.parse.util.Htt... 阅读全文
posted @ 2017-04-23 21:41 时光正好, 阅读(169) 评论(0) 推荐(0) 编辑
摘要: //ALT+Enter, 自行引入相应的包, 1 public class MainActivity extends Activity { 2 3 @SuppressLint("InlinedApi") 4 @Override 5 protected void onCreate(Bundle savedInstanceState) {... 阅读全文
posted @ 2017-04-21 22:01 时光正好, 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: //只是简单地实现了加密解密,并未实现 验证参数p,q互质,e与(p-1)(q-1)互质import java.util.*; public class RSA{ public static void main (String args[]){ System.out.println("请依次输入p,q,e,字母数值 "); ... 阅读全文
posted @ 2017-04-08 12:18 时光正好, 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 public class FangSheMiMa{ 3 public static void main (String args[]){ 4 System.out.println("请依次输入k1,k2,字母数值"); 5 S... 阅读全文
posted @ 2017-03-11 13:57 时光正好, 阅读(2304) 评论(0) 推荐(0) 编辑
摘要: (一)、调用本地联系人: Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(ContactsContract.Contacts.CONTENT_TYPE); startActivityForResult(intent, PICK_CONTACT); (二)、调用图库,获取所有本地图片: Intent i... 阅读全文
posted @ 2017-03-11 13:29 时光正好, 阅读(940) 评论(0) 推荐(0) 编辑