code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/OAuthSetTokenUpdate.java | Java | asf20 | 3,273 |
package weibo4j.examples;
import java.util.List;
import weibo4j.Status;
import weibo4j.Weibo;
/**
* Example of get statuses of list's members.
*
* @author bwl (刘道儒)
*/
public class GetListStatuses {
/**
* Usage: java -DWeibo4j.oauth.consumerKey=[consumer key] -DWeibo4j.oauth.consumerSecret=[... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/GetListStatuses.java | Java | asf20 | 1,521 |
package weibo4j.examples;
import java.io.File;
import weibo4j.User;
import weibo4j.Weibo;
public class OAuthUpdateProfile {
/**
* Usage: java -DWeibo4j.oauth.consumerKey=[consumer key]
* -DWeibo4j.oauth.consumerSecret=[consumer secret]
* Weibo4j.examples.OAuthUpdateProfile [accessToken] [accessSe... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/OAuthUpdateProfile.java | Java | asf20 | 1,477 |
package weibo4j.examples;
import java.util.List;
import weibo4j.Weibo;
import weibo4j.User;
public class GetFriends {
/**
* Usage: java -DWeibo4j.oauth.consumerKey=[consumer key] -DWeibo4j.oauth.consumerSecret=[consumer secret] Weibo4j.examples.GetFriends [accessToken] [accessSecret]
* @... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/GetFriends.java | Java | asf20 | 1,149 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/OAuthUpdate.java | Java | asf20 | 5,046 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/GetTimelines.java | Java | asf20 | 3,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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/SendDirectMessage.java | Java | asf20 | 2,950 |
package weibo4j.examples;
import java.util.List;
import weibo4j.ListObject;
import weibo4j.ListObjectWapper;
import weibo4j.Weibo;
public class GetListObjects {
/**
* Usage: java -DWeibo4j.oauth.consumerKey=[consumer key] -DWeibo4j.oauth.consumerSecret=[consumer secret] Weibo4j.examples.GetListObjects... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/GetListObjects.java | Java | asf20 | 1,600 |
package weibo4j.examples;
import weibo4j.Status;
import weibo4j.Weibo;
import weibo4j.WeiboException;
import weibo4j.http.AccessToken;
import weibo4j.http.RequestToken;
public class WebOAuth {
public static RequestToken request(String backUrl) {
try {
System.setProperty("weibo4j.oauth.consumerKey",... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/WebOAuth.java | Java | asf20 | 2,194 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/GetDirectMessages.java | Java | asf20 | 2,807 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/AsyncUpdate.java | Java | asf20 | 3,345 |
package weibo4j.examples;
import java.io.File;
import java.net.URLEncoder;
import weibo4j.Status;
import weibo4j.Weibo;
public class OAuthUploadByFile {
/**
* Usage: java -DWeibo4j.oauth.consumerKey=[consumer key]
* -DWeibo4j.oauth.consumerSecret=[consumer secret]
* Weibo4j.examples.OAuthUpload [a... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/OAuthUploadByFile.java | Java | asf20 | 1,580 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/examples/Update.java | Java | asf20 | 3,829 |
package weibo4j.util;
/////////////////////////////////////////////////////////
//Bare Bones Browser Launch //
//Version 1.5 (December 10, 2005) //
//By Dem Pilafian //
//Supports: Mac OS X, GNU/Linux, Unix, Windows XP //
... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/util/BareBonesBrowserLaunch.java | Java | asf20 | 2,495 |
/*
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... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/Query.java | Java | asf20 | 6,410 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/WeiboResponse.java | Java | asf20 | 8,917 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/SavedSearch.java | Java | asf20 | 5,030 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/DirectMessage.java | Java | asf20 | 7,540 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/WeiboSupport.java | Java | asf20 | 7,646 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/User.java | Java | asf20 | 21,771 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/WeiboAdapter.java | Java | asf20 | 7,007 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/WeiboStream.java | Java | asf20 | 25,836 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/Status.java | Java | asf20 | 12,516 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/IDs.java | Java | asf20 | 4,696 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/Tweet.java | Java | asf20 | 7,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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/RateLimitStatus.java | Java | asf20 | 3,924 |
/*
* ListObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package weibo4j;
import java.io.Serializable;
import java.util.List;
/**
* 对ListObject对象列表进行的包装,以支持cursor相关信息传递
* @author liudaoru - daoru at sina.com.cn
*/
public class ListObjectWapper implements Serializable {
p... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/ListObjectWapper.java | Java | asf20 | 1,356 |
/*
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 ... | zxk-code | trunk/weibo/weibo4j-2010-09-07/src/weibo4j/StatusStream.java | Java | asf20 | 3,451 |
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page language="java" import="weibo4j.http.*" %>
<%@ page language="java" import="weibo4j.*" %>
<jsp:useBean id="weboauth" scope="session" class="weibo4j.examples.WebOAuth" />
<%
String verifier=request.getParameter("oauth_verifier");
if(verifier!=null)
{
Sy... | zxk-code | trunk/weibo/weibo4j-2010-09-07/web/callback.jsp | Java Server Pages | asf20 | 1,159 |
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page language="java" import="weibo4j.*" %>
<%@ page language="java" import="weibo4j.http.*" %>
<jsp:useBean id="weboauth" scope="session" class="weibo4j.examples.WebOAuth" />
<%
if("1".equals(request.getParameter("opt")))
{
RequestToken resToken=weboauth.request("... | zxk-code | trunk/weibo/weibo4j-2010-09-07/web/call.jsp | Java Server Pages | asf20 | 678 |
javascript:(function (){
//<unframe>
if (navigator.appName == 'Microsoft Internet Explorer') {
alert('You are using Internet Explorer, this bookmarklet will not work.\nUse Firefox or Chrome instead.');
return;
}
if (/m.mafiawars.com/.test(document.location)) {
window.location.href = document.location+'?iframe=... | zxyz234 | FG.js | JavaScript | gpl3 | 9,999 |
//////////////////////////////////////////////////////////////////////////////////////////////
// This code was brought to you by todays letters kids 666 //
// http://screepts.com muahahahaha //
// if you love ... | zxyz234 | BonusX5.js | JavaScript | gpl3 | 10,509 |
javascript:(function(){
var my_timeout;
var fc2_globalCounter=0;
var jca_title = 'FamCollector';
var log_arr = new Array();
if (typeof $ == 'undefined') {
$ = unsafeWindow.$;
}
function getTimeStamp4Log(){
var CurrentDate=new Date();
var hours=CurrentDate.getHours();
var minutes=CurrentDate.getMinutes();
if... | zxyz234 | FastFamXP.js | JavaScript | gpl3 | 10,061 |
javascript:(function (){
var jca_title = '★LOC@S★ - OpenMultipleTabs';
html = '<ul style="margin: 0;padding: 0;width: 650px;">';
var name_uid = '';
var the_name = 'OpenMultipleTabs - G';
var mUrl = 'https://graph.facebook.com/'+User.trackId;
var the_id = User.trackId;
$.ajax({
url: mUrl,
... | zxyz234 | OpenTabs.js | JavaScript | gpl3 | 7,012 |
javascript:(function (){
var jca_title = '★LOC@S★ - Fast War Declare';
html = '<ul style="margin: 0;padding: 0;width: 650px;">';
var spocklet='waromatic_jca';
var version=jca_title+' 0.1';
var debug = false;
var logs=[];
var tries = 0;
var queue_count = 5;
var queue = new Array();
var http = 'h... | zxyz234 | FastWarDeclare.js | JavaScript | gpl3 | 7,608 |
javascript: (function () {
var xx = [
"XXX Fast Gift Collector",
"giftcollectzv",
"icon_mafia_attack_22x16_01.gif",
"22", "16", "Mafia Attack Strength",
"icon_mafia_defense_22x16_01.gif",
"Mafia Defense Strength", "http://",
"location", "test", "https://",
"facebook-ca2.mafiawars.zynga.com/mwfb/remote/... | zxyz234 | xyz_GC.js | JavaScript | gpl3 | 42,395 |
javascript:(function(){
var my_timeout;
var fc2_globalCounter=0;
var jca_title = 'BrazilDiamondsVaulter by ★LOC@S★ נυαη ★L@★';
var log_arr = new Array();
if (typeof $ == 'undefined') {
$ = unsafeWindow.$;
}
function getTimeStamp4Log(){
var CurrentDate=new Date();
var hours=CurrentDate.getHours(... | zxyz234 | BrazilVaulter.js | JavaScript | gpl3 | 7,537 |
<!doctype html>
<html lang=zh>
<head>
<meta charset=utf-8>
<title>hello</title>
</head>
<body>
<h1>hello world</h1>
<img src=dog.png>
</body>
</html>
| zwfirstweb | index.html | HTML | bsd | 178 |
<!doctype html>
<html lang=zh>
<head>
<meta charset=utf-8>
<title>hello</title>
</head>
<body>
<h1>hello world</h1>
<img src=dog.png>
</body>
</html>
| zwfirstweb | index.html | HTML | bsd | 178 |
<!doctype html>
<html lang=zh>
<head>
<meta charset=utf-8>
<title>hello</title>
</head>
<body>
<h1>hello world</h1>
<img src=dog.png>
</body>
</html>
| zwfirstweb | index1.html | HTML | bsd | 178 |
package com.hlidskialf.android.hardware;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class ShakeListener implements SensorEventListener {
private static final int FORCE... | zxpsky-fan | src/com/hlidskialf/android/hardware/ShakeListener.java | Java | asf20 | 2,826 |
/***
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... | zxpsky-fan | src/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java | Java | asf20 | 4,593 |
/***
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... | zxpsky-fan | src/com/commonsware/cwac/merge/MergeAdapter.java | Java | asf20 | 8,420 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 24,896 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/SearchResultActivity.java | Java | asf20 | 7,831 |
package com.ch_linghu.fanfoudroid.service;
public interface IService {
void startService();
void stopService();
}
| zxpsky-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 or agree... | zxpsky-fan | 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... | zxpsky-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.... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/service/WidgetService.java | Java | asf20 | 4,485 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/service/LocationService.java | Java | asf20 | 3,675 |
package com.ch_linghu.fanfoudroid;
import com.ch_linghu.fanfoudroid.app.Preferences;
import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundl... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/AboutActivity.java | Java | asf20 | 1,534 |
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... | zxpsky-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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,793 |
/*
* 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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,410 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 517 |
package com.ch_linghu.fanfoudroid.data;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| zxpsky-fan | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 184 |
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... | zxpsky-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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java | Java | asf20 | 6,721 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/app/TestMovementMethod.java | Java | asf20 | 1,336 |
/*
* 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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/app/ImageManager.java | Java | asf20 | 16,006 |
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... | zxpsky-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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/app/Preferences.java | Java | asf20 | 2,782 |
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java | Java | asf20 | 831 |
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... | zxpsky-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 or agree... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/TwitterActivity.java | Java | asf20 | 7,741 |
/*
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Query.java | Java | asf20 | 6,708 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Photo.java | Java | asf20 | 3,160 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/QueryResult.java | Java | asf20 | 6,405 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/WeiboSupport.java | Java | asf20 | 2,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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Trend.java | Java | asf20 | 3,323 |
/*
* UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package com.ch_linghu.fanfoudroid.fanfou;
import java.io.Serializable;
import java.util.List;
/**
* 对User对象列表进行的包装,以支持cursor相关信息传递
* @author liudaoru - daoru at sina.com.cn
*/
public class UserWapper implements Seriali... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/UserWapper.java | Java | asf20 | 1,281 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/WeiboResponse.java | Java | asf20 | 9,049 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Weibo.java | Java | asf20 | 61,339 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Configuration.java | Java | asf20 | 12,102 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/User.java | Java | asf20 | 25,389 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Trends.java | Java | asf20 | 6,595 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Status.java | Java | asf20 | 13,518 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/IDs.java | Java | asf20 | 4,847 |
package com.ch_linghu.fanfoudroid.fanfou;
/**
* 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 statusCod... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/WeiboException.java | Java | asf20 | 982 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/RetweetDetails.java | Java | asf20 | 6,255 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/RefuseError.java | Java | asf20 | 4,494 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/RateLimitStatus.java | Java | asf20 | 4,015 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/DirectMessage.java | Java | asf20 | 7,766 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/Paging.java | Java | asf20 | 3,847 |
/*
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/fanfou/SavedSearch.java | Java | asf20 | 5,041 |
package com.ch_linghu.fanfoudroid.data2;
public class Photo {
private String thumburl;
private String imageurl;
private String largeurl;
public Photo() {}
public String getThumburl() {
return thumburl;
}
public void setThumburl(String thumburl) {
this.thumburl = thumb... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/data2/Photo.java | Java | asf20 | 815 |
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... | zxpsky-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;... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/data2/User.java | Java | asf20 | 4,354 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 4,203 |
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 ... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/dao/SQLiteTemplate.java | Java | asf20 | 5,766 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/dao/StatusDAO.java | Java | asf20 | 10,987 |
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:
* ----------------... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/db2/Query.java | Java | asf20 | 9,118 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/db2/FanDatabase.java | Java | asf20 | 3,588 |
package com.ch_linghu.fanfoudroid.db2;
public abstract class FanContent {
public static class StatusTable{
public static final String TABLE_NAME = "statuses";
public static class Columns {
public static final String ID = "_id";
public static final String STATUS_ID = "... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/db2/FanContent.java | Java | asf20 | 4,085 |
/*
* 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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/WriteActivity.java | Java | asf20 | 29,383 |
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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 8,105 |
/*
* 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... | zxpsky-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... | zxpsky-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... | zxpsky-fan | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 10,752 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| zxpsky-fan | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |