Hola tengo un error en B4A en LA LINE DONDE INSERTO DATOS ERROR:java.lang.nullpointerexception
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("LayoutAgregar")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub BtVolver_Click
StartActivity ("Malimentos")
End Sub
Sub BtAgregar_Click
ESTA ES EL ERROR!!!!!!!!! Mdia.s.ExecNonQuery2 ("INSERT INTO alimentos VALUES (null,?,?)",Array As String(edalimento.Text,edcalorias.Text)) ME APARECE java.lang.nullpointerexception
StartActivity(Malimentos)
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("LayoutAgregar")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub BtVolver_Click
StartActivity ("Malimentos")
End Sub
Sub BtAgregar_Click
ESTA ES EL ERROR!!!!!!!!! Mdia.s.ExecNonQuery2 ("INSERT INTO alimentos VALUES (null,?,?)",Array As String(edalimento.Text,edcalorias.Text)) ME APARECE java.lang.nullpointerexception
StartActivity(Malimentos)
End Sub