code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
/*
* 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... | zxfjava2007-fanfou | 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;
... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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();
}
| zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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;
... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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;... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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;
... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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();
}
| zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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);
}
| zxfjava2007-fanfou | 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() {
... | zxfjava2007-fanfou | 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> ... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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
} | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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 {
} | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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:
* ------------------------------------------------
*... | zxfjava2007-fanfou | 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);
}... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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();
}
} | zxfjava2007-fanfou | 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_... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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 {
... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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 {
... | zxfjava2007-fanfou | 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);
}
| zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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... | zxfjava2007-fanfou | 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"
| zxfjava2007-fanfou | 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 ... | zxfjava2007-fanfou | doc/stylesheet.css | CSS | asf20 | 1,370 |
#include <iostream>
#include <string>
#include <vector>
#include <memory>
using namespace std;
int main()
{
shared_ptr<string> pNico(new string("nico"));
shared_ptr<string> pJutta(new string("jutta"));
(*pNico)[0] = 'N';
pJutta->replace(0,1,"J");
vector<shared_ptr<string>> whoMadeCoffe;
whoMadeCoffe.push... | zubia-c | trunk/Ch7/smrt.cpp | C++ | gpl3 | 697 |
#include <iostream>
using namespace std;
enum error_code{sucess,error};
error_code factor(int, int&, int&);
int main()
{
int number, squared, cubed;
error_code result;
cout << "enter a number(0-20)";
cin >> number;
result = factor(number, squared, cubed);
if(result == sucess)
{
cout << "number : "<< numbe... | zubia-c | trunk/Ch7/pfunc.cpp | C++ | gpl3 | 603 |
#include <iostream>
// inserting comments
using namespace std;
unsigned long int Parameter(unsigned short int length, unsigned short int width);
int main()
{
unsigned short int length;
unsigned short int width;
unsigned long int Answer;
cout << " enter the value of length" << endl;
cin >> length;
cout << " enter the ... | zubia-c | trunk/Ch7/func.cpp | C++ | gpl3 | 575 |
#include <iostream>
// inserting comment,more
using namespace std;
long int power(unsigned short int n, unsigned short int m);
int main()
{
short int n, m;
long int answer;
cout << " enter the value of the integer" << endl;
cin >> n;
cout << " enter the value of power";
cin >> m;
answer = power(short int n,int m);
co... | zubia-c | trunk/Ch6/recursive.cpp | C++ | gpl3 | 538 |
#include <iostream>
using namespace std;
#include "person.h"
int main()
{
Person her ={
{ "Zubia", "Shahid"},
{12, 7, 1988},
{19003, 610348}
};
Person Celebrity;
Celebrity= her;
her.show();
Date today = {20, 3, 2013};
cout << endl << " today is ";
today.show(... | zubia-c | trunk/Ch6/person.cpp | C++ | gpl3 | 465 |
# include <iostream>
#include"volumeclass.h"
using namespace std;
int main()
{
Box firstbox(17.0, 1.0, 5.0);
cout << "object count is" << firstbox.ObjectCount<< endl;
Box boxes[5];
cout << "object count is "<< firstbox.ObjectCount<< endl;
/*cout << " The first box is ="
<< (compareVolume(firstbox, secondbox) ... | zubia-c | trunk/Ch6/volumeclass.cpp | C++ | gpl3 | 1,154 |
#include <iostream>
using namespace std;
class Employee
{
public:
int GetAge()const{return itsAge;}
void SetAge(int age){itsAge = age;}
int GetYears()const{return Years;}
void SetYears(int year){Years =year;}
int GetSalary()const{return Salary;}
void SetSalary(int salary){Salary= salary;}
private:
int itsAge;
... | zubia-c | trunk/Ch6/exercise.cpp | C++ | gpl3 | 667 |
#include <iostream>
using namespace std;
struct Box
{
double length;
double breadth;
double height;
double volume()
{
return length * breadth * height;
}
};
int main()
{
Box firstbox = {80.0, 50.0, 40.0};
Box* pBox = &firstbox;
cout << "the volume of the first box"<< pBox->volume() << endl;
B... | zubia-c | trunk/Ch6/structure.cpp | C++ | gpl3 | 607 |
#include<iostream>
using namespace std;
class integer
{
public:
integer();
integer(int xvalue);
~integer();
int getmember(){return i;}
void setmember(int y){i = y;}
private:
int x;
int i;
};
integer::integer()
{
cout <<" defalut Constructer has been called"<... | zubia-c | trunk/Ch6/classinteger.cpp | C++ | gpl3 | 839 |
struct Rupee
{ float value;
float Dollarconvert(){return value/98.17;}
float Poundconvert(){return value/149.07;}
float Euroconvert(){return value/126.77;}
};
struct Euro
{
float value;
float Dollarconvert(){return value * 1.29;}
float Rupeeconvert(){return value * 126.77;}
float Poundconvert (... | zubia-c | trunk/Ch6/exchangerate.hpp | C++ | gpl3 | 2,315 |
#include <iostream>
using namespace std;
#include "exchangerate.hpp"
int main()
{ int choice;
float amount;
float rate;
char currency;
char currencyto;
// amount
/* if( amount < 0)
{
return 1;
}
*/
// Converter money(amount);
// convert from - switch statement
//money.crea... | zubia-c | trunk/Ch6/exchangerate.cpp | C++ | gpl3 | 2,414 |
package com.example;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.widget.Toast;
import com.example.EditNameDialog.EditNameDialogListener;
public class FragmentDialogDemo extends FragmentActivity implements EditNameDialogListe... | zxhrhl-dialogfragmentdemo | src/com/example/FragmentDialogDemo.java | Java | asf20 | 879 |
package com.example;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager.LayoutParams;
import android.view.inputmethod.EditorInfo;
import and... | zxhrhl-dialogfragmentdemo | src/com/example/EditNameDialog.java | Java | asf20 | 1,774 |