Hi All,
Running b4a v6.50 Android 4.4.2 on Huawei phone.
Debug Mode:
I can take photos, store them, write details to sqlite,associate notes with each picture, flip thru them (prev next) and delete them.
Works very well!
Release Mode:
Complains that the intent in ion_Event is not initialised and therefore does nothing.
(RuntimeException) java.lang.RuntimeException: Object should first be initialized (Intent).
Any ideas?
Thanks,
Hilton.
Running b4a v6.50 Android 4.4.2 on Huawei phone.
Debug Mode:
I can take photos, store them, write details to sqlite,associate notes with each picture, flip thru them (prev next) and delete them.
Works very well!
Release Mode:
Complains that the intent in ion_Event is not initialised and therefore does nothing.
(RuntimeException) java.lang.RuntimeException: Object should first be initialized (Intent).
B4X:
'result arrives here
Sub ion_Event (MethodName As String, Args() As Object) As Object
If Args(0) = -1 Then
Try
Dim in As Intent = Args(1)
Log("args1:" & Args(1)) <-------is null??
If File.Exists(imageFolder, tempImagefile) Then
lastPicture = LoadBitmapSample(imageFolder, tempImagefile, imageView1.Width, imageView1.Height)
savePic
imageView1.Bitmap = lastPicture
myNote.setNote("")
Else If in.HasExtra("data") Then 'try to get thumbnail instead
Dim jo As JavaObject = in
lastPicture = jo.RunMethodJO("getExtras", Null).RunMethod("get", Array("data"))
End If
Catch
Log(LastException)
End Try
End If
If lastPicture.IsInitialized Then imageView1.Bitmap = lastPicture
Return Null
End Sub
Any ideas?
Thanks,
Hilton.