Java Code Examples for android.database.Cursor#toString()

The following examples show how to use android.database.Cursor#toString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CursorAdapter.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public CharSequence convertToString(Cursor cursor)
{
    if (cursor == null)
    {
        return "";
    } else
    {
        return cursor.toString();
    }
}
 
Example 2
Source File: CursorAdapter.java    From letv with Apache License 2.0 4 votes vote down vote up
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 3
Source File: CursorAdapter.java    From letv with Apache License 2.0 4 votes vote down vote up
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 4
Source File: CursorTreeAdapter.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
/**
 * @see CursorAdapter#convertToString(Cursor)
 */
public String convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 5
Source File: CursorAdapter.java    From CodenameOne with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 6
Source File: CursorPagerAdapter.java    From android-open-project-demo with Apache License 2.0 2 votes vote down vote up
/**
 * <p> Converts the cursor into a CharSequence. Subclasses should override this method to convert
 * their results. The default implementation returns an empty String for null values or the default
 * String representation of the value. </p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 7
Source File: CursorAdapter.java    From ExRecyclerViewLibrary with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 8
Source File: CursorAdapter.java    From guideshow with MIT License 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 9
Source File: CursorAdapter.java    From V.FlyoutTest with MIT License 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 10
Source File: CursorAdapter.java    From android-recipes-app with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 11
Source File: CursorAdapter.java    From v2ex with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 12
Source File: BaseAbstractRecycleCursorAdapter.java    From AppCodeArchitecture with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 13
Source File: RecyclerViewCursorAdapter.java    From BLEMeshChat with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 14
Source File: CursorAdapter.java    From adt-leanback-support with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 15
Source File: CursorRecyclerAdapter.java    From yahnac with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 16
Source File: CursorRecyclerAdapter.java    From Ouroboros with GNU General Public License v3.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 17
Source File: BaseAbstractRecycleCursorAdapter.java    From AndroidRecyclerViewDemo with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 18
Source File: RecyclerViewCursorBaseAdapter.java    From HightCopyWX with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 19
Source File: CursorRecyclerAdapter.java    From TwistyTimer with GNU General Public License v3.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 *
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}
 
Example 20
Source File: CursorAdapter.java    From android_9.0.0_r45 with Apache License 2.0 2 votes vote down vote up
/**
 * <p>Converts the cursor into a CharSequence. Subclasses should override this
 * method to convert their results. The default implementation returns an
 * empty String for null values or the default String representation of
 * the value.</p>
 *
 * @param cursor the cursor to convert to a CharSequence
 * @return a CharSequence representing the value
 */
public CharSequence convertToString(Cursor cursor) {
    return cursor == null ? "" : cursor.toString();
}