Kiese, I have the same problem.
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (ahacontentchooser) Create, isFirst = true **
java.lang.RuntimeException: Object should first be initialized (Activity).
** Activity (ahacontentchooser) Resume **
Code:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Share As ahaShare
Private Button1 As Button
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("share")
File.Copy(File.DirAssets,"post2.jpg",File.DirRootExternal,"post2.jpg")
Share.Initialize(Me, "Share")
'Share.AddFile(File.DirRootExternal,"post2.jpg")
'Share.Share("This is the Subject","This is the Text")
End Sub
Sub Share_Finished
Activity.Title = "finished"
File.Delete(File.DirRootExternal,"post2.jpg")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
Share.AddFile(File.DirRootExternal,"post2.jpg")
Share.Share("This is the Subject","This is the Text")
End Sub
I got the same error, form the example.
Do you find any solution?