Android Question SMMedia Job.tag question

Scantech

Well-Known Member
Licensed User
Longtime User
How do i make use of Media.Job.Tag? Its alway null. When i set MediaManager, i want to identify the Media.Job.Tag with a unique name so i know how to assign the filename properly.

B4X:
Public Sub SMM_MediaReady (Success As Boolean, Media As SMMedia)
    If Success Then
        Log(Media.Job.Tag)
        If Media.Media Is B4XBitmap Then
            B4XImageView1.Bitmap = Media.Media 'just to check it
            Dim Out As OutputStream = File.OpenOutput(xui.DefaultFolder, "01.png", False)
            Media.Media.As(B4XBitmap).WriteToStream(Out, 100, "PNG")
            Out.Close
        End If
    End If
End Sub

B4X:
    MediaManager.Initialize
    MediaManager.SetMediaWithExtra(Pane1, "https://b4x-4c17.kxcdn.com/images3/code.png", "", CreateMap(MediaManager.REQUEST_CALLBACK: Me))
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…