Android Question Need simple example using BitmapCreator

warayTek

Member
Hello everyone, Trying to simply the example from BitmapCreator so that I can understand it a little better how to use it in my application.
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout")
    OriginalBmp = xui.LoadBitmapResize(File.DirAssets, "mycat.jpg",256dip, 192dip, False)
End Sub

Sub Button1_Click
    effects.ImplodeAnimated(1500, OriginalBmp,10, ImageView1)
End Sub
This give me Null object reference error. I hope someone can enlighten me what I'm missing.

Regards,
warayTek
 
Top