using System; namespace Bll { ///
SharedPreferences常用于保存一些简单的数据,如记录用户操作的配置等,使用简单。
mCurrentFragment = (BaseFragment)toFragment; } } 来自:http://blog.csdn.net/lanximu/article/details/41414933
2).append("inputTime", new Date().getTime())); 工具类使用: /** * 删除 * * @param collection * @param q * 查询条件
来自: http://www.cnblogs.com/Jack47/p/Guava-Common-Utilities.html 作者:Jack47 转载请保留作者和原文出处 欢迎关注我的微
收集整理的一些常用的Android工具类。动画工具类,APP相关信息工具类,数据库帮助类,文件操作,网络状态等。 内容说明 工具 描述 AnimationUtils 动画工具类 AppUtils APP相关信息工具类 AssetDatabaseOpenHelper
public class TaskUtils { /** * 获取正在运行的进程的个数 * * @param context * @return */ public static int getRunningProcessCount(Context context) { // 得到系统的任务管理器. ActivityManager am = (ActivityManager) context .g
先下载和安装 MySQLDriverCS http://sourceforge.net/projects/mysqldrivercs/ 在安装文件夹下面找到MySQLDriver.dll,然后将MySQLDriver
package net.wujingchao.android.utility import android.util.Log; public final class L { private final static int LEVEL = 5; private final static String DEFAULT_TAG = "L"; private L() {
数据的交互,为此Android的SDK提供了Apache的HttpClient来方便我们使用各种Http服务。你可以把HttpClient想象成一个浏览器,通过它的API我们可以很方便的发出GET,POST请求(当然它的功能远不止这些)。
打开大家手上的项目,基本都会有一大批的辅助类,今天特此整理出10个基本每个项目中都会使用的工具类,用于快速开发~~ 在此感谢群里给我发项目中工具类的兄弟/姐妹~ 1、日志工具类L.java package com
import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; public class ThreadPoolT
以前开发项目没用框架,直接面向对象开发很实用的一个mysql工具类。
/** * 安装APK文件 *@param APK文件 *Version: *author:YangQuanqing */ private void installAPK(File file){ //按照系统安装文件的配置信息的意图过滤器才设置意图 Intent _Intent=new Intent(); _Intent.setAction("android.intent.action.VIEW"
java.util.TimeZone; /** * 文件名:DateUtils.java 日期处理相关工具类 */ public class DateUtils { /**定义常量**/ public static
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data.MySqlClient; using System.Data; class MySqlHelper:IDisposable { private MySqlConnection m_conn =
failure:(void (^)(NSError *error))failure; @end 来自:http://www.cnblogs.com/g-ios/p/4582183.html
/** * 验证模块,包括输入输出的验证 */ public class Validator { /** * 判断用户输入的时间格式是否正确 */ public static boolean checkDateTime(String inputDate) { String DATE_TIME_FORMAT = "yyyy-MM-dd"; SimpleDateFormat simpleDateFor
用于进行网络请求的工具类,可进行get,post两种请求,值得一提的是这个utils给大家提供了一个回调接口,方便获取下载文件的进度 import java.io.BufferedReader; import
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace LinqPractice { class Utility { public static T ConvertDataRow<T>(DataRow dr, string c