Friend's I'm using searching in my map search from database content using MatrixCursor,here i'm NumberFormat Exception in Android sdk version 2.2, Here my code looks like
In my declaration i did
private static final String[] COLUMNS = {
_ID, // must include this column
SearchManager.SUGGEST_COLUMN_TEXT_1,
SearchManager.SUGGEST_COLUMN_INTENT_DATA };
and i also created the object for matrixcursor has follows
MatrixCursor cursor = new MatrixCursor(COLUMNS);
cursor.addRow(columnValuesOfQuery(query, s));
here the exception i'm getting like
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): error changing cursor and caching columns
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): java.lang.NumberFormatException:
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): at java.lang.Long.parseLong(Long.java:347)
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): at java.lang.Long.parseLong(Long.java:320)
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): at android.database.MatrixCursor.getLong(MatrixCursor.java:255)
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): at android.database.CursorWrapper.getLong(CursorWrapper.java:127)
10-22 23:11:33.734: ERROR/SuggestionsAdapter(456): at android.widget.CursorAdapter.getItemId(CursorAdapter.java:156)
what the reason for getting this problem,how can i fix this issue.