[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/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 - Αποθηκευση username & password
AndroidGreece.gr
https://androidgreece.gr/forum/

Αποθηκευση username & password
https://androidgreece.gr/forum/viewtopic.php?f=3&t=1401
Page 1 of 1

Author:  manitu [ 07 Feb 2011, 23:25 ]
Post subject:  Αποθηκευση username & password

Καλησπερα σας
Λιγο τα φωτα σας παρακαλω. Θελω μια ιδεα για να αποθηκευονται οι κωδικοι. Δλδ μολις ανοιγει ο χρηστης να τον βαζει αμεσως. Το θεμα ειναι ομως οτι η διαδικασια στην ουσια στελνει καπου τους κωδικους και αναλογα το respond ενημερωνει αν ειναι επιτυχης η οχι η εισοδος και ετσι μεταφερονται απο activity σε activity.

Αποστολή απο HTC Desire HD

Author:  ventrix [ 09 Feb 2011, 19:27 ]
Post subject:  Re: Αποθηκευση username & password

χρειάζεσαι αυτό: http://developer.android.com/reference/ ... ences.html

Θα φτιάξεις 2 preferences, ενα για τον κωδικό και ενα για το password.

Θα φτιάξεις επίσης ακόμα ενα που θα κρατάει κατα πόσο ο χρήστης έχει κάνει το login.
σε κάθε on create ή on resume θα ελέγχεις την τιμή και μετά θα εκτελείς τις κατάλληλες ενέργειες.

Author:  manitu [ 28 Mar 2011, 18:10 ]
Post subject:  Re: Αποθηκευση username & password

Τα έκανα αυτά και δουλευει ... εν μέρει...
το πρόβλημα που μου έχει δημιουργηθεί όμως είναι οτι η Activity έχει κάποια EditText & Buttons για να κάνει το login ο χρήστης. Κάνει του ελέγχους αλλά όταν μετά από ώρα ανοίξει πάλι η εφαρμογή ναι μεν παίρνει τις τιμές από τα SharedPreferences αλλά δεν κάνει την ενέργεια που πρέπει για το login και πρέπει ο χρήστης να εισάγει πάλι τις πληροφορίες.

Author:  sotcha [ 29 Mar 2011, 04:17 ]
Post subject:  Re: Αποθηκευση username & password

Να πούμε πως ιδέα της αποθήκευσης των passwords χωρίς καμία επεξεργασία στα SharedPreferences, δεν είναι και ότι καλύτερο. Και αυτό γιατί πρόκειται για απλά xml αρχεία που μπορούν άνετα να διαβαστούν πχ. από το shell.
Οπότε είναι καλύτερη κάποια κρυπτογράφιση, όπως στο .


Από εκεί κ περα νομίζω θα ήταν καλύτερα να ποστάρεις τον κώδικα που χειρίζεται την ανάκτηση του password, για να βρεθεί το σφάλμα.

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/