Once you have the Cursor object, you can do something like this:
if (cursor.moveToFirst()){
do{
String data = cursor.getString(cursor.getColumnIndex("data"));
// do what ever you want here
}while(cursor.moveToNext());
}
cursor.close();
More Related Contents:
- ViewHolder class is not recognizing
- Send data from activity to fragment in Android
- Restful API service
- Disabling the fullscreen editing view for soft keyboard input in landscape?
- How to add Apache HTTP API (legacy) as compile-time dependency to build.grade for Android M?
- How to disable the home key
- Android WebView progress bar
- Is there an easy way to strike through text in an app widget?
- Firebase FCM force onTokenRefresh() to be called
- Bind service to activity in Android
- ADT requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found
- How do I add a newline to a TextView in Android?
- Is Secure.ANDROID_ID unique for each device?
- How to read a pdf in android
- Fragment in ViewPager using FragmentPagerAdapter is blank the second time it is viewed
- Passing an Object from an Activity to a Fragment
- Gradle Sync failed could not find constraint-layout:1.0.0-alpha2
- Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.1.4
- How do I disable proguard for building my Android app?
- Android DatePickerDialog: Set min and max date for selection
- Android camera rotate
- Android – How to get the processName or packageName by using PID?
- How to block a mobile number call and message receiving in android application development?
- Write to /res/drawable/ on the fly?
- How to use Google Login API with Cordova/Phonegap
- SchemaFactory doesn’t support W3C XML Schema in platform level 8?
- Why use Fragments? [duplicate]
- Sending html email in android using , etc. – is there really no relatively built-in Intent way?
- How to avoid restarting activity when orientation changes on Android
- How to pass variables in and out of AsyncTasks?