Android Question Can a Process_Global variable be used for password?

Discussion in 'Android Questions' started by anOparator, May 5, 2015.

  1. anOparator

    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.

    Attached Files:

  2. anOparator

    anOparator Active Member Licensed User

    I tried this:
    Log ((pss)) ' did not generate log output info.
  3. Erel

    Erel Administrator Staff Member Licensed User

    A process global variable can be printed with Log.
  4. DonManfred

    DonManfred Expert Licensed User

    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
  5. anOparator

    anOparator Active Member Licensed User

    Thanks, the log works now. Will update in the A.M.
    Sleepy now.
  6. anOparator

    anOparator Active Member Licensed User

    :)Thanks, I needed to ask someone b4 the answer came to me.
    Sub Process_Globals
    Dim pss As String
    Sub Globals
    Private pssw As EditText
    Private Button1 As Button
    Private Button2 As Button
    User creates personal password.
    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.
    Sub Button2_Click   
    '   If pssw.Text=pss Then
       If pss = pssw.Text Then
    Log ("logged in , a-ok" & (pss))
    Msgbox("WRONG PSSwurd    ENTERED","E R R O R")
    End If
    Next, save pss to a predetermined spot in a text file:confused:
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice