[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
AndroidGreece.gr - View topic - Χρήση βάσης SQLite σε εφαρμογή!
View unanswered posts | View active topics It is currently 27 Apr 2024, 08:55



Reply to topic  [ 9 posts ] 
 Χρήση βάσης SQLite σε εφαρμογή! 
Author Message

Joined: 29 Jun 2012, 02:45
Posts: 21
Post Χρήση βάσης SQLite σε εφαρμογή!
Καλησπέρα σας! Έχω δημιουργήσει μια εφαρμογή και το στάδιο στο οποίο έχω κολλήσει είναι εκεί που συνδέω την βάση (που έχω δημιουργήσει ήδη στον υπολογιστή μου) με την εφαρμογή! Έχω διαβάσει κάθε οδηγό που υπάρχει στο Ιντερνετ αλλά δεν μπορώ να βρω άκρη. Αν θα μπορούσε κάποιος να με βοηθήσει "πρακτικά" θα το εκτιμούσα πάρα πολύ!
Ευχαριστώ εκ των προτέρων!!


29 Jun 2012, 03:06
Profile
User avatar

Joined: 12 Jul 2011, 18:34
Posts: 125
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
Πρώτα από όλα πρέπει να ξέρουμε αν τα πας καλά με sql. Έτσι ώστε να ξέρουμε το επίπεδο σου. Ψάχνοντας στο internet είχα βρει αρκετά tutorials για connection με την sql lite. Μην νομίζεις οτι ξέρω πολλά αλλά εχω ένα project που χωρίς πολλά προβλήματα κατάφερα και έκανα μεταφορά/ανάκτηση δεδομένων στην/απο βάση.

_________________
x8
Αναλαμβάνω κατασκευή Android εφαρμογών...Πμ or Mail me
Θες και Εσυ να γινεις Android Developer?


29 Jun 2012, 14:42
Profile

Joined: 29 Jun 2012, 02:45
Posts: 21
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
Μια χαρά τα πάω με την SQL απλά το θέμα μου είναι η σύνδεση του προγράμματος με την βάση που έχω φτιάξει...θέλω κάποιος να μου το δείξει αυτό για να το καταλάβω, γιατί αλλιώς δεν νομίζω να βρω άκρη...σε php και java και python τα εχω βρει μια χαρα με την SQL τη συνδεση σε αυτη...απλά τώρα λόγω της νεας φιλοσοφίας του προγραμματισμού σε Android ακόμα ψάχνω να μάθω αυτό το πράγμα...


30 Jun 2012, 21:07
Profile
User avatar

Joined: 12 Jul 2011, 18:34
Posts: 125
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
Όπα μισό.... Η βαση ειναι στο pc σου? αρα δεν μιλάμε για την βάση του κινητού σου.

Έχω κώδικα για να κάνεις connect στην τοπική βάση(κινητού SQLite) αλλά έχω και κώδικα για να κάνεις connect σε απομακρυσμένη βάση (Internet).

_________________
x8
Αναλαμβάνω κατασκευή Android εφαρμογών...Πμ or Mail me
Θες και Εσυ να γινεις Android Developer?


01 Jul 2012, 00:54
Profile

Joined: 29 Jun 2012, 02:45
Posts: 21
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
Την έχω φτιάξει και την έχω στον υπολογιστή μου! Θέλω να την περάσω στα assets της εφαρμογής και να την συνδέσω με κάποιο class και να παίρνω από αυτήν δεδομένα με κάποιο cursor, αλλά δεν έχω βρει πώς να το κάνω αυτό. Δεν με έχει βοηθήσει κανένα tutorial από το Ιντερνετ!!


01 Jul 2012, 14:15
Profile
User avatar

Joined: 12 Jul 2011, 18:34
Posts: 125
Post Re: Χρήση βάσης SQLite σε εφαρμογή!

_________________
x8
Αναλαμβάνω κατασκευή Android εφαρμογών...Πμ or Mail me
Θες και Εσυ να γινεις Android Developer?


06 Jul 2012, 17:00
Profile
User avatar

Joined: 12 Jul 2011, 18:34
Posts: 125
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
Τωρα στην main class σου

HelpDatabase db = new HelpDatabase(context);
x=db.retrieveepilogh().toString();
Δημιουργία αντικειμένου και πέρασμα μεταβλητής ετσι ώστε να τρέξει τον onCreate
και κάλεσμα τις μεθόδου retrieveepilogh() λόγω ότι επιστρέφει τύπου cursor to μετατρέπω σε String αν θυμάμαι καλά καλώντας την μεθοδο toString() .

Αν και εχω μερικά bugs γιατί δεν είμαι τόσο εξοικειωμένος με την sqllite . Για να καταλάβεις μερικά πράγματα ειναι μια χαρα.
Τα bugs ελπιζω να τα φτιαξω γιατι ειναι σημαντικό κομμάτι για τις εφαρμογές μας. Αφού ο κώδικας αυτός επαναχρησιμοποιείται 100%

Ελπίζω να μην ξέχασα κάτι
Αν έχει κάποιος καλύτερο κώδικα η λέω κάτι λάθος θα χαρώ να με διορθώσει.

p.s και για να βλεπεις τι μαλακιες κανεις στην βαση δεδομένων σου http://www.cellobject.net/Tools/CellObj ... owser.aspx

_________________
x8
Αναλαμβάνω κατασκευή Android εφαρμογών...Πμ or Mail me
Θες και Εσυ να γινεις Android Developer?


06 Jul 2012, 17:07
Profile

Joined: 29 Jun 2012, 02:45
Posts: 21
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
Σε ευχαριστώ για όλο αυτό αλλά εγώ δεν θέλω να περνάω πληροφορίες, θέλω μόνο να διαβάζω :P


07 Jul 2012, 00:17
Profile
User avatar

Joined: 12 Jul 2011, 18:34
Posts: 125
Post Re: Χρήση βάσης SQLite σε εφαρμογή!
gmt :P

Steile mou pm ti thes akrivos :P

_________________
x8
Αναλαμβάνω κατασκευή Android εφαρμογών...Πμ or Mail me
Θες και Εσυ να γινεις Android Developer?


07 Jul 2012, 01:01
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 123 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.