[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
View unanswered posts | View active topics It is currently 17 Apr 2024, 01:47



Reply to topic  [ 4 posts ] 
 Αποθηκευση username & password 
Author Message

Joined: 15 Jun 2009, 00:01
Posts: 60
Post Αποθηκευση username & password
Καλησπερα σας
Λιγο τα φωτα σας παρακαλω. Θελω μια ιδεα για να αποθηκευονται οι κωδικοι. Δλδ μολις ανοιγει ο χρηστης να τον βαζει αμεσως. Το θεμα ειναι ομως οτι η διαδικασια στην ουσια στελνει καπου τους κωδικους και αναλογα το respond ενημερωνει αν ειναι επιτυχης η οχι η εισοδος και ετσι μεταφερονται απο activity σε activity.

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


07 Feb 2011, 23:25
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Αποθηκευση username & password
χρειάζεσαι αυτό: http://developer.android.com/reference/ ... ences.html

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

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

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


09 Feb 2011, 19:27
Profile WWW

Joined: 15 Jun 2009, 00:01
Posts: 60
Post Re: Αποθηκευση username & password
Τα έκανα αυτά και δουλευει ... εν μέρει...
το πρόβλημα που μου έχει δημιουργηθεί όμως είναι οτι η Activity έχει κάποια EditText & Buttons για να κάνει το login ο χρήστης. Κάνει του ελέγχους αλλά όταν μετά από ώρα ανοίξει πάλι η εφαρμογή ναι μεν παίρνει τις τιμές από τα SharedPreferences αλλά δεν κάνει την ενέργεια που πρέπει για το login και πρέπει ο χρήστης να εισάγει πάλι τις πληροφορίες.


28 Mar 2011, 18:10
Profile
User avatar

Joined: 21 May 2010, 14:11
Posts: 22
Location: Thessaloniki
Post Re: Αποθηκευση username & password
Να πούμε πως ιδέα της αποθήκευσης των passwords χωρίς καμία επεξεργασία στα SharedPreferences, δεν είναι και ότι καλύτερο. Και αυτό γιατί πρόκειται για απλά xml αρχεία που μπορούν άνετα να διαβαστούν πχ. από το shell.
Οπότε είναι καλύτερη κάποια κρυπτογράφιση, όπως στο .


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

_________________
Keep coding ....


29 Mar 2011, 04:17
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 6 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.