Hello,
i use a lib in object in one my project. It's works fine, but on little cell Samsung with android ver 1.2... got a problem. During the activity create event, i read same data from a db for recognized the device. This data are saved at the first launch of the app. In the next restarts, the app read this data and run the encoded function of the lib.
But after the third string the app close itself without log an error.
this is my code:
On dataOggi i have the problem, if i delete dataOggi, the problem is on c etc.
I hope in your help.
Thanks to everybody.
i use a lib in object in one my project. It's works fine, but on little cell Samsung with android ver 1.2... got a problem. During the activity create event, i read same data from a db for recognized the device. This data are saved at the first launch of the app. In the next restarts, the app read this data and run the encoded function of the lib.
But after the third string the app close itself without log an error.
this is my code:
B4X:
Sub Activity_Create(FirstTime AsBoolean)
Activity.LoadLayout("Main")
If FirstTime Then
Dim a As String = EncodeData("MyProject")
Dim b As String = EncodeData(AppVers)
Dim dataOggi As String = EncodeData(DateTime.Date(DateTime.Now))
Dim c As String = EncodeData(OS.Serial)
Dim d As String = EncodeData(phe.Model)
Dim e As String = EncodeData(OS.Release)
Dim f As String = EncodeData(phe.Manufacturer)
Dim g As String = EncodeData(lv1.Width & "x" & lv1.Height)
Dim h As String = EncodeData("Send")
enf if
end sub
Sub EncodeData(dato AsString) AsString
If dato<>""Then
ReturnB64.EncodeStoS(dato, "UTF8")
Else
Return""
End If
End Sub
On dataOggi i have the problem, if i delete dataOggi, the problem is on c etc.
I hope in your help.
Thanks to everybody.