当前位置: 首页>>代码示例>>Java>>正文


Java Log.v方法代码示例

本文整理汇总了Java中com.activeandroid.util.Log.v方法的典型用法代码示例。如果您正苦于以下问题:Java Log.v方法的具体用法?Java Log.v怎么用?Java Log.v使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.activeandroid.util.Log的用法示例。


在下文中一共展示了Log.v方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import com.activeandroid.util.Log; //导入方法依赖的package包/类
public static synchronized void initialize(Configuration configuration) {
	if (sIsInitialized) {
		Log.v("ActiveAndroid already initialized.");
		return;
	}

	sContext = configuration.getContext();
	sModelInfo = new ModelInfo(configuration);
	sDatabaseHelper = new DatabaseHelper(configuration);

	// TODO: It would be nice to override sizeOf here and calculate the memory
	// actually used, however at this point it seems like the reflection
	// required would be too costly to be of any benefit. We'll just set a max
	// object size instead.
	sEntities = new LruCache<String, Model>(configuration.getCacheSize());

	openDatabase();

	sIsInitialized = true;

	Log.v("ActiveAndroid initialized successfully.");
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:23,代码来源:Cache.java

示例2: dispose

import com.activeandroid.util.Log; //导入方法依赖的package包/类
public static synchronized void dispose() {
	closeDatabase();

	sEntities = null;
	sModelInfo = null;
	sDatabaseHelper = null;

	sIsInitialized = false;

	Log.v("ActiveAndroid disposed. Call initialize to use library.");
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:Cache.java

示例3: clear

import com.activeandroid.util.Log; //导入方法依赖的package包/类
public static synchronized void clear() {
	sEntities.evictAll();
	Log.v("Cache cleared.");
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:Cache.java

示例4: getView

import com.activeandroid.util.Log; //导入方法依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    Log.v("getView");
    mPrefs =  activity.getSharedPreferences("myPref", 0);


    WindowManager windowManager = (WindowManager) activity.getSystemService(Context.WINDOW_SERVICE);
    Display display = windowManager.getDefaultDisplay();
    Point size = new Point();
    display.getSize(size);

    if (inflater == null)
        inflater = (LayoutInflater) activity
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    if (convertView == null)
        convertView = inflater.inflate(R.layout.remote_settings_list_cell, null);

    TextView title = (TextView) convertView.findViewById(R.id.setting_item_cell_title);
    TextView user = (TextView) convertView.findViewById(R.id.setting_item_user);
    RadioButton checkBox = (RadioButton) convertView.findViewById(R.id.radio_button);
    TextView date = (TextView) convertView.findViewById(R.id.setting_item_date);

    System.out.println("Adapter collectionId" + " " + collectionId);

    if(folderItems.size()>0) {

        // getting item data for the row
        ImejiFolder collection = folderItems.get(position);

        //checkBox
        if(collection.getImejiId().equals(collectionId)){
            selectedPosition = position;
            ie.setCollectionId(selectedPosition,true);
            notifyDataSetChanged();
        }

        //title
        title.setText(collection.getTitle());

        // user
        if(collection.getContributors() != null) {
            user.setText(collection.getContributors().get(0).getCompleteName());
        }
        // date
        date.setText(String.valueOf(collection.getModifiedDate()).split("\\+")[0]);
    }

    checkBox.setChecked(position == selectedPosition);
    checkBox.setTag(position);


    checkBox.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {


            selectedPosition = (Integer)view.getTag();

            ie.setCollectionId(selectedPosition,false);
            //onclick place radioButton to selected position
            collectionId = folderItems.get(selectedPosition).getImejiId();

            notifyDataSetChanged();

        }
    });


    return convertView;
}
 
开发者ID:MPDL,项目名称:LabCam,代码行数:71,代码来源:SettingsListAdapter.java

示例5: toSql

import com.activeandroid.util.Log; //导入方法依赖的package包/类
@Override
public String toSql() {
	StringBuilder sql = new StringBuilder();
	sql.append(mQueryBase.toSql());
	sql.append("FROM ");
	sql.append(Cache.getTableName(mType)).append(" ");

	if (mAlias != null) {
		sql.append("AS ");
		sql.append(mAlias);
		sql.append(" ");
	}

	for (Join join : mJoins) {
		sql.append(join.toSql());
	}

	if (mWhere != null) {
		sql.append("WHERE ");
		sql.append(mWhere);
		sql.append(" ");
	}

	if (mGroupBy != null) {
		sql.append("GROUP BY ");
		sql.append(mGroupBy);
		sql.append(" ");
	}

	if (mHaving != null) {
		sql.append("HAVING ");
		sql.append(mHaving);
		sql.append(" ");
	}

	if (mOrderBy != null) {
		sql.append("ORDER BY ");
		sql.append(mOrderBy);
		sql.append(" ");
	}

	if (mLimit != null) {
		sql.append("LIMIT ");
		sql.append(mLimit);
		sql.append(" ");
	}

	if (mOffset != null) {
		sql.append("OFFSET ");
		sql.append(mOffset);
		sql.append(" ");
	}

	// Don't wast time building the string
	// unless we're going to log it.
	if (Log.isEnabled()) {
		Log.v(sql.toString() + " " + TextUtils.join(",", getArguments()));
	}

	return sql.toString().trim();
}
 
开发者ID:DobrinAlexandru,项目名称:Wabbit-Messenger---android-client,代码行数:62,代码来源:From.java


注:本文中的com.activeandroid.util.Log.v方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。