code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
$id=$_POST["id"];
$question=$_POST["question"];
$answer=$_POST["answer"];
$option1=$_POST["option1"];
$option2=$_POST["option2"];
$option3=$_POST["option3"];
$option4=$_POST["option4"];
//echo $id;
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$query="INSERT INTO `history` (`i... | 069kb5-online-quiz-system | trunk/admin/actions/add1.php | PHP | mit | 570 |
<?php
session_start(0;
$name=$_SESSION['reg_name'];
$password=$_SESSION['reg_password'];
$email=$_SESSION['reg_email'];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (NULL, '$name', '$password', '$email');";
$res... | 069kb5-online-quiz-system | trunk/admin/add_user.php | PHP | mit | 376 |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | 069kb5-online-quiz-system | trunk/admin/media.php | PHP | mit | 540 |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | 069kb5-online-quiz-system | trunk/admin/political.php | PHP | mit | 544 |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | 069kb5-online-quiz-system | trunk/admin/technical.php | PHP | mit | 546 |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{margin:0px auto;margin-top:20px;}
</style>
<body>
<div ... | 069kb5-online-quiz-system | trunk/admin/history.php | PHP | mit | 1,833 |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | 069kb5-online-quiz-system | trunk/admin/sports.php | PHP | mit | 543 |
<style type="text/css">
.footerbutton{width:75px; height:20px;background-color:AAA5A5;}
#footerdown{margin-top:1px;}
#footerpan{width:800px;margin:0px auto;}
#footerdown{background-color:AAA5A5;padding-top:10px;}
</style>
<div id="footerdown">
<div id="footerpan">
<center><abbr title="Home">
<a href="../in... | 069kb5-online-quiz-system | trunk/admin/footer.php | Hack | mit | 1,063 |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | 069kb5-online-quiz-system | trunk/admin/scientific.php | PHP | mit | 547 |
<html><head><title>Welcome</title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headertop{background-color:BFBDF9;padding-top:5px;height:120px;}
#toppan{width:800px;margin:0px auto;}
#nav{width:590px;height:30px;margin:0px auto;floa... | 069kb5-online-quiz-system | trunk/quiz.php | PHP | mit | 4,586 |
<?php
$id = $_GET["id"];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "DELETE from `history` where `id` = $id";
$result=mysql_query($sql);
header('Location:../subject_history.php');
//echo $id." is deleted";
?>
| 069kb5-online-quiz-system | trunk/action/user_delete.php | PHP | mit | 254 |
<?php
$id=$_POST['id'];
$question=$_POST['question'];
$answer=$_POST['answer'];
$option1=$_POST['option1'];
$option2=$_POST['option2'];
$option3=$_POST['option3'];
$option4=$_POST['option4'];
/*echo $id;*/
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "INSERT INTO `drezon`.`his... | 069kb5-online-quiz-system | trunk/action/user_add1.php | PHP | mit | 590 |
<html><head><title></title></head>
<body><form method="POST" action="user_add1.php">
<table cellspacing=10 border=0 width=600>
<tr><td></td></tr>
<h3><p><u>Add new question.</u> Fill up the form below and click the submit button</p></h3></td></tr>
<tr><td>ID</td><td><input type="text" name="id" size=3/></td></tr>
... | 069kb5-online-quiz-system | trunk/action/user_add.php | Hack | mit | 887 |
<html><head><title></title></head>
<style type="text/css">
.tablerow{hover:"#efefef";}
</style>
<script type="text/javascript">
function sure(){
if(confirm("Are you sure to delete?"))
{return true;}
else { return false;}
}
</script>
<body>
<table cellspacing=5 border=0 width=800>
<tr>
<td>ID</td>
<td>Q... | 069kb5-online-quiz-system | trunk/subject_history.php | PHP | mit | 1,235 |
<html><head><title>Our Team</title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headertop{background-color:BFBDF9;padding-top:5px;height:120px;}
#toppan{width:800px;margin:0px auto;}
#nav{width:590px;height:30px;margin:0px auto;flo... | 069kb5-online-quiz-system | trunk/Our Team.php | Hack | mit | 2,162 |
<?
phpinfo();
?> | 12betvn | trunk/phpinfo.php | PHP | gpl3 | 19 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/PreferencesActivity.java | Java | asf20 | 3,039 |
package com.ch_linghu.fanfoudroid.app;
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 Bitmap ... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java | Java | asf20 | 831 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/Preferences.java | Java | asf20 | 2,782 |
package com.ch_linghu.fanfoudroid.app;
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 mY... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/TestMovementMethod.java | Java | asf20 | 1,336 |
package com.ch_linghu.fanfoudroid.app;
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.fanfou.RefuseError;
import com.ch_linghu.fanfoudroid.http.HttpAuthExcepti... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/ExceptionHandler.java | Java | asf20 | 2,064 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/ImageManager.java | Java | asf20 | 16,006 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback;
public class SimpleImageLoader {
public static void display(final ImageView i... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/SimpleImageLoader.java | Java | asf20 | 912 |
package com.ch_linghu.fanfoudroid.app;
import java.lang.Thread.State;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import android.graphi... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java | Java | asf20 | 6,721 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
public interface ImageCache {
public static Bitmap mDefaultBitmap = ImageManager.drawableToBitmap(TwitterApplication.mContext.getResources().getDraw... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/app/ImageCache.java | Java | asf20 | 443 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,410 |
package com.ch_linghu.fanfoudroid.data;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 184 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data/Dm.java | Java | asf20 | 884 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,793 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 517 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import and... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 8,105 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/DmActivity.java | Java | asf20 | 17,720 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/FavoritesActivity.java | Java | asf20 | 4,543 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/FollowingActivity.java | Java | asf20 | 3,315 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import a... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 24,896 |
package com.ch_linghu.fanfoudroid.dao;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import android.util.Log;
import com.ch_linghu.fanfoudroid.dao.SQLiteTemplat... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/dao/StatusDAO.java | Java | asf20 | 11,168 |
package com.ch_linghu.fanfoudroid.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Database Helper
*
* @see SQLiteDatabase
*/
public ... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/dao/SQLiteTemplate.java | Java | asf20 | 5,766 |
package com.ch_linghu.fanfoudroid.db2;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.ch_linghu.fanfoudroid.db2.FanContent.*;
public class FanDatabase {
priva... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db2/FanDatabase.java | Java | asf20 | 3,885 |
package com.ch_linghu.fanfoudroid.db2;
import java.util.zip.CheckedOutputStream;
import android.R.color;
public abstract class FanContent {
/**
* 消息表 消息表存放消息本身
*
* @author phoenix
*
*/
public static class StatusesTable {
public static final String TABLE_NAME = "t_statuses"... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db2/FanContent.java | Java | asf20 | 13,587 |
package com.ch_linghu.fanfoudroid.db2;
import java.util.ArrayList;
import java.util.Arrays;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Wrapper of SQliteDatabse#query, OOP style.
*
* Usage:
* ----------------... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db2/Query.java | Java | asf20 | 9,118 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/http/HTMLEntity.java | Java | asf20 | 26,524 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/http/HttpException.java | Java | asf20 | 741 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/http/Response.java | Java | asf20 | 6,106 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/http/HttpClient.java | Java | asf20 | 28,093 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 22,549 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java | Java | asf20 | 19,270 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,533 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.ListActivity;
/**
* TODO: 准备重构现有的几个ListActivity
*
* 目前几个ListActivity存在的问题是 :
* 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法,
* 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity"
* 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListVi... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/BaseListActivity.java | Java | asf20 | 1,243 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.SharedPreferences;
import and... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 10,752 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.BitmapDrawable;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
im... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java | Java | asf20 | 8,811 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |
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.text.TextUtils;
import android.util.Log;
import android.view.ContextMenu;
import andro... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 17,159 |
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.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.ch_linghu.fanfoudroid.R;... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java | Java | asf20 | 9,608 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impo... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java | Java | asf20 | 4,073 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.widget.ListAdapter;
public interface TweetAdapter extends ListAdapter{
void refresh();
}
| 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java | Java | asf20 | 152 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.app.Activity;
import android.view.MotionEvent;
import com.ch_linghu.fanfoudroid.BrowseActivity;
import com.ch_linghu.fanfoudroid.MentionActivity;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterActivity;
/**
* MyActivityFlipper ... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/MyActivityFlipper.java | Java | asf20 | 2,183 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java | Java | asf20 | 1,620 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.text.Layout;
import android.text.Spannable;
import android.text.Spanned;
import android.text.style.Foregrou... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java | Java | asf20 | 4,155 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.Log;
public class FeedbackFactory {
private static final String TAG = "FeedbackFactory";
public static enum FeedbackType {
DIALOG, PROGRESS, REFRESH
};
public static Feedback create(Conte... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/FeedbackFactory.java | Java | asf20 | 1,347 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.R;
public class SimpleFeedback implemen... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/SimpleFeedback.java | Java | asf20 | 3,029 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java | Java | asf20 | 9,395 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface IFlipper {
void showNext();
void showPrevious();
}
| 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/IFlipper.java | Java | asf20 | 122 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
public interface Widget {
Context getContext();
// TEMP
public static interface OnGestureListener {
/**
* @param e1
... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/Widget.java | Java | asf20 | 1,456 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import ... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/NavBar.java | Java | asf20 | 10,493 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.ViewSwitcher.ViewFactory... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/ActivityFlipper.java | Java | asf20 | 7,900 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java | Java | asf20 | 6,885 |
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;
... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java | Java | asf20 | 2,607 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface Feedback {
public boolean isAvailable();
public void start(CharSequence text);
public void cancel(CharSequence text);
public void success(CharSequence text);
public void failed(CharSequence text);
public void update(Object arg0);
... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/Feedback.java | Java | asf20 | 377 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java | Java | asf20 | 3,566 |
package com.ch_linghu.fanfoudroid.ui.module;
import com.ch_linghu.fanfoudroid.R;
import android.app.Activity;
import android.util.Log;
import android.view.GestureDetector;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.O... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/FlingGestureListener.java | Java | asf20 | 4,636 |
/**
*
*/
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.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import ... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java | Java | asf20 | 5,303 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/service/BootReceiver.java | Java | asf20 | 1,245 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/service/LocationService.java | Java | asf20 | 3,675 |
package com.ch_linghu.fanfoudroid.service;
public interface IService {
void startService();
void stopService();
}
| 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/service/IService.java | Java | asf20 | 123 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/service/TwitterService.java | Java | asf20 | 19,229 |
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.... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/service/WidgetService.java | Java | asf20 | 4,485 |
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.fanfou.Paging;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.b... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/FollowersActivity.java | Java | asf20 | 2,576 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/StatusActivity.java | Java | asf20 | 23,343 |
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.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Lay... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/SearchActivity.java | Java | asf20 | 13,735 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/SearchResultActivity.java | Java | asf20 | 7,831 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db/UserInfoTable.java | Java | asf20 | 4,443 |
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 {
... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db/FollowTable.java | Java | asf20 | 4,626 |
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_... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db/StatusTable.java | Java | asf20 | 6,715 |
package com.ch_linghu.fanfoudroid.db;
/**
* All information of status table
*
*/
public final class StatusTablesInfo {
} | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db/StatusTablesInfo.java | Java | asf20 | 136 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db/TwitterDatabase.java | Java | asf20 | 39,471 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/db/MessageTable.java | Java | asf20 | 3,293 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/LoginActivity.java | Java | asf20 | 11,496 |
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;
import com.ch_linghu.fanfoudroid.ui.module.Feedback;
public abstract class GenericTa... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/GenericTask.java | Java | asf20 | 3,039 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TaskParams.java | Java | asf20 | 3,288 |
package com.ch_linghu.fanfoudroid.task;
import android.app.ProgressDialog;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.ui.base.WithHeaderActivity;
public abstract class TaskFeedback {
private static TaskFeedback _instance = null;
pub... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TaskFeedback.java | Java | asf20 | 4,562 |
package com.ch_linghu.fanfoudroid.task;
public enum TaskResult {
OK,
FAILED,
CANCELLED,
NOT_FOLLOWED_ERROR,
IO_ERROR,
AUTH_ERROR
} | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TaskResult.java | Java | asf20 | 141 |
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);
}
| 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TaskListener.java | Java | asf20 | 285 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TweetCommonTask.java | Java | asf20 | 2,898 |
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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TaskAdapter.java | Java | asf20 | 384 |
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() {
L... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/task/TaskManager.java | Java | asf20 | 505 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/MentionActivity.java | Java | asf20 | 3,429 |
/*
* 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... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/TwitterActivity.java | Java | asf20 | 7,741 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class Status {
private Date created_at;
private String id;
private String text;
private String source;
private boolean truncated;
private String in_reply_to_status_id;
private String in_reply_to_user_id;
privat... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 4,203 |
package com.ch_linghu.fanfoudroid.data2;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class DataUtils {
static SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.US);
pub... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data2/DataUtils.java | Java | asf20 | 570 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class User {
private String id;
private String name;
private String screen_name;
private String location;
private String desription;
private String profile_image_url;
private String url;
private boolean isProtected;... | 061304011116lyj-fan | src/com/ch_linghu/fanfoudroid/data2/User.java | Java | asf20 | 4,354 |