code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (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 ap... | zyqm86-001 | src/com/commonsware/cwac/merge/MergeAdapter.java | Java | asf20 | 8,418 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import a... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 19,305 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.HashSet;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.widget.ListView;
import com... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/SearchResultActivity.java | Java | asf20 | 7,652 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/service/BootReceiver.java | Java | asf20 | 1,245 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/service/TwitterService.java | Java | asf20 | 15,398 |
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 com.ch_linghu.fanfoudroid.FanfouWidget;
import com.ch_linghu.fanfoudroid.R;
imp... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/service/WidgetService.java | Java | asf20 | 4,494 |
package com.ch_linghu.fanfoudroid.data;
import com.ch_linghu.fanfoudroid.weibo.DirectMessage;
import com.ch_linghu.fanfoudroid.weibo.User;
import com.ch_linghu.fanfoudroid.helper.Utils;
public class Dm extends Message {
@SuppressWarnings("unused")
private static final String TAG = "Dm";
public bool... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/data/Dm.java | Java | asf20 | 874 |
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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,792 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,276 |
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 St... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 517 |
package com.ch_linghu.fanfoudroid.data;
import android.content.ContentValues;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| zyqm86-001 | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 222 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/TwitterActivity.java | Java | asf20 | 6,765 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import com.ch_linghu.fanfoudro... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 11,669 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/WriteActivity.java | Java | asf20 | 20,670 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.db.TwitterDatabase;
... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 7,284 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,004 |
package com.ch_linghu.fanfoudroid.ui.base;
import java.io.File;
import android.app.Activity;
import android.app.SearchManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 8,987 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.animatio... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java | Java | asf20 | 7,082 |
package com.ch_linghu.fanfoudroid.ui.base;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java | Java | asf20 | 8,211 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java | Java | asf20 | 17,171 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuI... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 13,976 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 16,914 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import java.text.ParseException;
import java.util.Date;
import java.util.List;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.preference.PreferenceManager;... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java | Java | asf20 | 3,822 |
package com.ch_linghu.fanfoudroid.ui.module;
import com.ch_linghu.fanfoudroid.R;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
im... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java | Java | asf20 | 2,701 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java | Java | asf20 | 7,009 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import java.text.ParseException;
import java.util.Date;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.preference.PreferenceManager;
import android.util.Lo... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java | Java | asf20 | 5,400 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphic... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java | Java | asf20 | 9,344 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.graphics.Color;
import android.text.Editable;
import android.text.InputFilter;
import android.text.Selection;
import android.text.TextWatcher;
import android.view.View.OnKeyListener;
import android.widget.EditText;
import android.widget.TextView;
... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java | Java | asf20 | 2,607 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.helper.ImageCache;
import com.ch_linghu.fanfoudroid.helper.Preferences... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java | Java | asf20 | 4,268 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.AbsListView;
import android.widget.ListView;
public class MyListView extends ListView implements ListView.OnScrollListener {
private int mS... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java | Java | asf20 | 1,620 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.widget.ListAdapter;
public interface TweetAdapter extends ListAdapter{
void refresh();
}
| zyqm86-001 | src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java | Java | asf20 | 152 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.base.UserArrayBaseActivity;
import com.ch_linghu.f... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/FollowersActivity.java | Java | asf20 | 2,557 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/MentionActivity.java | Java | asf20 | 3,419 |
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 HttpE... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/http/HttpException.java | Java | asf20 | 741 |
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.ArrayList;
import... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/http/HttpClient.java | Java | asf20 | 26,105 |
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Patter... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/http/Response.java | Java | asf20 | 8,925 |
package com.ch_linghu.fanfoudroid.http;
import java.util.HashMap;
import java.util.Map;
public class HTMLEntity {
public static String escape(String original) {
StringBuffer buf = new StringBuffer(original);
escape(buf);
return buf.toString();
}
public static void escape(StringBuf... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/http/HTMLEntity.java | Java | asf20 | 26,524 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/LoginActivity.java | Java | asf20 | 10,440 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/FavoritesActivity.java | Java | asf20 | 4,526 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;
import android.widget.TextView;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoud... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/UserTimelineActivity.java | Java | asf20 | 11,104 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.database.Cursor;
import android.os.Bundle;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfo... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/BrowseActivity.java | Java | asf20 | 1,977 |
package com.ch_linghu.fanfoudroid.task;
import java.util.HashMap;
import org.json.JSONException;
import com.ch_linghu.fanfoudroid.http.HttpException;
/**
* 暂未使用,待观察是否今后需要此类
* @author lds
*
*/
public class TaskParams {
private HashMap<String, Object> params = null;
public TaskParams() {
params = new Has... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/TaskParams.java | Java | asf20 | 3,288 |
package com.ch_linghu.fanfoudroid.task;
import android.util.Log;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.base.BaseActivity... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/TweetCommonTask.java | Java | asf20 | 2,896 |
package com.ch_linghu.fanfoudroid.task;
public interface TaskListener {
String getName();
void onPreExecute(GenericTask task);
void onPostExecute(GenericTask task, TaskResult result);
void onProgressUpdate(GenericTask task, Object param);
void onCancelled(GenericTask task);
}
| zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/TaskListener.java | Java | asf20 | 285 |
package com.ch_linghu.fanfoudroid.task;
import java.util.Observable;
import java.util.Observer;
import android.util.Log;
public class TaskManager extends Observable {
private static final String TAG = "TaskManager";
public static final Integer CANCEL_ALL = 1;
public void cancelAll() {
... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/TaskManager.java | Java | asf20 | 506 |
package com.ch_linghu.fanfoudroid.task;
import java.util.Observable;
import java.util.Observer;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.TwitterApplication;
public abstract class GenericTask extends AsyncTask<TaskParams, Object, TaskResult> ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/GenericTask.java | Java | asf20 | 2,154 |
package com.ch_linghu.fanfoudroid.task;
public abstract class TaskAdapter implements TaskListener {
public abstract String getName();
public void onPreExecute(GenericTask task) {};
public void onPostExecute(GenericTask task, TaskResult result) {};
public void onProgressUpdate(GenericTask task, Object... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/TaskAdapter.java | Java | asf20 | 384 |
package com.ch_linghu.fanfoudroid.task;
public enum TaskResult {
OK,
FAILED,
CANCELLED,
NOT_FOLLOWED_ERROR,
IO_ERROR,
AUTH_ERROR
} | zyqm86-001 | src/com/ch_linghu/fanfoudroid/task/TaskResult.java | Java | asf20 | 141 |
/*
Copyright (c) 2007-2009
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following dis... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Query.java | Java | asf20 | 6,707 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Photo.java | Java | asf20 | 3,159 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/QueryResult.java | Java | asf20 | 6,404 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/WeiboSupport.java | Java | asf20 | 2,561 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Trend.java | Java | asf20 | 3,322 |
/*
* UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package com.ch_linghu.fanfoudroid.weibo;
import java.io.Serializable;
import java.util.List;
/**
* 对User对象列表进行的包装,以支持cursor相关信息传递
* @author liudaoru - daoru at sina.com.cn
*/
public class UserWapper implements Serializ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/UserWapper.java | Java | asf20 | 1,280 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/WeiboResponse.java | Java | asf20 | 9,545 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Weibo.java | Java | asf20 | 61,326 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Configuration.java | Java | asf20 | 12,101 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/User.java | Java | asf20 | 25,388 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Trends.java | Java | asf20 | 6,594 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Status.java | Java | asf20 | 13,533 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/IDs.java | Java | asf20 | 5,037 |
package com.ch_linghu.fanfoudroid.weibo;
/**
* An exception class that will be thrown when WeiboAPI calls are failed.<br>
* In case the Fanfou server returned HTTP error code, you can get the HTTP status code using getStatusCode() method.
*/
public class WeiboException extends Exception {
private int statusCode... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/WeiboException.java | Java | asf20 | 981 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/RetweetDetails.java | Java | asf20 | 6,254 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/RefuseError.java | Java | asf20 | 4,493 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/RateLimitStatus.java | Java | asf20 | 4,014 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/DirectMessage.java | Java | asf20 | 7,765 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/Paging.java | Java | asf20 | 3,846 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/weibo/SavedSearch.java | Java | asf20 | 5,040 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/PreferencesActivity.java | Java | asf20 | 2,577 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/AboutDialog.java | Java | asf20 | 1,798 |
package com.ch_linghu.fanfoudroid.db;
import java.util.Date;
/**
* All information of status table
*
*/
public final class StatusTablesInfo {
} | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/StatusTablesInfo.java | Java | asf20 | 159 |
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;
public final class UserInfoTable implements BaseColumns {
public static final String TAG = "U... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/UserInfoTable.java | Java | asf20 | 4,479 |
package com.ch_linghu.fanfoudroid.db.dao;
import java.util.ArrayList;
import java.util.Arrays;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Wrapper of SQliteDatabse#query, OOP style.
*
* Usage:
* ------------------------------------------------
*... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/dao/Query.java | Java | asf20 | 6,960 |
package com.ch_linghu.fanfoudroid.db.dao;
import android.database.Cursor;
/**
* Some as Spring JDBC RowMapper
*
* @see org.springframework.jdbc.core.RowMapper
* @see com.ch_linghu.fanfoudroid.db.dao.SqliteTemplate
* @param <T>
*/
public interface RowMapper<T> {
public T mapRow(Cursor cursor, int rowNum);
}... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/dao/RowMapper.java | Java | asf20 | 321 |
package com.ch_linghu.fanfoudroid.db.dao;
import com.ch_linghu.fanfoudroid.db.MessageTable;
// TODO
public class DirectMessageDAO {
private static final String TAG = "DirectMessageDAO";
private SqliteTemplate sqliteTemplate;
public DirectMessageDAO() {
sqliteTemplate = new SqliteTemplat... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/dao/DirectMessageDAO.java | Java | asf20 | 356 |
package com.ch_linghu.fanfoudroid.db.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.ch_linghu.fanfoudroid.db.TwitterDatabase;
/**
* Some as Spring JdbcTe... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/dao/SqliteTemplate.java | Java | asf20 | 2,373 |
package com.ch_linghu.fanfoudroid.db.dao;
public class DAOFactory {
public StatusDAO getStatusDAO() {
return new StatusDAO();
}
public DirectMessageDAO getDirectMessageDAO() {
return new DirectMessageDAO();
}
} | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/dao/DAOFactory.java | Java | asf20 | 249 |
package com.ch_linghu.fanfoudroid.db.dao;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data2.Status;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/dao/StatusDAO.java | Java | asf20 | 6,275 |
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 {
publ... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/MessageTable.java | Java | asf20 | 3,293 |
package com.ch_linghu.fanfoudroid.db;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.helper.Utils;
/**
* T... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/StatusTable.java | Java | asf20 | 6,758 |
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 {
... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/FollowTable.java | Java | asf20 | 4,626 |
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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/db/TwitterDatabase.java | Java | asf20 | 38,751 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.vie... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/SearchActivity.java | Java | asf20 | 11,038 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/WriteDmActivity.java | Java | asf20 | 11,842 |
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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/DmActivity.java | Java | asf20 | 17,142 |
package com.ch_linghu.fanfoudroid.helper;
import android.text.Spannable;
import android.text.method.LinkMovementMethod;
import android.text.method.MovementMethod;
import android.view.MotionEvent;
import android.widget.TextView;
public class TestMovementMethod extends LinkMovementMethod {
private double... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/TestMovementMethod.java | Java | asf20 | 1,339 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/Utils.java | Java | asf20 | 10,355 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/ImageManager.java | Java | asf20 | 12,775 |
package com.ch_linghu.fanfoudroid.helper;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
public interface ImageCache {
... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/ImageCache.java | Java | asf20 | 554 |
package com.ch_linghu.fanfoudroid.helper;
import android.graphics.Bitmap;
public interface ProfileImageCacheCallback {
void refresh(String url, Bitmap bitmap);
}
| zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/ProfileImageCacheCallback.java | Java | asf20 | 165 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/Preferences.java | Java | asf20 | 2,418 |
package com.ch_linghu.fanfoudroid.helper;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import android.graphics.Bitmap;
import android.util.Log;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.task.GenericTask;
import com.ch_linghu.fanfoudroid... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/ProfileImageCacheManager.java | Java | asf20 | 3,043 |
package com.ch_linghu.fanfoudroid.helper;
import java.util.HashMap;
import android.graphics.Bitmap;
public class MemoryImageCache implements ImageCache {
private HashMap<String, Bitmap> mCache;
public MemoryImageCache() {
mCache = new HashMap<String, Bitmap>();
}
@Override
public Bi... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/MemoryImageCache.java | Java | asf20 | 836 |
package com.ch_linghu.fanfoudroid.helper;
import android.app.Activity;
import android.content.Intent;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.LoginActivity;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.http.HttpAuthException;
import com.ch_linghu.fanfoudroid.http.HttpExce... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/helper/ExceptionHandler.java | Java | asf20 | 2,066 |
/*
* 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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/StatusActivity.java | Java | asf20 | 19,506 |
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... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/FollowingActivity.java | Java | asf20 | 3,297 |
package com.ch_linghu.fanfoudroid;
import java.util.HashSet;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.preference.PreferenceM... | zyqm86-001 | src/com/ch_linghu/fanfoudroid/TwitterApplication.java | Java | asf20 | 6,863 |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| zyqm86-001 | tools/openHttpDebug.sh | Shell | asf20 | 229 |
/* Javadoc 样式表 */
/* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */
/* 页面背景颜色 */
body { background-color: #FFFFFF; color:#000000 }
/* 标题 */
h1 { font-size: 145% }
/* 表格颜色 */
.TableHeadingColor { background: #CCCCFF; color:#000000 } /* 深紫色 */
.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* 淡紫色 */
.TableRowColor ... | zyqm86-001 | doc/stylesheet.css | CSS | asf20 | 1,370 |