Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7008171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:42:02+00:00 2026-05-27T21:42:02+00:00

I am trying to convert an existing Android, SQLite database to a multi-platform, SQLite

  • 0

I am trying to convert an existing Android, SQLite database to a multi-platform, SQLite database in order to create a prototype of a larger project that can be tested on Windows without relying on Android. The existing Android classes that were being imported into Eclipse (using Java) included:

  • Context
  • Cursor
  • SQLException
  • SQLiteDatabase
  • SQLiteStatement

So far, I found that SQLException in Android is very similar to the class in the java.sql library (also called SQLException). I also downloaded and included the sqlite4java.jar file, which includes the SQLiteStatement class. In this jar file, it also has SQLiteConnection, which represents a single connection to a SQLite database. However, I am unable to find comparable, non-Android, classes for Cursor and Context. Does anyone know of a solution?

The main call for Cursor is as follows:

Cursor cursor = db.query(true, table, columns, selection, selectionArgs, null, null, null, null);

where ‘db’ used to be a SQLiteDatabase. I changed ‘db’ to be a SQLiteConnection, but that has no query() function, so I have run into another problem.

NOTE: I have also looked at org.tmatesoft.sqljet and org.sqlite packages, but could not find anything useful.

Thank you in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:42:03+00:00Added an answer on May 27, 2026 at 9:42 pm

    I’ve used SQLiteJDBC from Zentus. Once the project is configured according to the docs, just use standard the JDBC API.

    I’ve also heard good things about a derivative of Zentus’s library by Xerial, also called SQLiteJDBC, but I’ve never used it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert some code that worked great in VB, but I can't
I am trying to convert an existing process in a way that it supports
I have CSLA (1.x framework) objects from an existing project that I'm trying to
Trying to convert an existing Android build system using Ant with 'ant_rules_r3.xml' integration from
I am trying to convert a pre-existing site that had html and php intermingled
I am trying to convert an existing .Net shop site to an Android app.
I've trying to open and convert an existing vs 2010 mvc 3 project in
I have been trying to convert a web project that produces a war file
I'm trying to convert my existing site to use WCF to communicate with my
i´m using subsonic 3 trying convert a SQL2008 project to MySQL. when the projects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.