×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Feb 2012
    Posts
    60

    Connecting Local Data Base In J2me

    I am new to J2me. I required to connect my local database in my application.I have a book in local database, My requirement is to display that book in my application

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: Connecting Local Data Base In J2me

    What kind of database? External file/database access depends on JSR-75, FileConnection API, and there are various both RMS and JSR-75 based database libary "layers" implemented for J2ME. You should find earlier discussions and pointers easily enough doing a search: http://www.developer.nokia.com/Commu...?search_type=1

    You can limit the search to just the Java discussion boards.

    A reasonable search to start with is with the keywords: java database

  3. #3
    Regular Contributor
    Join Date
    Feb 2012
    Posts
    60

    Re: Connecting Local Data Base In J2me

    Quote Originally Posted by petrib View Post
    What kind of database? External file/database access depends on JSR-75, FileConnection API, and there are various both RMS and JSR-75 based database libary "layers" implemented for J2ME. You should find earlier discussions and pointers easily enough doing a search: http://www.developer.nokia.com/Commu...?search_type=1

    You can limit the search to just the Java discussion boards.

    A reasonable search to start with is with the keywords: java database
    I have to use Sqlite DataBase file.how can i use it in my app.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: Connecting Local Data Base In J2me

    Quote Originally Posted by rana.anees View Post
    I have to use Sqlite DataBase file.how can i use it in my app.
    As far as I know, there is no ready-made J2ME libraries that'd allow you to easily access data in a local SQLite database file. In other words, you would have to use the Java FileConnection API, read in the file and then figure out how to map it in memory in a meaningful way, and then extract the actual data you need. Not a trivial coding exercise, and might also not be possible on some phones or if the file is too big (e.g., due to memory limitations).

    Alternative: Write (or find) a PC-based data extractor/converter that takes the SQLite data and extracts the "book" and writes it out as a text file, which will be much easier to handle in your MIDlet.

  5. #5
    Registered User
    Join Date
    Apr 2013
    Posts
    1

    Re: Connecting Local Data Base In J2me

    I am new to J2ME programming. I am new here(developer.nokia.com) too.
    I am developing one application in J2me MIDP
    where I want to fetch data from file / DB which is near about 12-15MB
    and Display at form to get survey of objective Type

    I tried RecordStore But as per my search it has size limitation
    can anyone plz help me

    Thanks in advance,
    Deven

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: Connecting Local Data Base In J2me

    This part of the story has not changed. You can experiment with FileConnection (see related articles listed on http://www.developer.nokia.com/Commu...M_API_(JSR-75)) as suggested, or with a remote database (stored on a server). The latter requires connectivity for use, the former requires some custom implementation for the database functionality. Also there can be problems with the deployment, the database file has to be transferred to the device somehow.

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Connecting Local Data Base In J2me

    If your DB is indeed 12-15 MB in size then you should really think hard about your app design...
    Does all of the data needs to be available all of the time for all users?
    Does the DB ever needs to get updated? how often?
    How is the DB formatted?
    Is your app connected to the web?

    Based on the answers and more you can decide how to design your app + DB.
    but just of the top of my head i would blindly suggest use the cloud...

Similar Threads

  1. Replies: 8
    Last Post: 2008-05-30, 06:12
  2. How to play local AMR file base on APS server?
    By ezNokia in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2007-09-25, 05:37
  3. Connecting from J2ME app to local PC using IrDa
    By mrac@interia.pl in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-05-23, 09:28
  4. Inserting data in data base, stored in variables
    By miriamgs in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-10-03, 14:31
  5. 9210 Connecting to local web and wap applications
    By magalan in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2002-05-28, 19:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×