Android Question open my app need password,how to do better?

hears

Active Member
Licensed User
Longtime User
i want make a pravite app ,so when open ,user must input a password.after can use this app .
how to do better?
 

hears

Active Member
Licensed User
Longtime User
thanks,i have find codes in another post ,he use dialog library

B4X:
Do While inputText.Input <> passwords ' Keep displaying the input password input dialog until the correct password has been entered
        If inputText.Show("Please enter your password","Password","Submit","","Exit",Null) = DialogResponse.NEGATIVE Then ' If the user selects exit then close the activity
            hideMAIN
        End If
        If inputText.Input <> passwords Then ' Display wrong password message if wrong password entered
            ToastMessageShow("Wrong password. Try Again", False)
        End If
       
    Loop


https://www.b4x.com/android/forum/threads/unlock-password-locked-screen.14870/page-2
 
Upvote 0

Addo

Well-Known Member
Licensed User
Longtime User
you have to store the password some where not on the client side and it should be encrypted

if you want to make it harder to some hackers to use your app in illegal way

you need to consider your app features on a server side do not ever trust a client side to store any data on it
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…