Android Question ِDuplicate activity

megzz

Member
Licensed User
Longtime User
I want to open an activity twice.
I will duplicate it and repaet again.
How did it do it ?

B4X:
Dim nactivity As Activity
    nactivity.Initialize("nactivity")
    nactivity = main  ' Active activity
    StartActivity(nactivity)
 

DonManfred

Expert
Licensed User
Longtime User
You can not Declare a New Activity by Code or to get. Each Activity is a Module in your Project.

You are free to init, load the content in the new activity the same way as you did in the other one. Duplicating the code from the activity.
 
Upvote 0

megzz

Member
Licensed User
Longtime User
You can not Declare a New Activity by Code or to get. Each Activity is a Module in your Project.

You are free to init, load the content in the new activity the same way as you did in the other one. Duplicating the code from the activity.

If this is possible it'll be very good. Can you please give a sample code to me for b4a?
 
Upvote 0
Top