Android Question Can a Process_Global variable be used for password?

anOparator

Active Member
Licensed User
Longtime User
Am trying to create a password, load it into a Process_Global for future use, and start a second activity.
Currently the second activity only starts when EditText is empty.

Also can a Process_Global be shown in the Log?
Thanks in advance for any pointers.
 

Attachments

  • psswdTEST.zip
    8.9 KB · Views: 103

anOparator

Active Member
Licensed User
Longtime User
I tried this:
Log ((pss)) ' did not generate log output info.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Log ((pss)) ' did not generate log output info.
cause you did not set any content to pss at this point you printed into the log. It WILL be printed; but only a blank line in log in your case :D
 
Upvote 0

anOparator

Active Member
Licensed User
Longtime User
Thanks, the log works now. Will update in the A.M.
Sleepy now.
 
Upvote 0

anOparator

Active Member
Licensed User
Longtime User
Thanks, the log works now. Will update in the A.M.
Sleepy now.
:)Thanks, I needed to ask someone b4 the answer came to me.
B4X:
Sub Process_Globals
     Dim pss As String
B4X:
Sub Globals
   Private pssw As EditText
   Private Button1 As Button
   Private Button2 As Button
User creates personal password.
B4X:
Sub Button1_Click   'Creates password
'   pssw.Text = pss
   pss = pssw.Text
     StartActivity(openAspects)  'Activity 2 starts. OK
     Log ("NEW psswd saved " & (pss))
End Sub
Logs in with personal password.
B4X:
Sub Button2_Click   
'   If pssw.Text=pss Then
   If pss = pssw.Text Then
       StartActivity(openAspects)
       Log ("logged in , a-ok" & (pss))
   Else
     Msgbox("WRONG PSSwurd    ENTERED","E R R O R")
End If
Next, save pss to a predetermined spot in a text file:confused:
 
Upvote 0
Top