Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline.getDb() funf v0.5 not compatible with funf v0.4 #113

Open
shixudongleo opened this issue Mar 7, 2016 · 2 comments
Open

Pipeline.getDb() funf v0.5 not compatible with funf v0.4 #113

shixudongleo opened this issue Mar 7, 2016 · 2 comments

Comments

@shixudongleo
Copy link

I am learning to use funf by the wifiscanner sample, which is based on funf v0.4.

I have to use funf v0.5, because later I need to use VideoCaptureProbe, which is not developed in funf v0.4.

When using funf v0.5 jar in wifiscanner, Pipeline.getDb() is missing.
How to fix it?

  private void updateScanCount() {
    // Query the pipeline db for the count of rows in the data table
    SQLiteDatabase db = pipeline.getDb();
    Cursor mcursor = db.rawQuery(TOTAL_COUNT_SQL, null);
    mcursor.moveToFirst();
    final int count = mcursor.getInt(0);
    // Update interface on main thread
    runOnUiThread(new Runnable() {
      @Override
      public void run() {
        dataCountView.setText("Data Count: " + count);
      }
    });
  }
@ayalpani
Copy link

Hi @shixudongleo, did you find a way to make things work? I currently have the exact same problem. Thanks

@brijmohan
Copy link

I have created a pull request
#116

Merge it with your local repository to get the DBHelper instance from the pipeline. You can get the instance of DB like this then:

SQLiteDatabase db = pipeline.getDbHelper().getWritableDatabase();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants