09 2013 档案
摘要:http://www.cnblogs.com/jqyp/archive/2010/12/10/1902498.html
阅读全文
摘要:package com.gufengxiachen.broadcast;import android.app.Service;import android.content.Intent;import android.os.IBinder;public class LocalService extends Service{ private int progress; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override publ...
阅读全文
摘要:@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Intent intent = new Intent(); intent.setClass(TestActivity.this, FirstService.class); startService(intent); package ...
阅读全文
摘要:android导入第三方jar包报错 如何正确导入jar包详细出处参考:http://www.jb51.net/article/32607.htm在android上导入zxing.jar包,总是报错:Could not find class 'com.google.zxing.MultiFormatWriter', referenced from method com.changyang.app.util.Encode2dUtil.creat2DCode后来找到了解决方法:在adt17 的版本之前,导入第三方jar包时要建立一个lib目录,并 add to buiild pat
阅读全文
摘要:package testjson;import java.util.List;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;public class JsonUtil { //把JSON文本parse为JavaBean public static final T parseObject(String text, Class clazz){ return JSON.parseObject(tex...
阅读全文