Oliver Simith
Member
Hi, everyone, this was a problem I had when I was coding following Erel's video tutorial Objects & Custom Types.
And Here's the log
I am stuck in this problem, hope someone can help me solve this. Thanks!
mycode:
Dim list1 As List
list1.Initialize
For i=1 To 50
list1.add(createAphone(100+i,700+2*i,"iphone" & i)) 'createAphone will create an object of a custom type
Next
'writebytes
Dim ser As B4XSerializator
Dim b() As Byte=ser.ConvertObjectToBytes(list1) 'my app crashed on this line
Dim out As OutputStream=File.OpenOutput(File.DirInternal,"1.dat",False)
out.WriteBytes(b,0,b.Length)
out.Close
And Here's the log
log:
java.lang.RuntimeException: java.lang.RuntimeException: This method does not support arrays of primitives.
I am stuck in this problem, hope someone can help me solve this. Thanks!