上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 32 下一页
摘要: package com.baidu.location.service;import android.app.Service;import android.content.Intent;import android.os.IBinder;import android.util.Log;import a 阅读全文
posted @ 2016-07-19 10:41 Wei_java 阅读(590) 评论(0) 推荐(0) 编辑
摘要: package com.baidu.location.demo;import com.baidu.baidulocationdemo.R;import com.baidu.location.BDLocation;import com.baidu.location.BDLocationListener 阅读全文
posted @ 2016-07-19 10:40 Wei_java 阅读(496) 评论(0) 推荐(0) 编辑
摘要: private void getdialog() { final EditText et = new EditText(this); final String workid = this.workid; new AlertDialog.Builder(this).setTitle("请输入面积"). 阅读全文
posted @ 2016-07-19 10:21 Wei_java 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 和activity中互相传值类似 在activity中 Intent regIntent = new Intent(this, ChatService.class); regIntent.putExtra("student_id", student_id); startService(regInte 阅读全文
posted @ 2016-07-18 18:58 Wei_java 阅读(12197) 评论(0) 推荐(0) 编辑
摘要: package com.example.administrator.Activity;import android.content.Context;import android.content.Intent;import android.content.SharedPreferences;impor 阅读全文
posted @ 2016-07-17 12:17 Wei_java 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1、View注意设置成final类型如final View layout=。。。 2、获取文本框对象时候格式EditText e = (EditText)layout.findViewById(R.id);//这里记好了那个layout 是上面final View对象 不注意上面的你就无法获得对话框 阅读全文
posted @ 2016-07-17 10:40 Wei_java 阅读(8731) 评论(0) 推荐(1) 编辑
摘要: 我们在平时做开发的时候,免不了会用到各种各样的对话框,相信有过其他平台开发经验的朋友都会知道,大部分的平台都只提供了几个最简单的实现,如果我们想实现自己特定需求的对话框,大家可能首先会想到,通过继承等方式,重写我们自己的对话框。当然,这也是不失为一个不错的解决方式,但是一般的情况却是这样,我们重写的 阅读全文
posted @ 2016-07-17 10:17 Wei_java 阅读(966) 评论(0) 推荐(0) 编辑
摘要: Android开发中,当需要创建在后台运行的程序的时候,就要使用到Service。Service 可以分为有无限生命和有限生命两种。特别需要注意的是Service跟Activities是不同的(简单来说可以理解为后台与前台的区别),例如,如果需要使用Service的话,需要调用startServic 阅读全文
posted @ 2016-07-15 17:08 Wei_java 阅读(10809) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); String dateString = "2014/10/11 14:50:11"; Date date = df.parse(dateString); long s 阅读全文
posted @ 2016-07-15 16:47 Wei_java 阅读(3192) 评论(0) 推荐(0) 编辑
摘要: 1. 在执行速度方面的比较:StringBuilder > StringBuffer 2. StringBuffer与StringBuilder,他们是字符串变量,是可改变的对象,每当我们用它们对字符串做操作时,实际上是在一个对象上操作的,不像String一样创建一些对象进行操作,所以速度就快了。3 阅读全文
posted @ 2016-07-15 12:15 Wei_java 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 32 下一页