Android Question Screen Shot

gballa

Member
Licensed User
Hi All,

I am a newbie to B4A and need some help.

I am using this code to take a screen shot

Dim x As B4XView = Activity
Dim bmp As B4XBitmap = x.GetBitmap

I have an ImageView in the program and need to display the Screen shot in that ImageView

I tried

ImageView1.BitMap=bmp

but keep getting this error
java.lang.RuntimeException: Object should first be initialized (B4XBitmap).

How can I convert a B4xBitmap to an ImageView bitmap?

Thanks
 

TILogistic

Expert
Licensed User
Longtime User
other:
 
Upvote 0
Top