This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String subject = "鲜果联播Android版" + getResources().getString(R.string.app_version) + "用户反馈"; | |
Intent backIntent = new Intent(Intent.ACTION_VIEW); | |
String email_address="mailto:"+"[email protected]"; | |
backIntent.setData(Uri.parse(email_address)); | |
String networkStatus = ""; | |
if (CommonUtils.isWifiConnected(XgPadPreferenceActivity.this)) { | |
networkStatus = "WI-FI"; | |
} else if (CommonUtils.isNetworkConnected(XgPadPreferenceActivity.this)) { | |
networkStatus = "2G/3G"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Bitmap getRoundedCornerBitmap(Bitmap bitmap) { | |
if (bitmap == null) { | |
return null; | |
} | |
if (layoutId==R.layout.appwidget_small_one_layout && styleOneBitmap == null) { | |
styleOneBitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.appwidget_one); | |
} | |
if (layoutId==R.layout.appwidget_small_two_layout && styleTwoBitmap == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from BeautifulSoup import BeautifulSoup | |
import cookielib | |
import eyeD3 | |
import json | |
import os | |
import re | |
import urllib | |
import urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dl.utils; | |
import android.app.Activity; | |
import android.view.GestureDetector.SimpleOnGestureListener; | |
import android.view.MotionEvent; | |
import java.io.PrintStream; | |
public class LeftToRightFinishGesture extends GestureDetector.SimpleOnGestureListener | |
{ | |
private Activity mActivity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.xianguo.xreader.utils; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import android.annotation.SuppressLint; | |
public class RelativeTime { | |
private static final long ONE_DAY = 86400000L; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EndlessScrollListener implements OnScrollListener { | |
//只剩2个未显示时加载 | |
private int visibleThreshold = 2; | |
private int previousTotal = 0; | |
private boolean loading = true; | |
public EndlessScrollListener() { | |
} | |
public EndlessScrollListener(int visibleThreshold) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------------- | |
// Add "view" to right end of "views". | |
// Returns the position of the new view. | |
// The app should call this to add pages; not used by ViewPager. | |
public int addView (View v) | |
{ | |
return addView (v, views.size()); | |
} | |
//----------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import android.content.ContentResolver; | |
import android.database.Cursor; | |
import android.net.Uri; | |
import android.os.Build; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013 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 agreed to in writing, software distributed under the License | |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleanmaster.photosync.widget; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.webkit.WebView; | |
import android.widget.ProgressBar; | |
public class ProgressWebView extends WebView { | |
private ProgressBar mProgressbar; |
OlderNewer