GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Madrapps/AsyncQuery: Improved AsyncQueryHandler that handles BulkInsert operation

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
asyncquery
asyncquery
 
 
gradle/wrapper
gradle/wrapper
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

AsyncQuery

Build Status Download

Improved AsyncQueryHandler that handles BulkInsert operation

Note: This is literally a copy paste of the AsyncQueryHandler in Android and then modified that to support Bulk Insert operation. All credits goes to the Android Open Source team for writing the original AsyncQueryHandler.

Download

repositories {
  jcenter() // or mavenCentral()
}

dependencies {
  compile 'com.github.madrapps:asyncquery:1.0.1'
}

Usage

You would use this the same way as you would use AsyncQueryHandler except you can now use startBulkInsert()

final DatabaseHandler handler = new DatabaseHandler(getContentResolver());
final Uri uri = new Uri.Builder().scheme(SCHEME).authority(AUTHORITY).appendEncodedPath(ORGANIZATION).build();
handler.startBulkInsert(1, null, uri, getContentValues());
public class DatabaseHandler extends AsyncQueryHandler {

    public DatabaseHandler(ContentResolver cr) {
        super(cr);
    }

    @Override
    protected void onBulkInsertComplete(int token, Object cookie, int result) {
        super.onBulkInsertComplete(token, cookie, result);
        Log.d("DatabaseHandler", "Bulk Insert Done");
    }
}

License

AsyncQuery by Madrapps is licensed under a Apache License 2.0 by Android Open Source Platform.

About

Improved AsyncQueryHandler that handles BulkInsert operation

Topics

androidasynccontentproviderhandler

Resources

Readme
License
Activity
Custom properties

Stars

11 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.