Wrox Programmer Forums
|
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2012, 12:49 AM
Registered User
 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQLite Databases

I have defined a few classes, one is a database class. In one of the class , I have written a code which gets me the names present all the rows in form of an array.

Code:
  DBContact info = new DBContact(this);
    info.open();
    String data[] = info.queryAll();
    info.close();
In another class , I want all the details of a particular name clicked.

Code:
  DBContact getdetails = new DBContact(this);
    getdetails.open();
    String returnedname = getdetails.getName(l);
    String returnedpphone = getdetails.getPphone(l);
    String returnedhphone = getdetails.getHphone(l);
    String returnedophone = getdetails.getOphone(l);
    getdetails.close();
Assuming that I am passing the parameter correctly , am I doing it right ?? or am I defining two databases.

I am new to programming, all help is very much appreciated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter11: Bundling SQLite Databases, how? Brabbeldas BOOK: Beginning iOS 5 Application Development 1 February 24th, 2012 11:11 PM
How do you check if a sqlite database is open? Nosirb BOOK: Professional iPhone and iPad Database Application Programming 1 November 28th, 2011 03:39 PM
Problem when working with SQLite in Ch2 scrubzhero BOOK: Professional iPhone and iPad Database Application Programming 4 July 18th, 2011 09:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.