Hi,
I create a table with
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This works. Then I try to insert values
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I have a little experience with B4A and SQL, do not expect to make big errors. But I have no idea about how to proceed further.
			
			I create a table with
			
				B4X:
			
		
		
		t = "CREATE TABLE if not exists sessions (ID INTEGER PRIMARY KEY, zeit text, name text)"
 sql1.ExecNonQuery (t)This works. Then I try to insert values
			
				B4X:
			
		
		
		t="insert into sessions values (NULL, '" & dt & "','" & EditText1.Text & "')"
 Log (t)
' Shows "insert into sessions values (NULL, '2022.08.18 12:35:13','test')"
 Try
       Tracker.sql1.ExecNonQuery (t)
 Catch
       Log (LastException.Message) ' Debugger does not get here
       ' Message is not logged
 End Try
Dim cs As Cursor
' Activity freezes at the above line. But the error is in the sql.insert statement. If I omit the try ... catch it freezes after        Tracker.sql1.ExecNonQuery (t)I have a little experience with B4A and SQL, do not expect to make big errors. But I have no idea about how to proceed further.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		