Android Question SQL Error. App force closes when I try to insert a value

Hedgar

Member
Hi. I'm trying to create a login page where ,when a person clicks the login button and Rememberme checkbox is ticked, it inserts the user credentials in the sql database. but i keep geeting this error. what am I missing?

Logger connected to: emulator-5554
--------- beginning of main
--------- beginning of system
Copying updated assets files (6)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 162 (Main)
java.lang.RuntimeException: Cannot parse: as boolean
at anywheresoftware.b4a.BA.parseBoolean(BA.java:612)
at anywheresoftware.b4a.BA.ObjectToBoolean(BA.java:682)
at Portal.b4a.main._btnlogin_click(main.java:603)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:7125)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
 

Attachments

  • Umma Results.zip
    385.5 KB · Views: 78

DonManfred

Expert
Licensed User
B4X:
ToastMessageShow("Login Info Saved","")

The Second Parameter must be a BOOLEAN
 
Upvote 0
Top