Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cundong/ZhihuPaper
/ functions
Functions
449 in github.com/cundong/ZhihuPaper
⨍
Functions
449
◇
Types & classes
78
↓ 1 callers
Method
updateNewsList
(int type, String key, String content)
src/com/cundong/izhihu/db/NewsDataSource.java:49
↓ 1 callers
Method
w
log.d
src/com/cundong/izhihu/util/Logger.java:129
↓ 1 callers
Method
writeFile
write file @param filePath @param content @param append is append, if true, write to the end of file, else clear content of file and write into it @r
src/com/cundong/izhihu/util/FileUtils.java:103
↓ 1 callers
Function
z
(t)
assets/www/zepto.min.js:2
Method
AsyncTaskResult
(MyAsyncTask task, Data... data)
src/com/cundong/izhihu/task/MyAsyncTask.java:499
Method
BaseFragment
()
src/com/cundong/izhihu/fragment/BaseFragment.java:20
Method
BaseGetContentTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/BaseGetContentTask.java:30
Method
BaseGetNewsTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/BaseGetNewsTask.java:31
Method
DatabaseHelper
(Context context)
src/com/cundong/izhihu/db/DatabaseHelper.java:53
Method
DetailImageDownloadTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/DetailImageDownloadTask.java:27
Method
GetLatestNewsTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/GetLatestNewsTask.java:22
Method
GetMoreNewsTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/fragment/NewsListFragment.java:160
Method
GetNewsDetailTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/GetNewsDetailTask.java:20
Method
HttpClientUtils
()
src/com/cundong/izhihu/http/HttpClientUtils.java:92
Method
ImageToGalleryTask
(Activity instance)
src/com/cundong/izhihu/task/ImageToGalleryTask.java:24
Method
JavaScriptObject
(Activity instance)
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:467
Method
Logger
()
src/com/cundong/izhihu/util/Logger.java:20
Method
MultiViewTypeBaseAdapter
(Context context, ArrayList<T> list)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:17
Method
MyAsyncTask
Creates a new asynchronous task. This constructor must be invoked on the UI thread.
src/com/cundong/izhihu/task/MyAsyncTask.java:139
Method
NewsAdapter
(Context context, ArrayList<NewsEntity> list)
src/com/cundong/izhihu/adapter/NewsAdapter.java:63
Method
NewsDataSource
(DatabaseHelper dbHelper)
src/com/cundong/izhihu/db/NewsDataSource.java:31
Method
NewsFavoriteDataSource
(DatabaseHelper dbHelper)
src/com/cundong/izhihu/db/NewsFavoriteDataSource.java:30
Method
NewsReadDataSource
(DatabaseHelper dbHelper)
src/com/cundong/izhihu/db/NewsReadDataSource.java:23
Method
OfflineDownloadTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/OfflineDownloadTask.java:39
Method
SetReadFlagTask
(NewsEntity newsEntity)
src/com/cundong/izhihu/fragment/NewsListFragment.java:346
Method
StringToString
字符串的转义(处理特殊字符) @param input @return
src/com/cundong/izhihu/util/StringUtils.java:206
Method
TrustAllSSLSocketFactory
(KeyStore truststore)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:25
Method
ViewHolder
(View convertView)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:78
Method
ZhihuException
(String msg)
src/com/cundong/izhihu/exception/ZhihuException.java:28
Method
ZhihuIOException
(String msg)
src/com/cundong/izhihu/exception/ZhihuIOException.java:17
Method
ZhihuOtherException
(String msg)
src/com/cundong/izhihu/exception/ZhihuOtherException.java:17
Method
addDistinctEntry
add distinct entry to list @param <V> @param sourceList @param entry @return if entry already exist in sourceList, return false, else add it
src/com/cundong/izhihu/util/ListUtils.java:165
Method
addDistinctList
add all distinct entry to list1 from list2 @param <V> @param sourceList @param entryList @return the count of entries be added
src/com/cundong/izhihu/util/ListUtils.java:178
Method
addListNotNullValue
add not null entry to list @param sourceList @param value @return <ul> <li>if sourceList is null, return false</li> <li>if value is n
src/com/cundong/izhihu/util/ListUtils.java:229
Method
checkClientTrusted
(java.security.cert.X509Certificate[] chain, String authType)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:34
Method
checkIsContentSame
(String oldContent, String newContent)
src/com/cundong/izhihu/task/BaseGetContentTask.java:62
Method
checkServerTrusted
(java.security.cert.X509Certificate[] chain, String authType)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:39
Method
compare
compare two object <ul> <strong>About result</strong> <li>if v1 > v2, return 1</li> <li>if v1 = v2, return 0</li> <li>if v1 < v2, return -1</li> </ul>
src/com/cundong/izhihu/util/ObjectUtils.java:100
Method
copyFile
copy file @param sourceFilePath @param destFilePath @return @throws RuntimeException if an error occurs while operator FileOutputStream
src/com/cundong/izhihu/util/FileUtils.java:272
Method
createSocket
(Socket socket, String host, int port, boolean autoClose)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:48
Method
decodeUrl
将用&号链接的URL参数转换成key-value形式。 @param s @return
src/com/cundong/izhihu/http/UrlUtils.java:84
Method
deleteFile
delete file or directory <ul> <li>if path is null or empty, return true</li> <li>if path not exist, return true</li> <li>if path exist, delete recursi
src/com/cundong/izhihu/util/FileUtils.java:534
Method
dialogBuilder
(Activity instance, String title, String positiveText, String negativeText, int layoutId, final Dialog
src/com/cundong/izhihu/util/DialogUtils.java:18
Method
dispatchTouchEvent
(MotionEvent ev)
src/com/cundong/izhihu/activity/NewsDetailActivity.java:236
Method
distinctList
remove duplicate entries in list @param <V> @param sourceList @return the count of entries be removed
src/com/cundong/izhihu/util/ListUtils.java:199
Method
doInBackground
(String... params)
src/com/cundong/izhihu/activity/FavoriteActivity.java:183
Method
doInBackground
(Void... params)
src/com/cundong/izhihu/activity/NewsDetailActivity.java:301
Method
doInBackground
(String... params)
src/com/cundong/izhihu/task/ImageToGalleryTask.java:45
Method
doInBackground
(String... params)
src/com/cundong/izhihu/task/GetNewsDetailTask.java:24
Method
doInBackground
(String... params)
src/com/cundong/izhihu/task/DetailImageDownloadTask.java:31
Method
doInBackground
(String... params)
src/com/cundong/izhihu/task/GetLatestNewsTask.java:26
Method
doInBackground
(String... params)
src/com/cundong/izhihu/task/OfflineDownloadTask.java:43
Method
doInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsListFragment.java:122
Method
doInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsListFragment.java:164
Method
doInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsListFragment.java:350
Method
doInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:305
Method
doRefresh
()
src/com/cundong/izhihu/fragment/NewsListFragment.java:296
Method
doRefresh
()
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:176
Method
done
()
src/com/cundong/izhihu/task/MyAsyncTask.java:150
Method
encodeUrl
对字符串中的中文进行编码 @param inputUrl @return
src/com/cundong/izhihu/util/StringUtils.java:330
Method
error
log.error
src/com/cundong/izhihu/util/Logger.java:103
Method
execute
(final Runnable r)
src/com/cundong/izhihu/task/MyAsyncTask.java:81
Method
getAcceptedIssuers
()
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:30
Method
getCurrentMonth
()
src/com/cundong/izhihu/util/DateUtils.java:119
Method
getCurrentTime
获取当前时间 @return
src/com/cundong/izhihu/util/DateUtils.java:61
Method
getDataSource
()
src/com/cundong/izhihu/task/BaseGetContentTask.java:75
Method
getDiff
获取两个日期之间的差值 @param date1 @param date2 @return
src/com/cundong/izhihu/util/DateUtils.java:310
Method
getErrorCode
()
src/com/cundong/izhihu/exception/ZhihuException.java:36
Method
getExternalFileDir
获取扩展存储file的绝对路径 返回:sdcard/Android/data/{package_name}/files/ @param context @return
src/com/cundong/izhihu/util/SDCardUtils.java:38
Method
getFileExtension
get suffix of file from path <pre> getFileExtension(null) = "" getFileExtension("") = "" getFileExte
src/com/cundong/izhihu/util/FileUtils.java:442
Method
getFileNameWithoutExtension
get file name from path, not include suffix <pre> getFileNameWithoutExtension(null) = null getFileNameWithoutExtension("")
src/com/cundong/izhihu/util/FileUtils.java:342
Method
getFloat
get float preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if t
src/com/cundong/izhihu/util/PreferencesUtils.java:173
Method
getFragment
()
src/com/cundong/izhihu/activity/BaseActivity.java:56
Method
getIMEI
IMEI号、MAC地址,在有些手机上竟然是动态的!! 修改逻辑: IMEI号、MAC地址,都改为取两遍,如果两次获取的不同,则不使用,改为使用一个randomUUID(该ID生成之后存在本地) 获得手机IMEI 获取串号失败,则使用MAC地址代替,再失败,则返回随机UUID deviceId = U
src/com/cundong/izhihu/util/PhoneUtils.java:47
Method
getIPAddress
获取手机IP地址 获取失败,返回"127.0.0.1" @return
src/com/cundong/izhihu/util/PhoneUtils.java:113
Method
getInt
get int preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if thi
src/com/cundong/izhihu/util/PreferencesUtils.java:87
Method
getItemResourceId
该方法需要子类实现,需要根据type返回item布局的resource id @param type @return
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:61
Method
getItemView
使用该getItemView方法替换原来的getView方法中部分功能,需要子类实现 @param position @param convertView @param holder @param type @return
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:72
Method
getLast
@see {@link ArrayUtils#getLast(Object[], Object, Object, boolean)} defaultValue is null, isCircle is true
src/com/cundong/izhihu/util/ListUtils.java:238
Method
getMobileInfo
获取手机设备描述(包括品牌、型号等) @param @return
src/com/cundong/izhihu/util/PhoneUtils.java:202
Method
getMobileNumber
获取手机号码 @param mContext @return
src/com/cundong/izhihu/util/PhoneUtils.java:182
Method
getNewsList
(String key)
src/com/cundong/izhihu/db/NewsDataSource.java:99
Method
getNext
@see {@link ArrayUtils#getNext(Object[], Object, Object, boolean)} defaultValue is null, isCircle is true
src/com/cundong/izhihu/util/ListUtils.java:248
Method
getNotNull
若输入为null,则返回空字符串;否则返回字符串自身 @param @return
src/com/cundong/izhihu/util/StringUtils.java:52
Method
getSDKVersion
最低支持的SDK版本 @return
src/com/cundong/izhihu/util/PhoneUtils.java:140
Method
getScreenWidth
获取屏幕宽度 @param instance
src/com/cundong/izhihu/util/PhoneUtils.java:224
Method
getSize
get size of list <pre> getSize(null) = 0; getSize({}) = 0; getSize({1}) = 1; </pre> @param <V> @param sourceList @return if list is n
src/com/cundong/izhihu/util/ListUtils.java:30
Method
getStatus
Returns the current status of this task. @return The current status.
src/com/cundong/izhihu/task/MyAsyncTask.java:191
Method
getStatusBarHeight
获取状态栏高度 ldpi=.75, mdpi=1, hdpi=1.5, xhdpi=2
src/com/cundong/izhihu/util/PhoneUtils.java:213
Method
getTimestamp
字符串转换时间戳 @param str @return
src/com/cundong/izhihu/util/DateUtils.java:216
Method
getUrl
(String url)
src/com/cundong/izhihu/task/BaseGetContentTask.java:71
Method
getUrlKey
将用户请求的url转化为key值,通过这个key值,可以读取数据库中的缓存数据 注意:需要清除url中的token,这样token即使变化了,也能读取到缓存 @param url @return
src/com/cundong/izhihu/http/UrlUtils.java:27
Method
getView
(int resId)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:82
Method
getViewTypeCount
()
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:50
Method
getViewTypeCount
()
src/com/cundong/izhihu/adapter/NewsAdapter.java:122
Method
handleMessage
(Message msg)
src/com/cundong/izhihu/task/MyAsyncTask.java:474
Function
i
()
assets/www/zepto.min.js:2
Function
img_replace
(source, replaceSource)
assets/www/img_replace.js:1
Function
img_replace_all
()
assets/www/img_replace.js:19
Function
img_replace_by_url
(url)
assets/www/img_replace.js:7
← previous
next →
201–300 of 449, ranked by callers