Android Question How to get Activity snapshot?

Cableguy

Expert
Licensed User
Longtime User
Hi Guys,

In a custom view i'm working on, I need to get a snapshot of the activity (it will be the CustomView Parent).
I've been reading the forum, but I can't get my head around B4XViews (yet) and need some assistance.
In my custom view I have a global var called "mParent" declared as view which later becomes mParent = mBase.Parent.

What would be the simplest way to get a "mParent" snapshot?
 

DonManfred

Expert
Licensed User
Longtime User
I would try
B4X:
dim x as B4XView = mParent
dim bmp as bitmap = x.Snapshot
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I'm trying, will see how it goes
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
It worked! Thanks Don!
 
Upvote 0
Top