Private Sub SwiftButtonBrowse_Click
CC.Show("image/*", "Choose image")
End Sub
Sub CC_Result (Success As Boolean, Dir As String, FileName As String)
If Success = True Then
Log(FileName)
ImageViewPhotoz.Bitmap = LoadBitmap(Dir,FileName)
FileNamePhotoSel = FileName
ImageViewPhotoz.Gravity = Gravity.FILL
Dim bmp As Bitmap
bmp.Initialize(Dir, FileName)
Dim objOut As OutputStream
objOut = File.OpenOutput(File.DirInternal,"lancer.png",True)
bmp.WriteToStream(objOut,100,"PNG")
objOut.Close
Sleep(500)
File.Copy(File.DirInternal,"lancer.png",File.DirDefaultExternal,"/data/" & "Jhoeyboy.png")
Else
FileName = "nophoto.jpg"
ImageViewPhotoz.Bitmap = LoadBitmap(File.DirAssets,FileName)
ToastMessageShow("): No Image Selected :(",True)
End If
End Sub