Android Question Can a Process_Global variable be used for password?

anOparator

Active Member
Licensed 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

anOparator

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

anOparator

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

anOparator

Active Member
Licensed 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:
 
Top