Back to project page android-webview-example.
The source code is released under:
Apache License
If you think the Android project android-webview-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.significantfiles.android.sqlite; //from w w w . ja v a 2 s .co m import android.database.Cursor; import android.provider.Contacts.People; public class GET { public static String string( final Cursor cursor, final String key ) { final int columnIdx = cursor.getColumnIndexOrThrow( key ); return cursor.getString(columnIdx); } public static int integer( final Cursor cursor, final String key) { final int columnIdx = cursor.getColumnIndexOrThrow(People.NUMBER_KEY); return cursor.getInt(columnIdx); } }