I can see one things wrong just by looking at the code.
#1 in this code
Code:
If E_entr_pass.Text.Contains("")=True Then
If E_entr_pass.Text=""&cursor12.GetString("u_pass") Then
ToastMessageShow("App resetted",False)
File.Delete(File.DirDefaultExternal,"userdata.db")
Else
ToastMessageShow("Wrong Password",False)
End If
Else
ToastMessageShow("Enter Password",False)
End If
cursor12.Close
notice on this line
you're not comparing the cursor12.getstring("u_pass") to anything, therefore everthing inside this IF Statement never gets executed, that is why the file never gets deleted.
the correct format would be like this:
Code:
If E_entr_pass.text = "" & cursor12.getstring("u_pass") = "" then
'rest of your code goes here
Give it a try!