text stringlengths 3 1.18M |
|---|
package com.tanggh.listener;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import com.tanggh.entity.City;
import com.tanggh.service.CityService;
import com.... |
package com.tanggh.service;
import java.util.List;
import com.tanggh.entity.City;
public interface CityService extends GenericService<City> {
public List<City> getSortCity();
}
|
package com.tanggh.service;
public interface LogService {
public void addLog(String content);
}
|
package com.tanggh.service;
import com.tanggh.domain.Person;
public interface PersonService {
public void addPerson(Person person);
}
|
package com.tanggh.service;
import com.tanggh.entity.PersonalCer;
public interface PersonalCerService extends GenericService<PersonalCer> {
}
|
package com.tanggh.service;
import java.util.List;
import com.tanggh.entity.JobCategory;
public interface JobCategoryService extends GenericService<JobCategory> {
/**
* 根据JobCategory code值前两位查询
* @param code
* @return
*/
public List<JobCategory> getCategoryByCode(String code);
}
|
package com.tanggh.service;
import com.tanggh.entity.CompanyCer;
public interface CompanyCerService extends GenericService<CompanyCer> {
}
|
package com.tanggh.service.impl;
import java.util.Date;
import com.tanggh.dao.PersonDao;
import com.tanggh.domain.Person;
import com.tanggh.service.LogService;
import com.tanggh.service.PersonService;
public class PersonServiceImpl implements PersonService {
private PersonDao personDao;
private LogSe... |
package com.tanggh.service.impl;
import com.tanggh.dao.LogDao;
import com.tanggh.domain.Log;
import com.tanggh.service.LogService;
public class LogServiceImpl implements LogService {
private LogDao logDao;
public void setLogDao(LogDao logDao) {
this.logDao = logDao;
}
@Override
public void... |
package com.tanggh.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.tanggh.dao.GenericDao;
import com.tanggh.dao.JobCategoryDao;
import... |
package com.tanggh.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.tanggh.dao.GenericDao;
import com.tanggh.entity.CompanyCer;
import com.tanggh.service.Company... |
package com.tanggh.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.tanggh.dao.CityDao;
import com.tanggh.dao.GenericDao;
import com.ta... |
package com.tanggh.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.tanggh.dao.GenericDao;
import com.tanggh.entity.PersonalCer;
import com.tanggh.service.Person... |
package com.tanggh.service.impl;
import java.util.List;
import org.springframework.stereotype.Service;
import com.tanggh.dao.GenericDao;
import com.tanggh.service.GenericService;
@Service
public abstract class GenericServiceImpl<M extends java.io.Serializable> implements GenericService<M> {
protected G... |
package com.tanggh.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.tanggh.dao.GenericDao;
import com.tanggh.dao.UserDao;
import com.tanggh.entity.User;
import ... |
package com.tanggh.service;
import com.tanggh.entity.User;
public interface UserService extends GenericService<User> {
public boolean checkEmailExist(String email);
public User findUser(User user);
}
|
package com.tanggh.service;
import java.util.List;
public interface GenericService<M extends java.io.Serializable> {
public Integer save(M model);
public void saveOrUpdate(M model);
public void update(M model);
public void merge(M model);
public void delete(Integer id);
public void delete... |
package com.tanggh.entity;
/**
*@author tanggh
*/
public class LocationTemp {
private String name;
private String url;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String ... |
package com.tanggh.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* City entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "City")
public class City implements java... |
package com.tanggh.entity;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Lists<VALUE> {
private List<VALUE> values = new ArrayList<VALUE>();
@XmlAnyElement(lax=tru... |
package com.tanggh.entity;
// default package
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* User entity. @author MyEclip... |
package com.tanggh.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* PersonalCer entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "Person... |
package com.tanggh.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* CompanyCer entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "Company... |
package com.tanggh.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* JobCategory entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "JobCategory")
public class JobCat... |
package com.tanggh.dao;
import com.tanggh.domain.Log;
public interface LogDao {
public void addLog(Log log);
}
|
package com.tanggh.dao;
import com.tanggh.entity.User;
public interface UserDao extends GenericDao<User> {
public int checkEmailExist(String email);
public User findUser(User user);
}
|
package com.tanggh.dao;
import com.tanggh.entity.PersonalCer;
public interface PersonalCerDao extends GenericDao<PersonalCer>{
}
|
package com.tanggh.dao;
import java.util.List;
public interface GenericDao<M extends java.io.Serializable> {
public Integer save(M model);
public void saveOrUpdate(M model);
public void update(M model);
public void merge(M model);
public void delete(Integer id);
publ... |
package com.tanggh.dao;
import com.tanggh.domain.Person;
public interface PersonDao {
void addPerson(Person person);
}
|
package com.tanggh.dao.impl;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import com.tanggh.dao.UserDao;
import com.tanggh.entity.User;
@Repository
public class UserDaoImpl extends GenericDaoImpl<User> implements UserDao {
@Override
public int checkEmailExist(Strin... |
package com.tanggh.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import com.tanggh.dao.JobCategoryDao;
import com.tanggh.entity.JobCategory;
@Repository
public class JobCategoryDaoImpl extends GenericDaoImpl<JobCategory> implements JobCateg... |
package com.tanggh.dao.impl;
import com.tanggh.dao.LogDao;
import com.tanggh.domain.Log;
public class LogDaoImpl extends BaseDao implements LogDao {
@Override
public void addLog(Log log) {
getSession().save(log);
}
}
|
package com.tanggh.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import com.tanggh.dao.CityDao;
import com.tanggh.entity.City;
@Repository
public class CityDaoImpl extends GenericDaoImpl<City> implements CityDao {
@Override
public Lis... |
package com.tanggh.dao.impl;
import org.springframework.stereotype.Repository;
import com.tanggh.dao.PersonalCerDao;
import com.tanggh.entity.PersonalCer;
@Repository
public class PersonalCerDaoImpl extends GenericDaoImpl<PersonalCer> implements PersonalCerDao{
}
|
package com.tanggh.dao.impl;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
public class BaseDao {
private SessionFactory sessionFactory;
public void setSessionFactory(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
protected Session getSession() {
... |
package com.tanggh.dao.impl;
import org.springframework.stereotype.Repository;
import com.tanggh.dao.CompanyCerDao;
import com.tanggh.entity.CompanyCer;
@Repository
public class CompanyCerDaoImpl extends GenericDaoImpl<CompanyCer> implements CompanyCerDao{
}
|
package com.tanggh.dao.impl;
import com.tanggh.dao.PersonDao;
import com.tanggh.domain.Person;
public class PersonDaoImpl extends BaseDao implements PersonDao {
@Override
public void addPerson(Person person) {
getSession().save(person);
throw new RuntimeException("test excep");
}
}
|
package com.tanggh.dao.impl;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import javax.annotation.Resource;
import javax.persistence.Id;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Se... |
package com.tanggh.dao;
import java.util.List;
import com.tanggh.entity.City;
public interface CityDao extends GenericDao<City> {
public List<City> getSortCity();
}
|
package com.tanggh.dao;
import com.tanggh.entity.CompanyCer;
public interface CompanyCerDao extends GenericDao<CompanyCer>{
}
|
package com.tanggh.dao;
import java.util.List;
import com.tanggh.entity.JobCategory;
public interface JobCategoryDao extends GenericDao<JobCategory> {
/**
* 根据JobCategory code值前两位查询
* @param code
* @return
*/
public List<JobCategory> getCategoryByCode(String code);
}
|
package com.tanggh.tag;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.AbstractUITag;
import com.opensymphony.xwork2.util.ValueStack;
public class HeadTag extends AbstractUI... |
package com.tanggh.tag;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.UIBean;
import com.opensymphony.xwork2.util.ValueStack;
import com.tanggh.util.Tools;
public class HeadBean extends UIBean {
private String title;
... |
package com.tanggh.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.StrutsStatics;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Abst... |
package com.tanggh.action;
import com.tanggh.domain.Person;
import com.tanggh.service.PersonService;
public class PersonAction {
private PersonService personService;
private Person person;
private String msg;
public void setPersonService(PersonService personService) {
this.personService = per... |
package com.tanggh.action;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.User;
import com.tanggh.service.UserService;
import com.tanggh.util.CookieManager;
import com.tanggh.util.Validator;
public class LoginAction extends GenericAction{
/**
*
*/
privat... |
package com.tanggh.action;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.User;
import com.tanggh.service.UserService;
public class RegisterAction extends GenericAction {
private static fin... |
package com.tanggh.action;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.JobCategory;
import com.tanggh.service.JobCategoryService;
import com.tanggh.util.TemplateUtils;
public class AdminGenerateAction extends GenericAction{
@Autowired
... |
package com.tanggh.action;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.City;
import com.tanggh.service.CityService;
import com.tanggh.util.CacheUtils;
public class CityAction extends GenericAction {
private static final long serialVersionUID = 1L;
@Autowired... |
package com.tanggh.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.City;
import com.tanggh.service.CityService;
import com.tanggh.util.FreemarkerUtils;
import... |
package com.tanggh.action;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.User;
import com.tanggh.service.UserService;
import com.tanggh.util.Validator;
public class UserAction extends GenericAction {
private static final long serialVersion... |
package com.tanggh.action;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.JobCategory;
import com.tanggh.service.JobCategoryService;
import com.tanggh.util.TemplateUtils;
import com.tanggh.util.Tools;
public class JobCategoryAction extends G... |
package com.tanggh.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletRespo... |
package com.tanggh.action;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.CompanyCer;
import com.tanggh.service.CompanyCerService;
public class CompanyCerAction extends GenericAction{
private static final long serialVersionUID = 1L;
@Autowired
private Compan... |
package com.tanggh.action;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.tanggh.domain.Person;
public class PersonActionTest {
... |
package com.tanggh.action;
import java.sql.Timestamp;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import com.sun.org.apache.bcel.internal.generic.NEW;
import com.tanggh.entity.PersonalCer;
import com.tanggh.service.PersonalCerService;
public class PersonalCerActi... |
package com.tanggh.common;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class ExportUtils {
public static void main(String[] args) {
Configuration cfg = new Configuration().configure();
SchemaExport e = new SchemaExport(cfg);
e.create(true,... |
package com.tanggh.util;
/**
*@author tanggh
*/
public class Config {
public static final class Site {
public static final String DOMAIN = "www.test.com";
public static final String HTTP_DOMAIN = "http://"+DOMAIN;
}
public static final class Date {
public static final String FORMAT = "yyyy-M... |
package com.tanggh.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.tanggh.entity.City;
import com.tanggh.entity.JobCategory;
import com.tanggh.entity.LocationTemp;
/**
*@author tanggh
*/
public class ... |
package com.tanggh.util;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Locale;
import java.util.Map;
import freemarker.template.Configu... |
package com.tanggh.util;
import java.util.regex.Pattern;
/**
*
* @author tanggaohong
* @version 1.0
*/
public class Validator {
/**
* 是不是一个电话号码 支持0773-4092242,4092242 两种格式
* @param input 需要验证的字符串
* @return 是 true;否 false
*/
public static boolean isTelephoneNumber(String input){
... |
package com.tanggh.util;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.u... |
package com.tanggh.util;
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import com.tanggh.entity.Lists;
public class XMLUtils{
public static void toXML(Lists<?> list,Class<?> clazz,String path) throws JAXBException{
toXML(l... |
package com.tanggh.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class JsonUtils {
/**
* 将对象转换为json格式
* @param obj
* @param dateFormat 日期格式,可有可无
* @return
*/
public static String toJson(Object obj,String...dateFormat) {
String format = "yyyy-MM-dd HH:mm:ss"... |
package com.tanggh.util;
import java.util.HashMap;
import java.util.Map;
/**
* 该缓存为永久缓存, 不适用定时缓存
* @author Administrator
*
*/
public class CacheUtils {
private static Map<Object, Object> map = new HashMap<Object, Object>();
public synchronized static void put(Object key, Object value) {
if(g... |
package com.tanggh.util;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
*
* @author tanggaohong
*
*/
public class CookieManager {
public static final String USER_ID = "userId";
private static CookieManager coo... |
package com.tanggh.test;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
... |
package com.tanggh.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
im... |
package com.tanggh.dao;
import com.tanggh.entity.Province;
public interface ProvinceDao extends GenericDao<Province>{
public void test();
}
|
package com.tanggh.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.tanggh.dao.GenericDao;
import com.tanggh.entity.Province;
import com.tanggh.service.ProvinceS... |
package com.tanggh.service;
import com.tanggh.entity.Province;
public interface ProvinceService extends GenericService<Province> {
}
|
package com.tanggh.dao.impl;
import org.springframework.stereotype.Repository;
import com.tanggh.dao.ProvinceDao;
import com.tanggh.entity.Province;
@Repository
public class ProvinceDaoImpl extends GenericDaoImpl<Province> implements ProvinceDao {
@Override
public void test() {
System.out.println("P... |
package com.tanggh.action;
import java.io.File;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import org.springframework.beans.factory.annotation.Autowired;
import com.tanggh.entity.City;
import com.tanggh.entity.Lists;
... |
package com.tanggh.entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persi... |
package com.markupartist.android.widget;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.LayoutInflater;
import android.view.MotionEv... |
package com.ch_linghu.fanfoudroid;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.B... |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Adapte... |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package com.ch_linghu.fanfoudroid.data;
import com.ch_linghu.fanfoudroid.fanfou.DirectMessage;
import com.ch_linghu.fanfoudroid.fanfou.User;
import com.ch_linghu.fanfoudroid.util.TextHelper;
public class Dm extends Message {
@SuppressWarnings("unused")
private static final String TAG = "Dm";
public bool... |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
public class Message {
public String id;
public String screenName;
public String text;
public String profileImageUrl;
public Date createdAt;
public String userId;
public String favorited;
public String truncated;
public String inRe... |
package com.ch_linghu.fanfoudroid.data;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
|
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
import android.os.Parcel;
import android.os.Parcelable;
public class User implements Parcelable {
public String id;
public String name;
public String screenName;
public String location;
public String description;
public String profil... |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package com.ch_linghu.fanfoudroid.db;
/**
* All information of status table
*
*/
public final class StatusTablesInfo {
} |
package com.ch_linghu.fanfoudroid.db;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.util.DateTimeHelper;
/**
* Table - Statuses <br />
* <br />
* 为节省流量,故此表不保证本地数据库中所有消息具有前后连贯性, 而只确保最新的MAX_... |
package com.ch_linghu.fanfoudroid.db;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.User;
public final class UserInfoTable implements BaseColumns {
public static final String TAG = "UserInfoTable";
public static fin... |
package com.ch_linghu.fanfoudroid.db;
import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Locale;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
imp... |
package com.ch_linghu.fanfoudroid.db;
import java.text.ParseException;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.User;
/**
* Table - Followers
*
*/
public final class FollowTable implements BaseColumns {
public static fi... |
package com.ch_linghu.fanfoudroid.db;
import java.text.ParseException;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Dm;
/**
* Table - Direct Messages
*
*/
public final class MessageTable implements BaseColumns {
public stat... |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package com.ch_linghu.fanfoudroid;
import java.util.HashSet;
//import org.acra.ReportingInteractionMode;
//import org.acra.annotation.ReportsCrashes;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net... |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package com.ch_linghu.fanfoudroid.service;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.... |
package com.ch_linghu.fanfoudroid.service;
import java.util.List;
import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
/**
* Location S... |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package com.ch_linghu.fanfoudroid.service;
public interface IService {
void startService();
void stopService();
}
|
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse... |
package com.ch_linghu.fanfoudroid.http;
/**
* HTTP StatusCode is not 200
*/
public class HttpException extends Exception {
private int statusCode = -1;
public HttpException(String msg) {
super(msg);
}
public HttpException(Exception cause) {
super(cause);
}
public HttpException(String msg, int statusCode... |
package com.ch_linghu.fanfoudroid.http;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.zip.GZIPInputStream;
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.