上一页 1 ··· 8 9 10 11 12 13 下一页
  2015年11月9日
摘要: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 效果图片: 阅读全文
posted @ 2015-11-09 17:36 0代码狂人0 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1 package com.lixu.jiaohu; 2 3 import com.lixu.jiaohu.MyAppService.Mybind; 4 5 import android.app.Activity; 6 import android.app.Service; 7 import ... 阅读全文
posted @ 2015-11-09 16:37 0代码狂人0 阅读(537) 评论(0) 推荐(0) 编辑
摘要: package com.lixu.intentservice;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.Menu;import andr... 阅读全文
posted @ 2015-11-09 10:20 0代码狂人0 阅读(376) 评论(0) 推荐(0) 编辑
  2015年11月6日
摘要: package com.lixu.service;import android.app.Service;import android.content.Intent;import android.os.IBinder;import android.widget.Toast;//定义一个后台类publi... 阅读全文
posted @ 2015-11-06 11:05 0代码狂人0 阅读(270) 评论(0) 推荐(1) 编辑
  2015年11月4日
摘要: 在要传递数据的Activity上往intent里面put参数:intent.putExtra(KEY, "你好啊 这句话传给你!"); private String KEY="XX";在另一个Activity上也设置 private String KEY="XX";String str=getInt... 阅读全文
posted @ 2015-11-04 16:15 0代码狂人0 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 在Andoridmanifest中注册 用一个类继承BroadcastReceiverimport android.content.BroadcastReceiver;import andr... 阅读全文
posted @ 2015-11-04 15:02 0代码狂人0 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 import android.app.Activity; 2 import android.content.BroadcastReceiver; 3 import android.content.Context; 4 import android.content.Intent; 5 impor... 阅读全文
posted @ 2015-11-04 10:13 0代码狂人0 阅读(196) 评论(0) 推荐(0) 编辑
  2015年11月3日
摘要: 一、 ArrayAdapter ListView listView = (ListView) findViewById(R.id.list_view);//ListView的参数为id listView.setAdapter(new ArrayAdapter(this, android.R.la... 阅读全文
posted @ 2015-11-03 17:01 0代码狂人0 阅读(622) 评论(0) 推荐(0) 编辑
摘要: import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteDatabase.CursorFactory;import androi... 阅读全文
posted @ 2015-11-03 16:56 0代码狂人0 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1,通过sql命令来执行操作:/** * 对数据库进行添加操作 * sql:insert into person(name,age) values('sz',20);\ *缺陷: * 1. 传递参数很麻烦 * 2. 不能有返回值 */ ... 阅读全文
posted @ 2015-11-03 16:54 0代码狂人0 阅读(605) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页