上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 直接看代码 1 public class MainActivity extends Activity { 2 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.on... 阅读全文
posted @ 2015-10-21 17:07 龟窝 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1. Intent对象的Activity启动标记说明:FLAG_ACTIVITY_BROUGHT_TO_FRONT:应用程序代码中通常不设置这个标记,而是由系统给单任务启动模式的Activity的设置。FLAG_ACTIVITY_CLEAR_TASK:如果给Intent对象添加了这个标记,那么在Ac... 阅读全文
posted @ 2015-10-11 21:54 龟窝 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 首先需要下载core和android两个jarhttp://ormlite.com/releases/然后拷贝到libs文件夹下并且添加为库具体的使用看标程:School.java 1 package com.turtle920.ormlitedemo; 2 3 import com.j256.o... 阅读全文
posted @ 2015-10-11 21:49 龟窝 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 首先需要implements1 public class MainActivity extends AppCompatActivity implements OnItemLongClickListener再绑定1 ListView listView = (ListView)findViewById... 阅读全文
posted @ 2015-10-11 21:23 龟窝 阅读(709) 评论(0) 推荐(1) 编辑
摘要: a、Activity1发送: Intent intent = new Intent();intent.setClass(activity1.this, activity2.class);//描述起点和目标Bundle bundle = new Bundle();//创建Bundle对象bundle... 阅读全文
posted @ 2015-10-09 12:22 龟窝 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1 Intent intent = new Intent(Intent.ACTION_VIEW);2 intent.setData(Uri.parse("geo:20.000,50.000"));3 startActivity(... 阅读全文
posted @ 2015-10-09 11:04 龟窝 阅读(180) 评论(0) 推荐(0) 编辑
摘要: java中: 1 public class MainActivity extends Activity implements OnCheckedChangeListener{ 2 3 private Switch aSwitch; 4 5 @Override 6 prot... 阅读全文
posted @ 2015-10-09 10:14 龟窝 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 1 InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);//这两行是弹出软键盘2 imm.showSoftInput(textView,... 阅读全文
posted @ 2015-10-09 10:09 龟窝 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 public class MyActivity extends Activity 2 { 3 private KeyListener listener; 4 private EditText editText; 5 6 public void onCreate(...... 阅读全文
posted @ 2015-10-08 17:18 龟窝 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 关于设置listener监听onClicked事件的步骤分析Steps:1.tell android you are interested in listening to a button click2.bring your xml button inside java3.tell your jav... 阅读全文
posted @ 2015-10-08 13:27 龟窝 阅读(242) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页