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

  • SEARCH
  • Home
  • 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 6010879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:10:46+00:00 2026-05-23T02:10:46+00:00

Some people want to port my Android open-source software to Blackberry and PC (also

  • 0

Some people want to port my Android open-source software to Blackberry and PC (also using SQLite).

I separated the UI code from the domain/database code. But next problem, the domain/database code contains imports like this one:

import android.database.Cursor;

… which makes it not portable.

I guess many other developers have the same problem, so an SQLite OS-abstraction layer must exist somewhere. What would you suggest?

Note: I use SQLite-specific features, so an ORM or a database abstraction layer will not do.

  • 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-23T02:10:47+00:00Added an answer on May 23, 2026 at 2:10 am

    I am currently developing an ORM project, especially for Android.

    https://github.com/ahmetalpbalkan/orman

    Which SQLite-specific features do you use?

    Maybe you can create an interface, compile it with both android.jar and the_jar_for_blackberry.jar so that you can do something like in the code

    Database db = null;    
    if (environment is android){
        db = new AndroidSQLiteDatabaseImpl();
    } else {
        db = new MyBlackberrySQLiteImpl();
    }
    

    and when both classes implement the same interface, then you won’t be in the trouble. Because if you say

    import android.database.Cursor

    only in AndroidSQLiteDatabaseImpl.java and if you don’t initialize it at all, no exceptions will be thrown.

    You can look at source code of our project. At build-time, we compile it with android.jar however, when we ship only a single jar file, all desktop program users can use it for MySQL and native SQLite. Because they don’t initialize AndroidSQLiteDtabase class and no exceptions will be thrown.

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

Sidebar

Related Questions

I am creating an android game using opengl and a cocos2d port (http://code.google.com/p/cocos2d-android-1). I
I want to calculate the magnetic field of a wire using biot-savart-law. Some people
I want to make group of some people from my contacts and then i
I want to secure some applications for some people without teaching them how to
I want to test the phpDocumentor-alpha, and there's a problem that some people seems
There are some people in my office who insist on using cute stationery and
Some people want to see the DB structure and dont have VS, is there
I know some people use ANT to accomplish this, but I don't want to
I'm working on a website with some other people. Usually when we want to
My team is moving to Spring 3.0 and there are some people who want

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.