Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
TmpMutableBmp.InitializeMutable(300dip,100dip)
TmpMutableCanvas.Initialize2(TmpMutableBmp)
End Sub
----------------------------------
Sub Activity_Resume
LoadTempImg
End Sub
Sub Activity_Pause (UserClosed As Boolean)
SaveTempImg
End Sub
---------------------------------
Sub SaveTempImg
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "/.SavedImg/temp.png" , False)
TmpMutableBmp.WriteToStream(Out, 100, "PNG")
Out.Close
End Sub
----------------------------