code
string
repo_name
string
path
string
language
string
license
string
size
int64
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
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-fanfou1
src/com/ch_linghu/fanfoudroid/data2/User.java
Java
asf20
4,354
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...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/data2/Photo.java
Java
asf20
815
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...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/UserTimelineActivity.java
Java
asf20
14,047
/* * 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-fanfou1
src/com/ch_linghu/fanfoudroid/WriteDmActivity.java
Java
asf20
12,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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/fanfou/IDs.java
Java
asf20
4,847
/* * 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...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/fanfou/Status.java
Java
asf20
13,518
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...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/fanfou/SavedSearch.java
Java
asf20
5,041
/* 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...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/fanfou/Trend.java
Java
asf20
3,323
/* 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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
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 ...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/fanfou/RateLimitStatus.java
Java
asf20
4,015
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.fanfou.Status; import com.ch_linghu.fanfoudroi...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/BrowseActivity.java
Java
asf20
2,319
/* * 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-fanfou1
src/com/ch_linghu/fanfoudroid/WriteActivity.java
Java
asf20
29,383
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...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/AboutActivity.java
Java
asf20
1,534
package com.ch_linghu.fanfoudroid; import java.util.HashSet; //import org.acra.ReportingInteractionMode; //import org.acra.annotation.ReportsCrashes; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.net...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/TwitterApplication.java
Java
asf20
6,960
package com.ch_linghu.fanfoudroid.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.t...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/util/TextHelper.java
Java
asf20
5,209
package com.ch_linghu.fanfoudroid.util; import java.io.InputStream; import java.io.OutputStream; public class StreamUtils { public static void CopyStream(InputStream is, OutputStream os) { final int buffer_size=1024; try { byte[] bytes=new byte[buffer_size]; ...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/util/StreamUtils.java
Java
asf20
572
package com.ch_linghu.fanfoudroid.util; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Arrays; import java.util.HashMap; import android.util.Log; import com.ch_linghu.fanfoudroid.TwitterApplication; /** * Debug Timer * * Usage: * -------------------------------- * DebugTimer.s...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/util/DebugTimer.java
Java
asf20
4,762
package com.ch_linghu.fanfoudroid.util; import java.io.File; import java.io.IOException; import android.os.Environment; /** * 对SD卡文件的管理 * @author ch.linghu * */ public class FileHelper { private static final String TAG = "FileHelper"; private static final String BASE_PATH="fanfoudroid"; public st...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/util/FileHelper.java
Java
asf20
813
package com.ch_linghu.fanfoudroid.util; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import android.util.Log; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterAppl...
061304011116lyj-fanfou1
src/com/ch_linghu/fanfoudroid/util/DateTimeHelper.java
Java
asf20
3,539
/*** 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...
061304011116lyj-fanfou1
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...
061304011116lyj-fanfou1
src/com/commonsware/cwac/merge/MergeAdapter.java
Java
asf20
8,420
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...
061304011116lyj-fanfou1
src/com/hlidskialf/android/hardware/ShakeListener.java
Java
asf20
2,826
/* Javadoc 样式表 */ /* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */ /* 页面背景颜色 */ body { background-color: #FFFFFF; color:#000000 } /* 标题 */ h1 { font-size: 145% } /* 表格颜色 */ .TableHeadingColor { background: #CCCCFF; color:#000000 } /* 深紫色 */ .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* 淡紫色 */ .TableRowColor ...
061304011116lyj-fanfou1
doc/stylesheet.css
CSS
asf20
1,370
#!/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"
061304011116lyj-fanfou1
tools/openHttpDebug.sh
Shell
asf20
229
package com.aviary.android.feather.async_tasks; import android.content.Context; import android.graphics.Bitmap; import android.net.Uri; import android.os.AsyncTask; import com.aviary.android.feather.Constants; import com.aviary.android.feather.library.log.LoggerFactory; import com.aviary.android.feather.library.log.Lo...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/async_tasks/DownloadImageAsyncTask.java
Java
asf20
3,472
package com.aviary.android.feather.async_tasks; import java.lang.ref.WeakReference; import java.util.Iterator; import java.util.LinkedList; import java.util.NoSuchElementException; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.graphi...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/async_tasks/AssetsAsyncDownloadManager.java
Java
asf20
10,330
package com.aviary.android.feather.async_tasks; import android.content.Context; import android.os.Bundle; import com.aviary.android.feather.library.media.ExifInterfaceWrapper; import com.aviary.android.feather.library.services.ThreadPoolService.BGCallable; public class ExifTask extends BGCallable<String, Bundle> { ...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/async_tasks/ExifTask.java
Java
asf20
642
package com.aviary.android.feather.async_tasks; import java.lang.ref.WeakReference; import java.util.Iterator; import java.util.LinkedList; import java.util.NoSuchElementException; import java.util.concurrent.Callable; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android....
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/async_tasks/AsyncImageManager.java
Java
asf20
8,384
package com.aviary.android.feather.receivers; import java.util.Iterator; import java.util.Set; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Resources; import android.ne...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/receivers/FeatherSystemReceiver.java
Java
asf20
6,639
package com.aviary.android.feather; import it.sephiroth.android.library.imagezoom.ImageViewTouchBase; import java.lang.ref.WeakReference; import java.util.HashMap; import java.util.concurrent.Future; import android.app.Activity; import android.app.AlertDialog; import android.content.ActivityNotFoundException; import a...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/FilterManager.java
Java
asf20
35,907
package com.aviary.android.feather.database; import android.database.DataSetObserver; public abstract class DataSetObserverExtended extends DataSetObserver { public void onAdded() { // Do Nothing } public void onRemoved() { // Do Nothing } }
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/database/DataSetObserverExtended.java
Java
asf20
254
package com.aviary.android.feather.database; import android.database.Observable; public class DataSetObservableExtended extends Observable<DataSetObserverExtended> { /** * Invokes onChanged on each observer. Called when the data set being observed has changed, and which when read contains the new * state of the...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/database/DataSetObservableExtended.java
Java
asf20
1,467
package com.aviary.android.feather.utils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import android.graphics.PorterDuff.Mode; import android.graphics.PorterDuffColorFilter; import android.graphics.Typeface; import android.graph...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/utils/UIUtils.java
Java
asf20
5,075
package com.aviary.android.feather.utils; import android.app.ProgressDialog; import android.os.Handler; import com.aviary.android.feather.MonitoredActivity; /** * Some thread related utilities. * * @author alessandro */ public class ThreadUtils { /** * Start background job. * * @param activity * ...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/utils/ThreadUtils.java
Java
asf20
2,915
package com.aviary.android.feather.utils; import java.lang.ref.SoftReference; import java.util.HashMap; import android.content.res.AssetManager; import android.graphics.Typeface; public class TypefaceUtils { private static final HashMap<String, SoftReference<Typeface>> sTypeCache = new HashMap<String, SoftReference...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/utils/TypefaceUtils.java
Java
asf20
1,093
package com.aviary.android.feather.utils; import java.lang.ref.SoftReference; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.concurrent.ConcurrentHashMap; import android.graphics.Bitmap; import android.os.Handler; public class SimpleBitmapCache { private static final int DELAY_BEFORE_PUR...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/utils/SimpleBitmapCache.java
Java
asf20
2,211
package com.aviary.android.feather.effects; import org.json.JSONException; import android.app.ProgressDialog; import android.graphics.Bitmap; import android.os.AsyncTask; import android.view.LayoutInflater; import android.view.View; import com.aviary.android.feather.Constants; import com.aviary.android.feather.R; impo...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/NativeEffectRangePanel.java
Java
asf20
10,040
package com.aviary.android.feather.effects; import it.sephiroth.android.library.imagezoom.ImageViewTouch; import it.sephiroth.android.library.imagezoom.ImageViewTouchBase.OnBitmapChangedListener; import android.content.Context; import android.content.res.ColorStateList; import android.graphics.Bitmap; import android.g...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/MemePanel.java
Java
asf20
22,581
package com.aviary.android.feather.effects; import it.sephiroth.android.library.imagezoom.ImageViewTouch; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import org.json.JSONException; import android.app.AlertDialog; import ...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/NativeEffectsPanel.java
Java
asf20
53,687
package com.aviary.android.feather.effects; import java.util.ArrayList; import java.util.Collection; import android.R.attr; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BlurMaskFilter; import android.graphics.BlurMaskFilter.Blur; import a...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/DrawingPanel.java
Java
asf20
24,718
package com.aviary.android.feather.effects; import it.sephiroth.android.library.imagezoom.ImageViewTouch; import android.R.attr; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Canvas; import androi...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/TextPanel.java
Java
asf20
24,006
package com.aviary.android.feather.effects; import it.sephiroth.android.library.imagezoom.ImageViewTouch; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Set; import org.json.JSONException; import android.app.AlertDialog; import android.app.Pr...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/EffectsPanel.java
Java
asf20
43,755
package com.aviary.android.feather.effects; import android.R.attr; import android.app.ProgressDialog; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Matrix; import android.graphics.PointF; import andro...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/SpotDrawPanel.java
Java
asf20
22,873
package com.aviary.android.feather.effects; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.BitmapFactory; import android.graphics.ColorMatrixColorFilter; import android.media.ThumbnailUtils; import android.view.LayoutInflater; import...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/ColorMatrixEffectPanel.java
Java
asf20
6,913
package com.aviary.android.feather.effects; import org.json.JSONException; import android.annotation.SuppressLint; import android.graphics.Bitmap; import android.graphics.Matrix; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; impor...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/AdjustEffectPanel.java
Java
asf20
7,407
package com.aviary.android.feather.effects; import android.view.LayoutInflater; import android.view.ViewGroup; import com.aviary.android.feather.Constants; import com.aviary.android.feather.effects.AbstractEffectPanel.OptionPanel; import com.aviary.android.feather.library.services.EffectContext; import com.aviary.andr...
06peng
trunk/com.aviary.android.feather.FeatherActivity/src/com/aviary/android/feather/effects/AbstractOptionPanel.java
Java
asf20
2,234